Bug 674800 - Print address of XPTCStub with nsXPCWrappedJS. r=mrbkap
authorAlon Zakai <azakai@mozilla.com>
Thu, 04 Aug 2011 15:01:43 -0700
changeset 73878 b9e9b5a4959a64ec2c15dff4e5464a9558fcc6ef
parent 73877 5be600d6e85cdf317b2ec0fc2680787c27b576b1
child 73879 6827ee54c23f59d7108c720c320e438a7f85d943
push id87
push usertim.taubert@gmx.de
push dateSun, 07 Aug 2011 19:19:25 +0000
treeherderfx-team@7715c3c492ae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs674800
milestone8.0a1
Bug 674800 - Print address of XPTCStub with nsXPCWrappedJS. r=mrbkap
js/src/xpconnect/src/xpcwrappedjs.cpp
--- a/js/src/xpconnect/src/xpcwrappedjs.cpp
+++ b/js/src/xpconnect/src/xpcwrappedjs.cpp
@@ -241,18 +241,18 @@ nsXPCWrappedJS::TraceJS(JSTracer* trc)
 
 #ifdef DEBUG
 // static
 void
 nsXPCWrappedJS::PrintTraceName(JSTracer* trc, char *buf, size_t bufsize)
 {
     const nsXPCWrappedJS* self = static_cast<const nsXPCWrappedJS*>
                                             (trc->debugPrintArg);
-    JS_snprintf(buf, bufsize, "nsXPCWrappedJS[%s,0x%p].mJSObj",
-                self->GetClass()->GetInterfaceName(), self);
+    JS_snprintf(buf, bufsize, "nsXPCWrappedJS[%s,0x%p:0x%p].mJSObj",
+                self->GetClass()->GetInterfaceName(), self, self->mXPTCStub);
 }
 #endif
 
 NS_IMETHODIMP
 nsXPCWrappedJS::GetWeakReference(nsIWeakReference** aInstancePtr)
 {
     if(mRoot != this)
         return mRoot->GetWeakReference(aInstancePtr);