Ignore:
Timestamp:
Sep 17, 2013, 1:56:57 PM (12 years ago)
Author:
[email protected]
Message:

Don't GC while OSR compiling
https://bugs.webkit.org/show_bug.cgi?id=121513

Reviewed by Mark Hahnenberg.

Fixes some rare crashes that I see in ConservativeRoots, while in a GC from OSR exit
compilation.

  • dfg/DFGOSRExitCompiler.cpp:
  • ftl/FTLOSRExitCompiler.cpp:

(JSC::FTL::compileFTLOSRExit):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGOSRExitCompiler.cpp

    r155820 r155995  
    6262    VM* vm = &exec->vm();
    6363   
     64    // It's sort of preferable that we don't GC while in here. Anyways, doing so wouldn't
     65    // really be profitable.
     66    DeferGCForAWhile deferGC(vm->heap);
     67
    6468    uint32_t exitIndex = vm->osrExitIndex;
    6569    OSRExit& exit = codeBlock->jitCode()->dfg()->osrExit[exitIndex];
Note: See TracChangeset for help on using the changeset viewer.