Bug 937157, part 10 - Remove DEBUG_xpc_leaks. r=bholley

This commit is contained in:
Andrew McCreight 2013-11-17 14:47:00 -08:00
parent 49ddb25fb6
commit 97b2314c48
2 changed files with 0 additions and 23 deletions

View File

@ -335,10 +335,6 @@ nsXPCWrappedJS::GetNewOrUsed(JS::HandleObject jsObj,
goto return_wrapper;
{ // scoped lock
#if DEBUG_xpc_leaks
printf("Created nsXPCWrappedJS %p, JSObject is %p\n",
(void*)wrapper, (void*)jsObj);
#endif
XPCAutoLock lock(rt->GetMapLock());
map->Add(cx, root);
}
@ -368,10 +364,6 @@ nsXPCWrappedJS::GetNewOrUsed(JS::HandleObject jsObj,
release_root = true;
{ // scoped lock
#if DEBUG_xpc_leaks
printf("Created nsXPCWrappedJS %p, JSObject is %p\n",
(void*)root, (void*)rootJSObj);
#endif
XPCAutoLock lock(rt->GetMapLock());
map->Add(cx, root);
}
@ -393,10 +385,6 @@ nsXPCWrappedJS::GetNewOrUsed(JS::HandleObject jsObj,
wrapper = new nsXPCWrappedJS(cx, jsObj, clazz, root, aOuter);
if (!wrapper)
goto return_wrapper;
#if DEBUG_xpc_leaks
printf("Created nsXPCWrappedJS %p, JSObject is %p\n",
(void*)wrapper, (void*)jsObj);
#endif
}
wrapper->mNext = root->mNext;

View File

@ -494,17 +494,6 @@ FinishCreate(XPCWrappedNativeScope* Scope,
AutoJSContext cx;
MOZ_ASSERT(inWrapper);
#if DEBUG_xpc_leaks
{
char* s = wrapper->ToString();
MOZ_ASSERT(wrapper->IsValid(), "eh?");
printf("Created wrapped native %s, flat JSObject is %p\n",
s, (void*)wrapper->GetFlatJSObjectNoMark());
if (s)
JS_smprintf_free(s);
}
#endif
XPCLock* mapLock = Scope->GetRuntime()->GetMapLock();
Native2WrappedNativeMap* map = Scope->GetWrappedNativeMap();