Bug 984684 - Do not fire barriers on shared atoms; r=bhackett

This commit is contained in:
Terrence Cole 2014-03-17 16:52:10 -07:00
parent b2490ac387
commit ba61803b38

View File

@ -377,6 +377,8 @@ JS::HeapValueRelocate(JS::Value *valuep)
{
/* Called with old contents of *valuep before overwriting. */
JS_ASSERT(JSVAL_IS_TRACEABLE(*valuep));
if (valuep->isString() && StringIsPermanentAtom(valuep->toString()))
return;
JSRuntime *runtime = static_cast<js::gc::Cell *>(valuep->toGCThing())->runtimeFromMainThread();
runtime->gcStoreBuffer.removeRelocatableValue(valuep);
}