Bug 1207696 Part 5d - Disable compacting GC when replaying, r=jonco.

--HG--
extra : rebase_source : 17673ab79bff02c54da3da7e011a7065d8e250bc
This commit is contained in:
Brian Hackett 2018-07-23 14:37:09 +00:00
parent a2c32c4529
commit 8e3db0b2a3

View File

@ -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)