dbaron%dbaron.org
4744a88e24
Fix shutdown leaks in nsTraceRefcnt. b=63665 r=timeless sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@140245 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 14:53:01 +00:00
dougt%netscape.com
17b4467f60
removing NS_MT_SUPPORTED define. b=186494, r=dougt, r=seawood
...
git-svn-id: svn://10.0.0.236/trunk@138992 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 23:30:22 +00:00
dougt%netscape.com
a2a82fab36
move nsTraceMalloc out of XPCOM. Factory out stackwalking code into new files. 189221 r=chak, 186585 r=blythe sr=dbaron. Most of this patch was contributed by seawood.
...
git-svn-id: svn://10.0.0.236/trunk@136371 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-15 20:40:06 +00:00
dbaron%dbaron.org
4305a396ed
Most of the changes needed for Mozilla to build with gcc's -pedantic-errors option. b=175423 r=seawood sr=bryner
...
git-svn-id: svn://10.0.0.236/trunk@136267 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-13 23:15:42 +00:00
dbaron%fas.harvard.edu
ffb8d9cca7
Change my email address from dbaron@fas.harvard.edu to dbaron@dbaron.org. Comment changes only.
...
git-svn-id: svn://10.0.0.236/trunk@135757 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-01 23:53:20 +00:00
dbaron%fas.harvard.edu
b37e1a7652
Make Linux stack walking code (DEBUG only) print library and offset information even when symbol is unavailable. b=174168 r=bbaetz sr=bzbarsky a=rjesup
...
git-svn-id: svn://10.0.0.236/trunk@131999 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-14 23:59:31 +00:00
cathleen%netscape.com
6a0e426e6c
eliminate nsCRT::strlen for char* strings (part 5), bug 124536 r=dp sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@115070 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 06:38:38 +00:00
jst%netscape.com
b9772d48fe
Fixing bug 120899. Changing the NS_WARN_IF_FALSE() macro so that it can't be mis-used in optimized builds. This change makes the macro not usable in expressions that are supposed to be evaluated in release code since the macro now expands to nothing in non-debug builds. Also eliminate NS_VALIDATE which is equally mis-usable. r=dbaron@fas.harvard.edu, sr=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@112678 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 09:20:51 +00:00
dbaron%fas.harvard.edu
f6776f3e37
Fix stack walking code to work correctly on RedHat 7.2 systems. b=106616 r=jag rs=blizzard
...
git-svn-id: svn://10.0.0.236/trunk@112250 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:40:36 +00:00
blythe%netscape.com
552180e203
Fix Bug 115189
...
Trace-Malloc records line number information on platforms which have it.
r=dp sr=alecf
git-svn-id: svn://10.0.0.236/trunk@111713 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 19:03:01 +00:00
blythe%netscape.com
58d8228c46
fix build bustage caused by recent checkin
...
git-svn-id: svn://10.0.0.236/trunk@110317 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 23:56:37 +00:00
blythe%netscape.com
aee7b180fa
Fix bug 113958, win32 nsTraceRefcnt support.
...
r=dbaron, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@110301 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 22:26:47 +00:00
dbaron%fas.harvard.edu
4a9a7c847f
Changing |#ifdef DEBUG_dbaron| to |#ifdef DEBUG_dbaron_off| so I don't see these assertions anymore.
...
git-svn-id: svn://10.0.0.236/trunk@108825 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 23:19:33 +00:00
blizzard%redhat.com
88f0c76909
null check in stack trace code so we don't crash on some systems. r=bryner, dbaron no bug number.
...
git-svn-id: svn://10.0.0.236/trunk@107737 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 16:18:56 +00:00
gerv%gerv.net
13afb6d0f9
Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
...
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
cls%seawood.org
59164dedf8
Replace previous 64-bit safe checkin with one that maintains the proper output of nsTraceRefcnt.
...
Bug #20860 r=dbaron sr=brendan
git-svn-id: svn://10.0.0.236/trunk@101069 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-15 03:30:39 +00:00
cls%seawood.org
e8d28b7625
Use NS_PTR_TO_INT32 macros to do 64-bit safe pointer conversions.
...
Bug #20860 r=Roland.Mainz@informatik.med.uni-giessen.de sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@100998 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 04:18:27 +00:00
mjudge%netscape.com
9e59d3ceb3
R,SR = waterson, kin, brendan. trace_malloc work. these changes should only be iuncorporated into the build process if someone defines MOZ_TRACE_MALLOC into their build
...
git-svn-id: svn://10.0.0.236/trunk@85527 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 22:54:05 +00:00
dbaron%fas.harvard.edu
a948227cb8
Fix the use of dynamic_cast for nsCOMPtr logging so it doesn't appear in a macro. b=61243
...
Implement (without enabling, yet) assertions to warn about static constructors. b=62006
Partly fix warnings about MOZ_DECL_CTOR_COUNTER on Mac builds by removing extra semicolon. b=60145
Start to fix the longstanding leaks of nsTraceRefcnt's own hashtables.
r=waterson@netscape.com sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@84044 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-23 16:43:32 +00:00
dbaron%fas.harvard.edu
3a7f433397
Add information to stack trace format so it can be processed by addr2line. b=59136
...
Make logging not crash when dll unloading is enabled. b=60710
r=waterson@netscape.com sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@83218 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-02 16:10:50 +00:00
brendan%mozilla.org
6a865d1089
Revamp REALLOC record for rayw's tool; add flush-log-files function (r=rayw, a=waterson, not part of build).
...
git-svn-id: svn://10.0.0.236/trunk@82854 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-22 08:05:05 +00:00
warren%netscape.com
a8b9664a8c
Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
...
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb
Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
warren%netscape.com
087c3b48c2
Reverted change from doronr@naboonline.com to print warning. This gets called erroneously when the program quits.
...
git-svn-id: svn://10.0.0.236/trunk@74457 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 09:32:35 +00:00
warren%netscape.com
9a47a3f8f6
Bug 40810 - warning message. Checking in for doronr@naboonline.com r=warren
...
git-svn-id: svn://10.0.0.236/trunk@74063 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 00:28:57 +00:00
rich.burridge%sun.com
b779e86645
Fix to prevent build bustage on nebiros with Sun compilers.
...
The Sun compiler expects a specific format for the function
used by the #pragma statement. It should return void and
have no arguments. It also needs an initial function prototype.
r=cls
Fix for breakage for checkin for bug #40769 .
git-svn-id: svn://10.0.0.236/trunk@73295 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 05:58:00 +00:00
rich.burridge%sun.com
92fa85731e
Fix to allow refcnt'ing on the Solaris platform.
...
r=scc@mozilla.org a=brendan@mozilla.org
Bug #40769
git-svn-id: svn://10.0.0.236/trunk@73253 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 22:23:47 +00:00
dbaron%fas.harvard.edu
a93592acd2
Code for nsCOMPtr leak logging, a new tool to help debug memory leaks (not yet fully enabled on non-autoconf platforms). r=waterson@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@72278 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 02:23:55 +00:00
rusty.lynch%intel.com
f1aabdc34b
Fix for bug #40997 . a=warren
...
git-svn-id: svn://10.0.0.236/trunk@71371 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 15:50:36 +00:00
mkaply%us.ibm.com
cfb19645f9
# 37239
...
r = valeski, a = brendan
OS/2 bringup on M16 continues - PR_CALLBACKs for VisualAge
git-svn-id: svn://10.0.0.236/trunk@71268 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 14:12:05 +00:00
dbaron%fas.harvard.edu
0dc8ee1f48
Make XPCOM_MEM_LOG_OBJECTS work with alloc logging (before it worked only with refcount logging). r=waterson@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@66816 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:40:13 +00:00
waterson%netscape.com
6cf9f67312
Alphabetize the bloat log output.
...
git-svn-id: svn://10.0.0.236/trunk@66257 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 06:00:24 +00:00
beard%netscape.com
c737d3c063
XP_MAC improvements, stack walking, pc to name translation, early toolbox initialization so console will pop-up in correct location.
...
git-svn-id: svn://10.0.0.236/trunk@65761 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 03:51:43 +00:00
dp%netscape.com
b9d64fd014
Removing xpcom dependency on prefs by eliminating enabling refcount
...
logging from prefs.
git-svn-id: svn://10.0.0.236/trunk@64117 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-25 08:35:35 +00:00
dp%netscape.com
920aad1008
Stack walking code for powerpc linux. Thanks to patch from
...
darkmane@w-link.net r=waterson
git-svn-id: svn://10.0.0.236/trunk@63927 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 23:39:25 +00:00
warren%netscape.com
8cf2d51f11
Fix for leak detection. Bug 29505. Debug only. code=waterson,r=warren,a=jevering
...
git-svn-id: svn://10.0.0.236/trunk@61823 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 01:35:38 +00:00
warren%netscape.com
fd4a7550c6
Fixed comment
...
git-svn-id: svn://10.0.0.236/trunk@61593 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-24 06:02:38 +00:00
warren%netscape.com
c3ef7f6816
Fixing bustage -- NS_MeanAndStdDev not included in release builds.
...
git-svn-id: svn://10.0.0.236/trunk@61592 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-24 05:40:40 +00:00
dbaron%fas.harvard.edu
be9f44f6fe
Bug 28413. Correct computation of total leaks. r=warren@netscape.com a=rickg@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@61435 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-22 13:25:20 +00:00
warren%netscape.com
921f948efe
Pulled out NS_MeanAndStdDev as an xpcom exported function for convenience.
...
git-svn-id: svn://10.0.0.236/trunk@59832 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-05 02:07:45 +00:00
warren%netscape.com
da773f8ae1
Fixed problem where avg instance size was computed based on remaining object count, rather than total allocated count. May affect bloat stats on tinderbox.
...
git-svn-id: svn://10.0.0.236/trunk@58886 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 05:14:51 +00:00
warren%netscape.com
e9f618e116
Fix for leak/bloat stats going negative. a=jar
...
git-svn-id: svn://10.0.0.236/trunk@55840 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-10 04:27:52 +00:00
nisheeth%netscape.com
7ee23780a4
Attempt to fix mac build bustage.
...
git-svn-id: svn://10.0.0.236/trunk@53980 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 07:37:04 +00:00
mcafee%netscape.com
a7cc2d6484
I forgot more stuff for prefs, fixing bustage per my last checkin here.
...
git-svn-id: svn://10.0.0.236/trunk@53970 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 05:54:58 +00:00
mcafee%netscape.com
3ddaab1812
includes were incorrectly wrapped in the NS_BUILD_REFCNT_LOGGING define, fixing mac/win32 bustage.
...
git-svn-id: svn://10.0.0.236/trunk@53967 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 05:08:58 +00:00
nisheeth%netscape.com
51e89c24b2
r=harishd.
...
- The stack walking code now works on windows. We were initializing the symbol handler on each DLL load which was resetting its symbol tables. Now, we don't re-init the symbol handler repeatedly.
- Added support for an environment variable, XPCOM_REFCNT_LOG_ENABLE_VIA_PREF. When this is set to 1, refcount logging is done based on whether the "Enable XPCOM refcount log" pref in the Debug pane is set. If this is not set, refcount logging is not affected by the pref.
git-svn-id: svn://10.0.0.236/trunk@53963 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 03:50:28 +00:00
akhil.arora%sun.com
9d927bb510
18639 r=dp need to cast away the const returned by the sun C++ 5.0 compiler
...
git-svn-id: svn://10.0.0.236/trunk@53377 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-12 23:52:17 +00:00
waterson%netscape.com
d133d7f701
Oops. Make sure XPCOM_MEM_LOG_CLASSES works without XPCOM_MEM_REFCNT_LOG being set. a=warren
...
git-svn-id: svn://10.0.0.236/trunk@53186 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-11 05:02:03 +00:00
waterson%netscape.com
74dce44ae9
Bug 18069. Support XPCOM_MEM_TRACE_OBJECTS, per-object reference count tracing. r=warren
...
git-svn-id: svn://10.0.0.236/trunk@53179 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-11 03:23:24 +00:00
dmose%mozilla.org
0efb7c174c
updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00