File tree 1 file changed +14
-0
lines changed 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 37
37
#include "vm_core.h"
38
38
#include "ractor_core.h"
39
39
40
+ #ifdef USE_THIRD_PARTY_HEAP
41
+ #include "mmtk.h"
42
+ #endif
43
+
40
44
#define MAX_POSBUF 128
41
45
42
46
#define VM_CFP_CNT (ec , cfp ) \
@@ -1189,6 +1193,16 @@ rb_vm_bugreport(const void *ctx)
1189
1193
}
1190
1194
#endif
1191
1195
}
1196
+
1197
+ #ifdef USE_THIRD_PARTY_HEAP
1198
+ fprintf (stderr , "* MMTk:\n\n" );
1199
+ fprintf (stderr , " mmtk_free_bytes: %zu\n" , mmtk_free_bytes ());
1200
+ fprintf (stderr , " mmtk_total_bytes: %zu\n" , mmtk_total_bytes ());
1201
+ fprintf (stderr , " mmtk_used_bytes: %zu\n" , mmtk_used_bytes ());
1202
+ fprintf (stderr , " mmtk_starting_heap_address: 0x%zx\n" , (size_t ) mmtk_starting_heap_address ());
1203
+ fprintf (stderr , " mmtk_last_heap_address: 0x%zx\n" , (size_t ) mmtk_last_heap_address ());
1204
+ fprintf (stderr , "\n" );
1205
+ #endif
1192
1206
}
1193
1207
1194
1208
void
You can’t perform that action at this time.
0 commit comments