mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 650161 - Don't move global objects even if the JITs are disabled r=terrence
This commit is contained in:
parent
a24c29adc9
commit
67333a5971
@ -2114,13 +2114,11 @@ static bool
|
||||
CanRelocateArena(ArenaHeader *arena)
|
||||
{
|
||||
/*
|
||||
* We can't currently move global objects because their address is baked
|
||||
* into compiled code. We therefore skip moving the contents of any arena
|
||||
* containing a global if ion or baseline are enabled.
|
||||
* We can't currently move global objects because their address can be baked
|
||||
* into compiled code so we skip relocation of any area containing one.
|
||||
*/
|
||||
JSRuntime *rt = arena->zone->runtimeFromMainThread();
|
||||
return arena->getAllocKind() <= FINALIZE_OBJECT_LAST &&
|
||||
((!rt->options().baseline() && !rt->options().ion()) || !ArenaContainsGlobal(arena));
|
||||
return arena->getAllocKind() <= FINALIZE_OBJECT_LAST && !ArenaContainsGlobal(arena);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
Loading…
Reference in New Issue
Block a user