Bug 1113744 - Don't call zone() when compacting off thread on a CLOSED TREE.

This commit is contained in:
Brian Hackett 2015-01-07 13:01:27 -07:00
parent ba0fd3d927
commit fe6a2e21b2

View File

@ -4653,7 +4653,9 @@ TypeObject::clearProperties()
bool
TypeObject::needsSweep()
{
return generation() != zone()->types.generation;
// Note: this can be called off thread during compacting GCs, in which case
// nothing will be running on the main thread.
return generation() != zoneFromAnyThread()->types.generation;
}
#endif