don't try to use fancy stack frame printer during GC

as it'll likely end up wanting to GC itself, and nested GC isn't allowed
This commit is contained in:
dzaima 2025-06-13 01:18:23 +03:00
parent 2160f4001d
commit e8f5595536

View File

@ -1381,7 +1381,7 @@ NOINLINE void vm_printPos(Comp* comp, i32 bcPos, i64 pos) {
// want to try really hard to print errors // want to try really hard to print errors
if (!cbqn_initialized) goto native_print; if (!cbqn_initialized || gc_running) goto native_print;
#if FORCE_NATIVE_ERROR_PRINT #if FORCE_NATIVE_ERROR_PRINT
goto native_print; goto native_print;
#endif #endif