The tinderbox problem was due to insufficient STARTUP_TMBUFSIZE, so re-increase the buffer size to 64K (from 16K) and comment out my debugging code.
authordbaron@dbaron.org
Tue, 03 Apr 2007 18:06:34 -0700
changeset 312 5a0cc295a03db5b4dc3fccc96a8eb38c8b8513c4
parent 311 77cfceb0d4253e49ba5b9f87b5f279face65826b
child 313 7f2795494f0c01b4b2a518ca2d4cfb4bcf8a4983
push idunknown
push userunknown
push dateunknown
milestone1.9a4pre
The tinderbox problem was due to insufficient STARTUP_TMBUFSIZE, so re-increase the buffer size to 64K (from 16K) and comment out my debugging code.
tools/trace-malloc/lib/nsTraceMalloc.c
tools/trace-malloc/tmreader.c
--- a/tools/trace-malloc/lib/nsTraceMalloc.c
+++ b/tools/trace-malloc/lib/nsTraceMalloc.c
@@ -269,17 +269,17 @@ struct AllocationFuncs
 #endif
   int          prevent_reentry;
 }gAllocFuncs;
 
 #endif /* !XP_UNIX */
 
 typedef struct logfile logfile;
 
-#define STARTUP_TMBUFSIZE (16 * 1024)
+#define STARTUP_TMBUFSIZE (64 * 1024)
 #define LOGFILE_TMBUFSIZE (16 * 1024)
 
 struct logfile {
     int         fd;
     int         lfd;            /* logical fd, dense among all logfiles */
     char        *buf;
     int         bufsize;
     int         pos;
--- a/tools/trace-malloc/tmreader.c
+++ b/tools/trace-malloc/tmreader.c
@@ -51,17 +51,17 @@
 /* make sure this happens before tmreader.h */
 #define PL_ARENA_CONST_ALIGN_MASK 2
 #include "plarena.h"
 
 #include "prnetdb.h"
 #include "nsTraceMalloc.h"
 #include "tmreader.h"
 
-#define DEBUG_tmreader
+#undef  DEBUG_tmreader
 
 static int accum_byte(FILE *fp, uint32 *uip)
 {
     int c = getc(fp);
     if (c == EOF)
         return 0;
     *uip = (*uip << 8) | c;
     return 1;