зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1179264 - Only assert markedness of sampled scripts in JitcodeMap during finalization. (r=terrence)
This commit is contained in:
Родитель
906f641909
Коммит
c4dad88285
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче