Currently if we must GC during parallel execution we bail out. We previously attempted to add a stop-the-world GC into the parallel runtime, but it was deemed too complex. A simpler solution is to observe the amount of allocation that has historically been done by parallel sections and try to predict whether a GC will be necessary -- if so we can pre-emptively run the GC before entering the parallel section. This could be done even simpler (but less effectively) by just using a more aggressive GC threshold that is a constant.
Summary: Run GC eagerly before entering a parallel section → [PJS] Run GC eagerly before entering a parallel section
STW GC was bug 862923
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.