mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1179264 - Only assert markedness of sampled scripts in JitcodeMap during finalization. (r=terrence)
This commit is contained in:
parent
326fc6a422
commit
5a46aa8c45
@ -12,6 +12,7 @@
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "jsprf.h"
|
||||
#include "gc/Marking.h"
|
||||
#include "gc/Statistics.h"
|
||||
|
||||
#include "jit/BaselineJIT.h"
|
||||
#include "jit/JitSpewer.h"
|
||||
@ -475,8 +476,12 @@ JitcodeGlobalTable::lookupForSampler(void* ptr, JitcodeGlobalEntry* result, JSRu
|
||||
// the sweep phase of the GC must be on stack, and on-stack frames must
|
||||
// already be marked at the beginning of the sweep phase. This assumption
|
||||
// is verified below.
|
||||
if (rt->isHeapBusy() && rt->gc.state() == gc::SWEEP)
|
||||
if (rt->isHeapBusy() &&
|
||||
rt->gc.stats.currentPhase() >= gcstats::PHASE_FINALIZE_START &&
|
||||
rt->gc.stats.currentPhase() <= gcstats::PHASE_FINALIZE_END)
|
||||
{
|
||||
MOZ_ASSERT(entry->isMarkedFromAnyThread(rt));
|
||||
}
|
||||
#endif
|
||||
|
||||
*result = *entry;
|
||||
|
Loading…
Reference in New Issue
Block a user