104 Commits

Author SHA1 Message Date
darin%meer.net
d52d34fca1 restoring warning per bsmedberg
git-svn-id: svn://10.0.0.236/trunk@193292 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-31 00:59:02 +00:00
darin%meer.net
70deb5f58d fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron
git-svn-id: svn://10.0.0.236/trunk@193272 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 18:40:56 +00:00
benjamin%smedbergs.us
9d75222418 Bug 328855 - Support x86-64 in nsStackFrameUnix, r=dbaron
git-svn-id: svn://10.0.0.236/trunk@191410 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-28 18:28:54 +00:00
benjamin%smedbergs.us
be891ac66c Bug 325229 followup: only dump refcnt statistics if logging has been initialized
git-svn-id: svn://10.0.0.236/trunk@189560 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-10 16:19:13 +00:00
benjamin%smedbergs.us
70d82c362b Bug 325229 part 1 - standalone glue registers exit routine which is called after module unload; also fixes bug 317481 - C API for nsTraceRefcnt; also fixes bug 318622 - Make nsTraceRefcntImpl::SetActivityIsLegal work properly and turn it on; design review by dbaron, r=darin
git-svn-id: svn://10.0.0.236/trunk@189558 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-10 15:00:36 +00:00
dbaron%dbaron.org
700736bdc2 Use __builtin_frame_address instead of setjmp to get the frame pointer for Linux stack traces, plus a little other cleanup. r=caillon sr=shaver b=323853
git-svn-id: svn://10.0.0.236/trunk@189528 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-09 23:03:49 +00:00
timeless%mozdev.org
578da30c2b backing out changes from
Bug 323853 - JB_BP not exported by newer glibc
per shaver, r=shaver


git-svn-id: svn://10.0.0.236/trunk@188872 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 19:35:14 +00:00
wr%rosenauer.org
d9d7edb8b3 Bug 323853 - JB_BP not exported by newer glibc (2.4), r=bsmedberg, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@188144 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-25 05:46:27 +00:00
joshmoz%gmail.com
f3e632451e remove XP_MAC code from xpcom/base. r=josh r=dougt a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@175068 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 00:24:42 +00:00
dougt%meer.net
e01d005842 bug 280245. WinCE build and support changes. r=darin
git-svn-id: svn://10.0.0.236/trunk@168534 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-30 21:33:47 +00:00
gerv%gerv.net
210853d71e Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155067 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:21:17 +00:00
cls%seawood.org
3fbe4d6c86 Remove troublesome libiberty dependency by using __cxa_demangle instead of cplus_demangle. (redux)
Bug #232763 r=dbaron sr=brendan


git-svn-id: svn://10.0.0.236/trunk@152657 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 07:16:11 +00:00
cls%seawood.org
3cf0350971 Backing out previous changes.
Missed a cplus_demangle call and it turns out that all of trace-malloc needs to be tweaked to use c++ instead of C.
Bug #232763


git-svn-id: svn://10.0.0.236/trunk@152605 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-10 18:55:04 +00:00
cls%seawood.org
929086f7ff Remove troublesome libiberty dependency by using __cxa_demangle instead of cplus_demangle.
Bug #232763 r=dbaron sr=brendan


git-svn-id: svn://10.0.0.236/trunk@152593 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-10 16:19:47 +00:00
bryner%brianryner.com
b5ccad4460 Bug 229875 - eliminate unnecssary public/virtual destructors. This patch changes all refcounted classes under xpcom/, which aren't inherited from or used on the stack, to have private, nonvirtual destructors. r=dougt, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@151359 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 06:14:18 +00:00
dougt%meer.net
5461ee7fb8 Fixing bustage
git-svn-id: svn://10.0.0.236/trunk@145594 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-05 06:42:22 +00:00
dougt%meer.net
6dfc67684a Fix for 205023. Adds nsTraceRefcnt stubs that access a global to allow tracing refcnt to work with the GRE/xpcom glue builds. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@145587 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-05 05:29:10 +00:00
alecf%netscape.com
8d4f1935a6 fix for bug 195298 - pldhash ops tables should be const.. r=dougt, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@140696 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 15:10:37 +00:00
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