mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 984684 - Do not fire barriers on shared atoms; r=bhackett
This commit is contained in:
parent
b2490ac387
commit
ba61803b38
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user