Bug 1158569 - Don't trigger sweeping of dead type information when scanning unboxed objects in minor GCs, r=terrence.

This commit is contained in:
Brian Hackett 2015-04-28 11:09:16 -07:00
parent 5ec92c71a3
commit 92194e4db8

View File

@ -550,7 +550,7 @@ js::Nursery::traceObject(MinorCollectionTracer* trc, JSObject* obj)
JSObject** pexpando = obj->as<UnboxedPlainObject>().addressOfExpando();
if (*pexpando)
markObject(trc, pexpando);
const UnboxedLayout& layout = obj->as<UnboxedPlainObject>().layout();
const UnboxedLayout& layout = obj->as<UnboxedPlainObject>().layoutDontCheckGeneration();
if (layout.traceList()) {
markTraceList(trc, layout.traceList(),
obj->as<UnboxedPlainObject>().data());