mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 917757 - Don't trigger Heap<T> post barriers in XPConnect shutdown r=bholley
This commit is contained in:
parent
35950d5164
commit
cbb37ed339
@ -610,7 +610,11 @@ nsXPCWrappedJS::SystemIsBeingShutDown()
|
||||
|
||||
// NOTE: that mClass is retained so that GetInterfaceInfo can continue to
|
||||
// work (and avoid crashing some platforms).
|
||||
mJSObj = nullptr;
|
||||
|
||||
// Use of unsafeGet() is to avoid triggering post barriers in shutdown, as
|
||||
// this will access the chunk containing mJSObj, which may have been freed
|
||||
// at this point.
|
||||
*mJSObj.unsafeGet() = nullptr;
|
||||
|
||||
// Notify other wrappers in the chain.
|
||||
if (mNext)
|
||||
|
Loading…
Reference in New Issue
Block a user