In cycle collector dumps, allow much more room for document URLs. (Bug 652056) r=peterv
authorL. David Baron <dbaron@dbaron.org>
Mon, 09 May 2011 15:02:34 -0400
changeset 69207 e2d2de2d2894f049ae019527e6fa4780c637bb99
parent 69206 299c005302cd86c06fc6eae9b48693210696fa06
child 69208 5752142febe7351fa3fd6a036ebfefd6d3ac24da
push id19884
push userdbaron@mozilla.com
push dateMon, 09 May 2011 19:03:20 +0000
treeherdermozilla-central@cc57061c1258 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs652056
milestone6.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
In cycle collector dumps, allow much more room for document URLs. (Bug 652056) r=peterv
content/base/src/nsDocument.cpp
--- a/content/base/src/nsDocument.cpp
+++ b/content/base/src/nsDocument.cpp
@@ -1803,17 +1803,17 @@ static const char* kNSURIs[] = {
   " (XBL)",
   " (MathML)",
   " (RDF)",
   " (XUL)"
 };
 
 NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INTERNAL(nsDocument)
   if (NS_UNLIKELY(cb.WantDebugInfo())) {
-    char name[72];
+    char name[512];
     PRUint32 nsid = tmp->GetDefaultNamespaceID();
     nsCAutoString uri;
     if (tmp->mDocumentURI)
       tmp->mDocumentURI->GetSpec(uri);
     if (nsid < NS_ARRAY_LENGTH(kNSURIs)) {
       PR_snprintf(name, sizeof(name), "nsDocument%s %s", kNSURIs[nsid],
                   uri.get());
     }