diff --git a/src/pkg/runtime/mgc0.c b/src/pkg/runtime/mgc0.c index 64b5f0464a..f9dbdbb4a1 100644 --- a/src/pkg/runtime/mgc0.c +++ b/src/pkg/runtime/mgc0.c @@ -19,6 +19,7 @@ enum { DebugMark = 0, // run second pass to check mark CollectStats = 0, ScanStackByFrames = 0, + IgnorePreciseGC = 0, // Four bits per word (see #defines below). wordsPerBitmapWord = sizeof(void*)*8/4, @@ -771,6 +772,9 @@ scanblock(Workbuf *wbuf, Obj *wp, uintptr nobj, bool keepworking) pc = defaultProg; } + if(IgnorePreciseGC) + pc = defaultProg; + pc++; stack_top.b = (uintptr)b;