L. David Baron
f317634122
Make trace-malloc malloc hooks work with 64-bit Mac OS X by adjusting types. (Bug 558097, maybe)
2010-04-08 17:21:03 -07:00
Chris Jones
4cc7c33107
Bug 529134: Initialize tracemalloc in NS_LogInit() to ensure that tracemalloc is always thread safe. r=bsmedberg r=dbaron
2009-12-29 16:45:59 -06:00
L. David Baron
f210f9be3d
Don't rely on NS_TraceMallocStartupArgs to initialize TLS index. (Bug 442192) r=brendan
2009-03-11 07:51:30 -07:00
Ben Turner
2f25e4d199
Bustage fix for bug 478195.
2009-02-17 21:51:50 -08:00
Robert O'Callahan
2d11f79424
Bug 478195 - '[Mac] Same-thread deadlock with trace-malloc (causing random red on OS X 10.5.2 mozilla-central leak test build)'. r=dbaron.
2009-02-17 21:11:29 -08:00
Arpad Borsos
c72ef7d248
Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan
2008-10-10 17:04:34 +02:00
L. David Baron
ce9b5c3e85
Fix broken --shutdown-leaks argument handling on Windows by copying the argument out of argv rather than holding a pointer to it. b=433708 r=pavlov
2008-05-14 11:57:32 -07:00
dbaron@dbaron.org
db479f0ae5
Expose trace-malloc stack tracing. b=422847 r=brendan a=NPOTDB
2008-03-14 17:11:37 -07:00
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