File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 13
13
#include <glib.h>
14
14
#include <stdlib.h>
15
15
16
+ #if HAVE_BDWGC_GC
17
+
18
+ #include "external/bdwgc/include/gc.h"
19
+
16
20
typedef struct CollectMetadataContext
17
21
{
18
22
GHashTable * allTypes ;
@@ -648,7 +652,7 @@ MonoManagedMemorySnapshot* mono_unity_capture_memory_snapshot()
648
652
FillRuntimeInformation (& snapshot -> runtimeInformation );
649
653
650
654
#if _DEBUG
651
- VerifySnapshot (snapshot , monoImages );
655
+ // VerifySnapshot(snapshot, monoImages);
652
656
#endif
653
657
654
658
g_hash_table_destroy (monoImages );
@@ -678,4 +682,21 @@ void mono_unity_free_captured_memory_snapshot(MonoManagedMemorySnapshot* snapsho
678
682
679
683
g_free (metadata -> types );
680
684
g_free (snapshot );
681
- }
685
+ }
686
+
687
+ #else
688
+
689
+ MonoManagedMemorySnapshot * mono_unity_capture_memory_snapshot ()
690
+ {
691
+ MonoManagedMemorySnapshot * snapshot ;
692
+ snapshot = g_new0 (MonoManagedMemorySnapshot , 1 );
693
+
694
+ return snapshot ;
695
+ }
696
+
697
+ void mono_unity_free_captured_memory_snapshot (MonoManagedMemorySnapshot * snapshot )
698
+ {
699
+ g_free (snapshot );
700
+ }
701
+
702
+ #endif
You can’t perform that action at this time.
0 commit comments