Commit Graph

73 Commits

Author SHA1 Message Date
dbaron@dbaron.org
39d72c1b19 Remove incorrect use of NS_METHOD. b=394566 r+sr=peterv a=bzbarsky 2007-09-17 17:30:06 -07:00
jwalden@mit.edu
87b3f470a2 Bug 348748 - Remove the NS_.*_CAST macros completely! r=bsmedberg, a=no-functionality-change 2007-09-05 15:31:12 -07:00
jwalden@mit.edu
287840b3af Unbreak DEBUG_CC on Windows (calling convention mismatch); apparently nobody really uses it there. NPOTDB, rs=sicking 2007-08-30 14:47:26 -07:00
bent.mozilla@gmail.com
c1a27644d9 Bug 392493 - "Add forget() method to nsCOMPtr and nsRefPtr". r=dbaron, a=bzbarsky. 2007-08-28 16:37:22 -07:00
dbaron@dbaron.org
333618edd4 Back out a small part of bug 391848 to fix bustage for some people (and add a comment warning about the problem). 2007-08-27 22:42:25 -07:00
dbaron@dbaron.org
f587e91942 Do stack walking on a single thread to avoid deadlocks during thread creation. b=391321 r=robarnold@mozilla.com sr=jmathies@mozilla.com (delegated by bsmedberg) a1.9=bzbarsky@mit.edu 2007-08-27 22:42:04 -07:00
dbaron@dbaron.org
bb94f6cdcf Fix bustage. 2007-08-22 18:29:54 -07:00
dbaron@dbaron.org
c7baafe98b Print path to expected garbage along with refcount imbalances. b=387224 r=graydon a=brendan 2007-08-22 17:47:47 -07:00
dbaron@dbaron.org
1a55872e93 When doing ExplainLiveExpectedGarbage, suspect all nsXPCWrappedJS so that we get more objects in the graph. b=387224 r=graydon a=brendan 2007-08-22 17:47:24 -07:00
dbaron@dbaron.org
456ce4796e Make ExplainLiveExpectedGarbage print *all* references to JS objects with refcount imbalances. b=387224 r=graydon a=brendan 2007-08-22 17:46:43 -07:00
bzbarsky@mit.edu
03372522d9 Make HTML content objects use QI tables. Bug 389797, r+sr=jst, a=sicking. 2007-08-20 15:55:06 -07:00
dbaron@dbaron.org
3d844b932b Allow builds compiled with VC8 to function with older versions of dbghelp.dll. b=391848 r+a=bsmedberg 2007-08-19 14:38:31 -07:00
dbaron@dbaron.org
7344964330 Debugging code and cleanup from fixing Windows stack traces to work on VC8-compiled builds in addition to VC7.1-compiled builds. b=391848 r=bsmedberg a=bzbarsky 2007-08-19 14:37:55 -07:00
dbaron@dbaron.org
316ba54207 Enable Linux stack walking code on Mac OS X. b=336517 r+a=bsmedberg 2007-08-15 17:03:29 -07:00
dbaron@dbaron.org
dc6322123e Include file name and line number in Windows stack traces. b=391850 r+a=bsmedberg 2007-08-14 09:34:32 -07:00
dbaron@dbaron.org
367db6a074 Merge nsStackFrameWin and nsStackFrameUnix into nsStackWalk. b=391793 r+a=bsmedberg 2007-08-13 12:37:36 -07:00
dbaron@dbaron.org
35c35b77da Remove nsTraceRefcnt::LoadLibrarySymbols, which is no longer needed due to the error handling in SymGetModuleInfoEspecial. b=391793 r+a=bsmedberg 2007-08-13 12:36:57 -07:00
ginn.chen@sun.com
f9c3192b6a Bug 374689 Fix build issues r+a=dbaron 2007-08-12 22:29:55 -07:00
dbaron@dbaron.org
9afc343b9e 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
31a5daa88d Export a stack walking API (usable from C or C++) from XPCOM. b=374689 r=bsmedberg a=bzbarsky 2007-08-10 14:32:49 -07:00
dbaron@dbaron.org
0963614ac2 Split the address->symbol mapping from the rest of the stack walking code. b=374829 r=bsmedberg a=bzbarsky 2007-08-10 14:29:37 -07:00
dbaron@dbaron.org
e6a0747a5d Export a stack walking API (usable from C or C++) from XPCOM. b=374689 r=bsmedberg a=bzbarsky 2007-08-10 14:28:22 -07:00
bzbarsky@mit.edu
6cd5e2c07c Add a stack-and-abort value of XPCOM_DEBUG_BREAK 2007-08-10 12:42:58 -07:00
benjamin@smedbergs.us
0e047142a4 Bug 386025 - Expose cycle-collection symbols, r=graydon 2007-08-06 07:34:02 -07:00
dcamp@mozilla.com
67423b50ef Add an API to access <input type="file"> data. r=smontagu (for charset stuff), r+sr=jonas 2007-07-24 21:29:47 -07:00
dbaron@dbaron.org
afa55bb19c Explain another possibility in this debugging printf. DEBUG_CC only. 2007-07-14 12:06:10 -07:00
neil@parkwaycc.co.uk
11ed13d71f Followup to bug 348748 to fix the alignment of trailing backslashes in macros
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]
2007-07-11 01:46:44 -07:00
dbaron@dbaron.org
044741fe41 Make ExplainLiveExpectedGarbage traverse the suspectCurrent roots, since now that it's more accurate, more graph is always better. b=387005 r=graydon 2007-07-08 12:26:44 -07:00
jwalden@mit.edu
e3c4baccae Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
dbaron@dbaron.org
174c979c27 Make Fault give more information, #ifdef DEBUG_CC. b=386947 r=graydon 2007-07-05 15:38:38 -07:00
dbaron@dbaron.org
8e293c01db In ExplainLiveExpectedGarbage, print only the externally-referenced nodes from which the expected garbage is reachable. b=387005 r=graydon 2007-07-05 15:20:16 -07:00
dbaron@dbaron.org
2f9c58d2d1 Make suspectCurrent assertion not fire constantly after we Fault. b=386664 r+sr=peterv 2007-07-03 14:21:57 -07:00
dbaron@dbaron.org
ad25bf5b7f Change cycle collector aging constant from 10 to 0. b=381199 r+sr=peterv 2007-06-27 13:41:26 -07:00
dbaron@dbaron.org
eb0effca3c Fix gcc warning about casting string literal to char*, DEBUG-only. 2007-06-27 13:40:52 -07:00
dbaron@dbaron.org
c406f481be Keep the purple bit in sync with the purple buffer when suspect and forget calls are dropped on the floor. b=385548 r=graydon 2007-06-27 10:51:48 -07:00
dbaron@dbaron.org
32b9b04c86 Back out 385548 to try to fix test orange. 2007-06-26 22:26:38 -07:00
dbaron@dbaron.org
02448989cf Don't set the purple bit when suspect calls are dropped on the floor. b=385548 r=graydon 2007-06-26 21:47:40 -07:00
dbaron@dbaron.org
eb732c3fce Print the warning message for failure to suspect or unlink only for the objects that are the roots of what would have been collected. b=385549 r=graydon 2007-06-25 13:36:24 -07:00
dbaron@dbaron.org
86b826726a Back out again. 2007-06-21 17:30:41 -07:00
dbaron@dbaron.org
1b35379c96 See if using mScanDelay of 1 instead of 0 fixes the leak regression. 2007-06-21 16:49:37 -07:00
dbaron@dbaron.org
8a1ffc4a83 Change cycle collector aging constant from 10 to 0. b=381199 r+sr=peterv 2007-06-21 16:02:53 -07:00
graydon@mozilla.com
16a5902d61 Bug 384942, dump graph on cycle collection fault.
r=dbaron
2007-06-18 18:29:10 -07:00
dbaron@dbaron.org
d4580a96f6 Back out bug 381199. 2007-06-13 17:12:16 -07:00
dbaron@dbaron.org
315c9bfadc Change cycle collector aging constant from 10 to 0. b=381199 r+sr=peterv 2007-06-13 16:22:19 -07:00
peterv@propagandism.org
2646ce169d Fix for bug 383651 (Re-entrancy into nsCycleCollector::Collect can result in a crash). Patch by ak.miller@auckland.ac.nz, r=graydon, sr=dbaron. 2007-06-08 03:17:21 -07:00
dbaron@dbaron.org
bcec47ef49 Don't loop through all the possible shutdown collections when we suspect all native wrappers. b=383234 r+sr=peterv 2007-06-06 15:09:00 -07:00
dbaron@dbaron.org
56b18ce3b6 Shutdown in one cycle when we set mScanDelay to 0. b=383234 r+sr=peterv 2007-06-06 15:08:25 -07:00
dbaron@dbaron.org
df22213243 strdup when allocating mName so we have useful pointers. b=383234 r+sr=peterv 2007-06-06 15:07:29 -07:00
dbaron@dbaron.org
ace8e8711d Print info about things that are suspected on the extra collections at shutdown to catch deficiencies in traversal that cause us to need the extra collections. b=383234 r+sr=peterv 2007-06-06 15:06:56 -07:00
dbaron@dbaron.org
99dfb4bbf6 When explaining why expected garbage was not collected, list the known references when some were unknown. b=383234 r+sr=peterv 2007-06-06 15:06:00 -07:00