dbaron@dbaron.org
b49904959e
Fix race saving/restoring malloc hooks by going back to overriding malloc, etc., plus some additional cleanup. b=392009 r+a1.9=brendan
2007-09-28 15:39:59 -07:00
dbaron@dbaron.org
70983c436d
Suppress tracing around calls into original allocators, in case they recur back into our hooks. Fixes most of leak *stats* regression from bug 392009. r+a1.9=brendan
2007-09-25 13:33:37 -07:00
brendan@mozilla.org
83b6101d31
Reduce code duplication among platforms, support hooking and unhooking (392009, r=dbaron).
2007-09-24 18:13:17 -07:00
dbaron@dbaron.org
051a23c4b6
Port trace-malloc to Mac OS X. b=392118 r+a=brendan
2007-08-14 09:35:46 -07:00
dbaron@dbaron.org
b389fc0c0c
Make void signatures match header. b=391766 r+a=brendan
2007-08-10 17:53:28 -07:00
dbaron@dbaron.org
52cad5fe7e
Lock around NS_TraceMallocDumpAllocations. b=391766 r+a=brendan
2007-08-10 17:53:02 -07:00
dbaron@dbaron.org
f7090d52d4
Stop using strncpy unnecessarily. b=391766 r+a=brendan
2007-08-10 17:52:35 -07:00
dbaron@dbaron.org
185d0a35f7
Add suppression code around calls to original allocation functions to handle things like new[] calling new. b=391491 r+a=brendan
2007-08-10 15:22:07 -07:00
dbaron@dbaron.org
7937605426
Define the __libc_* on Windows to something that does automatic suppression, like on Linux. b=391477 r+a=brendan
2007-08-10 15:21:13 -07:00
dbaron@dbaron.org
593cd91cf8
Convert trace-malloc to using XPCOM stack walking API. b=374829 r+a=brendan
2007-08-10 15:20:48 -07:00
dbaron@dbaron.org
def4dbe999
Start reducing the scope of locking in trace-malloc, and convert the PRMonitor to a PRLock. b=376874 r+a=brendan
2007-08-10 15:19:32 -07:00
dbaron@dbaron.org
40b3eebdbb
Use thread-local storage for tracing suppression. b=376874 r+a=brendan
2007-08-10 15:19:14 -07:00
dbaron@dbaron.org
8888cc609f
Improve performance when trace-malloc is built but not used by adding a fast-path around the locking. b=150015 r=brendan a=bzbarsky
2007-08-10 14:24:32 -07:00
dbaron@dbaron.org
98b0c638b4
Replace printf that fires all the time with an assertion for what I really want to check.
2007-04-03 18:35:35 -07:00
dbaron@dbaron.org
c3cd8006d4
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.
2007-04-03 18:06:34 -07:00
dbaron@dbaron.org
f21d5e810c
Back out startup buffer size change (but leave diagnostic).
2007-04-03 17:53:26 -07:00
dbaron@dbaron.org
731c109c0d
Try increasing startup buffer size to see if it fixes tinderbox orange.
2007-04-03 17:39:56 -07:00
dbaron@dbaron.org
74dbf8be3e
Fix deadlock in trace-malloc by exiting monitor around call to dladdr. b=363334 r=brendan
2007-04-03 15:14:01 -07:00
dbaron%dbaron.org
0c76c7aa5d
Make trace-malloc dumps not print '(nil)' instead of an address. b=331743 (fixing regression from previous patch)
2007-02-14 07:07:51 +00:00
dbaron%dbaron.org
10d5ca630a
Make trace-malloc override additional memory allocation functions. b=331742
2007-02-14 07:06:35 +00:00
dbaron%dbaron.org
42a4e1b141
Fix relocations that need to be resolved at runtime when building with default visibility as hidden and wrapping system includes. b=358558 r=bsmedberg
2006-10-29 16:11:26 +00:00
dbaron%dbaron.org
fc5383282f
Partial 64-bit and x86_64 porting. b=331743 r=brendan
2006-03-27 07:29:32 +00:00
dbaron%dbaron.org
1648e0ad3d
Revert old fix for 230336 in favor of better fix elsewhere.
2006-03-25 04:16:00 +00:00
dbaron%dbaron.org
d8b42e96fc
Fix C++ comments that I introduced.
2006-03-24 08:32:09 +00:00
dbaron%dbaron.org
ace148d610
Workaround brokenness of __builtin_frame_address(0) on gcc 4.1 (as shipped with FC5, at least). b=331436 r=brendan
2006-03-23 23:21:27 +00:00
dbaron%dbaron.org
4a829838f0
Use __builtin_frame_address instead of setjmp to get the frame pointer. b=323853 r=brendan
2006-03-19 01:27:17 +00:00
timeless%mozdev.org
ee7cc9c534
Bug 295159 trace-malloc build crashes in glibc initialization
...
patch by sascha@schumann.cx r=timeless sr=dbaron
2005-11-13 22:39:05 +00:00
gandalf%firefox.pl
31f502d4a6
Bug 288823: Trace-malloc fails to compile on windows; p=bugzilla@mcsmurf.de,r+sr=dbaron,a=brendan
2005-06-11 12:52:23 +00:00
dbaron%dbaron.org
2419559d71
For functions in the binary, output something compatible with addr2line. b=230336 r=brendan
2005-03-30 01:54:54 +00:00
gerv%gerv.net
cc323a7cc8
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-25 21:07:34 +00:00
cls%seawood.org
486c2570e0
Remove troublesome libiberty dependency by using __cxa_demangle instead of cplus_demangle. (redux)
...
Bug #232763 r=dbaron sr=brendan
2004-02-11 07:16:11 +00:00
brendan%mozilla.org
901708e8e3
Get my NS_TrackAllocation patch in before cls moves files.
2004-02-11 04:15:17 +00:00
alecf%flett.org
045e10a463
minor updates to spacetrace:
...
- show progress while loading the events file
- show more detailed leak summary
no review, this is a debug-only tool and I'm only changing console output
2004-01-13 16:35:45 +00:00
dbaron%dbaron.org
b7de5d5648
Remove pc tests in stack walking code that prevent it from working on Fedora Core 1. b=227396 r=bryner
2004-01-03 19:16:31 +00:00
dbaron%dbaron.org
c58c100242
Be sure to call NS_TraceMallocStartup so we know (on Unix) not to waste time logging everything once we know there is no command-line argument. b=113833 r+sr=brendan
2003-06-21 00:28:05 +00:00
alecf%flett.org
ae9176bd25
oops, didn't mean to check that in
2003-06-18 02:14:15 +00:00
alecf%flett.org
91b72b4179
oops, minor cleanup on the UI to distinguish between callsite and allocation listings for the "top" or "normal" callsites
...
again, not part of normal build
2003-06-18 02:13:46 +00:00
alecf%flett.org
39b6e7826f
ugh, take two - remove PR_ASSERT, tabs, and extra ^M's
2003-06-04 20:53:57 +00:00
alecf%flett.org
b20e0b65f2
spacetrace updates (not part of build)
...
- use arenas for hashtable allocation - reduces spacetrace's mem usage tremendously for large files
- code cleanup & wrapping
- UI cleanup - headers & such
- fix nsTraceMalloc to at least support long stacks, so that we don't barf if we have trouble reading the stacks
2003-06-04 20:15:10 +00:00
brendan%mozilla.org
c70d301f7e
Fix up comments, overlong lines, NULL in C code, slight code simplification in log_filename (r/sr=blythe/dbaron).
2002-11-13 04:40:17 +00:00
timeless%mac.com
dec943eb10
Bug 106386 rid source of misspellings
...
r=db48x sr=blake a=asa
2002-03-19 04:30:17 +00:00
blythe%netscape.com
00c321d9fb
Fix Bug 115189
...
Trace-Malloc records line number information on platforms which have it.
r=dp sr=alecf
2002-01-09 19:03:01 +00:00
dp%netscape.com
cb3dce038a
bug 113738 Cost of malloc into trace-malloc log r=blythe, sr=brendan
2001-12-15 00:24:12 +00:00
blythe%netscape.com
fbfee2b106
Fix bug 113958, win32 nsTraceRefcnt support.
...
r=dbaron, sr=brendan
2001-12-11 22:26:47 +00:00
blythe%netscape.com
1ef06c2bf5
Fix bug 114149, trace-malloc output platform specific
...
r=dp, sr=brendan
2001-12-11 22:21:50 +00:00
dp%netscape.com
bc26d6a0ca
bug 113833 preventing initalization of trace malloc stuff unless
...
--trace-malloc command line is given. sr=dveditz
2001-12-07 06:41:55 +00:00
blythe%netscape.com
046f20a06d
Bug 112953, non debug trace-malloc on win32.
...
r=dp,sr=brendan
NOT part of normal build.
Change hinges on another change to nsprpub/gmakefile.win that should land
by those in charge of that module shortly.
2001-12-06 02:36:02 +00:00
blythe%netscape.com
f7fceef68c
Fix bug 112196
...
win32 symbols now work for trace-malloc
r=dbaron,sr=brendan
2001-11-27 22:54:05 +00:00
blythe%netscape.com
ed4ccb0a55
Fix bug 110807, newlines on win32 trace-malloc tools
...
sr=brendan,r=dbaron
NOT in normal build
2001-11-26 21:10:45 +00:00
dbaron%fas.harvard.edu
9d6f0a2650
Allow nsTraceMalloc to build even when cplus_demangle isn't available (should fix bustage on Brad's tinderbox). Also use NS_PTR_TO_INT32 per Brendan's review comments on bug 106352.
2001-11-20 23:32:17 +00:00