зеркало из https://github.com/mozilla/pjs.git
Fixing solaris bustage from bug 401687. r+sr=jonas@sicking.cc
This commit is contained in:
Родитель
f067971765
Коммит
ea1e90c039
|
@ -311,6 +311,11 @@ XPCWrappedNativeScope::TraceJS(JSTracer* trc, XPCJSRuntime* rt)
|
||||||
|
|
||||||
struct SuspectClosure
|
struct SuspectClosure
|
||||||
{
|
{
|
||||||
|
SuspectClosure(JSContext *aCx, nsCycleCollectionTraversalCallback& aCb)
|
||||||
|
: cx(aCx), cb(aCb)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
JSContext* cx;
|
JSContext* cx;
|
||||||
nsCycleCollectionTraversalCallback& cb;
|
nsCycleCollectionTraversalCallback& cb;
|
||||||
};
|
};
|
||||||
|
@ -348,7 +353,7 @@ XPCWrappedNativeScope::SuspectAllWrappers(XPCJSRuntime* rt, JSContext* cx,
|
||||||
{
|
{
|
||||||
XPCAutoLock lock(rt->GetMapLock());
|
XPCAutoLock lock(rt->GetMapLock());
|
||||||
|
|
||||||
SuspectClosure closure = { cx, cb };
|
SuspectClosure closure(cx, cb);
|
||||||
for(XPCWrappedNativeScope* cur = gScopes; cur; cur = cur->mNext)
|
for(XPCWrappedNativeScope* cur = gScopes; cur; cur = cur->mNext)
|
||||||
{
|
{
|
||||||
cur->mWrappedNativeMap->Enumerate(WrappedNativeSuspecter, &closure);
|
cur->mWrappedNativeMap->Enumerate(WrappedNativeSuspecter, &closure);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче