103 Commits

Author SHA1 Message Date
dbaron%dbaron.org
bed177a4c6 See if using mScanDelay of 1 instead of 0 fixes the leak regression.
git-svn-id: svn://10.0.0.236/trunk@228556 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-21 23:49:37 +00:00
dbaron%dbaron.org
f44d033b98 Change cycle collector aging constant from 10 to 0. b=381199 r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@228552 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-21 23:02:53 +00:00
graydon%mozilla.com
3aa8d87458 Bug 384942, dump graph on cycle collection fault.
r=dbaron


git-svn-id: svn://10.0.0.236/trunk@228283 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-19 01:29:10 +00:00
dbaron%dbaron.org
6f5c993c58 Back out bug 381199.
git-svn-id: svn://10.0.0.236/trunk@228020 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-14 00:12:16 +00:00
dbaron%dbaron.org
6c6ad70c56 Change cycle collector aging constant from 10 to 0. b=381199 r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@228012 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-13 23:22:19 +00:00
peterv%propagandism.org
c97f5a75ca 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.
git-svn-id: svn://10.0.0.236/trunk@227691 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-08 10:17:21 +00:00
dbaron%dbaron.org
2bd53509b4 Don't loop through all the possible shutdown collections when we suspect all native wrappers. b=383234 r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@227620 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-06 22:09:00 +00:00
dbaron%dbaron.org
d460261326 Shutdown in one cycle when we set mScanDelay to 0. b=383234 r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@227619 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-06 22:08:25 +00:00
dbaron%dbaron.org
1288736567 strdup when allocating mName so we have useful pointers. b=383234 r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@227618 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-06 22:07:29 +00:00
dbaron%dbaron.org
1ea669bfbe 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
git-svn-id: svn://10.0.0.236/trunk@227617 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-06 22:06:56 +00:00
dbaron%dbaron.org
68035f3240 When explaining why expected garbage was not collected, list the known references when some were unknown. b=383234 r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@227615 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-06 22:06:00 +00:00
dbaron%dbaron.org
12173d4ac2 Make DEBUG_CC compile again. b=383234 r+sr=peter
git-svn-id: svn://10.0.0.236/trunk@227613 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-06 22:04:26 +00:00
peterv%propagandism.org
cae5ba4341 Fix for bug 368774 (Make cycle collector work with refcounted non-XPCOM objects). r=dbaron, sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@226949 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-24 14:10:04 +00:00
jonas%sicking.cc
4c374fb31b Relanding bug 378987. Don't try to collect windows, documents or elements of actively viewed pages. r=bz/jst sr=jst
git-svn-id: svn://10.0.0.236/trunk@226276 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-10 20:21:13 +00:00
jst%mozilla.org
cf1e209b82 Backing out Jonas' last changes due to tinderbox orange, per Jonas' request.
git-svn-id: svn://10.0.0.236/trunk@226222 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-10 00:42:33 +00:00
jonas%sicking.cc
adac3ea8d9 Relanding bug 378987. Don't try to collect windows, documents or elements of actively viewed pages. r=bz/jst sr=jst
git-svn-id: svn://10.0.0.236/trunk@226220 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-09 23:33:29 +00:00
jonas%sicking.cc
1f3839c32b back out last patch since leaks went through the roof
git-svn-id: svn://10.0.0.236/trunk@226099 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-08 01:03:08 +00:00
jonas%sicking.cc
a46388ac06 Don't attempt to cycle collect documents, windows and elements that are currently being viewed. r=bz, sr=jst b=378987
git-svn-id: svn://10.0.0.236/trunk@226093 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-07 23:45:26 +00:00
dbaron%dbaron.org
591cec2493 Remove extra class names to address Neil's comments. b=378514
git-svn-id: svn://10.0.0.236/trunk@225553 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-03 23:07:26 +00:00
dbaron%dbaron.org
9704b1f374 Record results of cycle collection traversal so we only have to call the traversal APIs once per collection. b=378514 sr=peterv r=graydon
git-svn-id: svn://10.0.0.236/trunk@225045 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-25 21:12:11 +00:00
peterv%propagandism.org
03af169f9c Fix for bug 376854 (CycleCollector depends on uninitialized values (ageSelectionCallback and nsPurpleBuffer::BumpGeneration)). r/sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@225023 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-25 18:33:55 +00:00
dbaron%dbaron.org
6a785b4c10 Followup fixes to making cycle collector use more efficient hashtables: shrink size of table and fix warnings on 64-bit machines. b=377606 sr=peterv r=graydon
git-svn-id: svn://10.0.0.236/trunk@224912 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-23 23:34:33 +00:00
peterv%propagandism.org
348a390880 Fix for bug 372110 (Make cycle-collection debugging features optional at compile time). r=graydon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@224841 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-21 17:43:19 +00:00
peterv%propagandism.org
acbb120b72 Reorder members to make struct smaller and try to lower MH down again.
git-svn-id: svn://10.0.0.236/trunk@224783 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-20 08:51:31 +00:00
peterv%propagandism.org
155d3aa1fe Fix for bug 377606 (Switch cycle collector to more efficient hashtables). Patch by graydon, r=peterv, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@224781 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-20 08:01:01 +00:00
peterv%propagandism.org
3c41b377dc Fix for bug 373693 (Cycle collector makes AddRef about 6x slower). r=graydon, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@224682 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-18 10:10:37 +00:00
peterv%propagandism.org
3fa85f1e05 Fix for bug 375075 (Stop leaking the cycle collector on shutdown). r=bsmedberg, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@222453 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-27 09:49:06 +00:00
peterv%propagandism.org
8ac207ff45 Backing out change for debugging tinderbox orange.
git-svn-id: svn://10.0.0.236/trunk@222269 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-23 16:10:21 +00:00
peterv%propagandism.org
a2c5132fa9 Temporarily enable cycle collection timing for debug builds to figure out tinderbox orange. Will back out after qm-xserve01 tinderbox has cycled.
git-svn-id: svn://10.0.0.236/trunk@222260 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-23 15:11:53 +00:00
jst%mozilla.org
7e34e04a6d Fixing bug 374239. Add debugging code that will print time spent in various parts of nsCycleCollector::Collect(). r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@222050 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-19 23:21:31 +00:00
peterv%propagandism.org
9dcb4b1958 Fix for bug 374096 (Cycle collector doesn't collect all the cycles it could). r=graydon, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@221969 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-16 12:52:47 +00:00
graydon%mozilla.com
dc9729938a Bug 368869, previous commit had a typo: s/bool/PRBool/, s/false/PR_FALSE/.
git-svn-id: svn://10.0.0.236/trunk@221951 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-15 23:47:01 +00:00
graydon%mozilla.com
b9117b23eb Bug 368869 - Make cycle collection suspect all native wrapper roots
r=brendan, sr=jst


git-svn-id: svn://10.0.0.236/trunk@221947 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-15 23:05:03 +00:00
joshmoz%gmail.com
c245aa3385 XPCOM cycle collector is initialized statically, don't do that. b=369336 r=graydon sr=vlad
git-svn-id: svn://10.0.0.236/trunk@221866 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-14 06:15:10 +00:00
dbaron%dbaron.org
d017dd7469 Add debugging code to cycle collector to give information about objects it has been told ought to be freed. b=372766 r=graydon sr=peterv
git-svn-id: svn://10.0.0.236/trunk@221648 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-09 23:00:14 +00:00
peterv%propagandism.org
f83d032e9f Take care of reviewer comment (bug 373219).
git-svn-id: svn://10.0.0.236/trunk@221606 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-09 13:49:45 +00:00
peterv%propagandism.org
fbe71aa7e3 Fix for bug 373219 (ASSERTION: Fault in cycle collector: null XPCOM pointer returned (ptr: 0)). r/sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@221603 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-09 13:14:06 +00:00
bzbarsky%mit.edu
95e07ea4ea Relanding bug 368523 now that we've established it's the reason for the Txul change.
git-svn-id: svn://10.0.0.236/trunk@221403 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-06 19:25:10 +00:00
bzbarsky%mit.edu
6e4d76337c Back out bug 368523 to test performance impact
git-svn-id: svn://10.0.0.236/trunk@221396 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-06 18:23:15 +00:00
dbaron%dbaron.org
e623156ce9 Make nsCycleCollector::Fault do something in debug builds. b=372320 r=graydon sr=peterv
git-svn-id: svn://10.0.0.236/trunk@221342 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-05 21:07:51 +00:00
bzbarsky%mit.edu
17017014fc Don't hook malloc by default (still hook it if asked to via the env vars), and
when it's hooked ignore free(0) calls.  Bug 368523, r=graydon, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@221191 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-02 01:08:03 +00:00
peterv%propagandism.org
160ab8ca70 Fix for bug 368549 (Cycle collector doesn't handle tearoffs correctly). r=graydon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@220513 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-18 14:38:04 +00:00
gerv%gerv.net
482a23b42a Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@220126 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-14 17:33:38 +00:00
jst%mozilla.org
493b3c4f17 Landing graydon's fix for bug 366578. Make the cycle collector run at shutdown.
git-svn-id: svn://10.0.0.236/trunk@218869 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-25 00:24:08 +00:00
martijn.martijn%gmail.com
3d266983e1 Bug 366119 – Mingw build error in nsCycleCollector.cpp, r=graydon, sr=jst
git-svn-id: svn://10.0.0.236/trunk@218769 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-23 00:39:25 +00:00
graydon%mozilla.com
84186f595b Bug 366063: better fix to critical crasher, replacing band-aid submitted in 333078.
r=dbaron


git-svn-id: svn://10.0.0.236/trunk@218043 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-09 01:33:02 +00:00
jst%mozilla.org
455f6f861c Landing 64-bit fixes for bug 333078. r=graydon@mozilla.com, sr=bugmail@sicking.cc
git-svn-id: svn://10.0.0.236/trunk@217873 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-05 23:59:18 +00:00
graydon%mozilla.com
75bfd7865e Bug 333078: XPCOM cycle collector, first performance-related followup patch.
Reorganizes collection throttling to coincide with existing JS_GC scheme.


git-svn-id: svn://10.0.0.236/trunk@217799 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-05 01:44:42 +00:00
graydon%mozilla.com
3998c66e23 Bug 333078: XPCOM cycle collector
r=brendan, sicking, bz, dbaron, bsmedberg


git-svn-id: svn://10.0.0.236/trunk@217781 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-04 22:31:26 +00:00
vladimir%pobox.com
ece4ca3cad backing out bug 333078, xpcom cycle collector due to perf issues
git-svn-id: svn://10.0.0.236/trunk@215718 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-22 23:18:16 +00:00