fix gc backtrace

This commit is contained in:
2026-02-20 14:51:42 -06:00
parent ebfc89e072
commit 11fb213a74
3 changed files with 46 additions and 3 deletions

View File

@@ -92,6 +92,10 @@
// #define DUMP_OBJECTS /* dump objects in JS_FreeContext */
// #define DUMP_READ_OBJECT
// #define DUMP_ROPE_REBALANCE
/* dump GC ref stack push/pop with C backtrace on mismatch.
When HAVE_ASAN is also set, uses __sanitizer_print_stack_trace()
for symbolized output; otherwise falls back to execinfo backtrace(). */
// #define DUMP_GC_REFS
/* test the GC by forcing it before each object allocation */
// #define FORCE_GC_AT_MALLOC