mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 1207696 Part 5d - Disable compacting GC when replaying, r=jonco.
--HG-- extra : rebase_source : 17673ab79bff02c54da3da7e011a7065d8e250bc
This commit is contained in:
parent
a2c32c4529
commit
8e3db0b2a3
@ -2144,7 +2144,9 @@ GCRuntime::shouldCompact()
|
||||
bool
|
||||
GCRuntime::isCompactingGCEnabled() const
|
||||
{
|
||||
return compactingEnabled && rt->mainContextFromOwnThread()->compactingDisabledCount == 0;
|
||||
return compactingEnabled
|
||||
&& rt->mainContextFromOwnThread()->compactingDisabledCount == 0
|
||||
&& !mozilla::recordreplay::IsRecordingOrReplaying();
|
||||
}
|
||||
|
||||
AutoDisableCompactingGC::AutoDisableCompactingGC(JSContext* cx)
|
||||
|
Loading…
Reference in New Issue
Block a user