83 Commits

Author SHA1 Message Date
jst%mozilla.org
ae3c7e9020 Landing patch for bug 401687. Stop reference counting JS objects in the cycle collector. Patch by peterv@propagandism.org, r+sr=dbaron@mozilla.com,igor@mir2.org, a=dsicore@mozilla.com
git-svn-id: svn://10.0.0.236/trunk@238427 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-01 22:51:59 +00:00
Olli.Pettay%helsinki.fi
cd8561b5b7 Landing (again) Bug 373462, bug 385322, Better scheduling of cycle collection/gc, r+sr=sicking,jst
git-svn-id: svn://10.0.0.236/trunk@237998 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-22 21:42:26 +00:00
Olli.Pettay%helsinki.fi
2e1bff074e backout Bug 373462, bug 385322. Still regress tp/talos
git-svn-id: svn://10.0.0.236/trunk@237973 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-21 16:46:56 +00:00
Olli.Pettay%helsinki.fi
ae040f9f0b Test-landing (again) Bug 373462, bug 385322, Better scheduling of cycle collection/gc, r+sr=sicking,jst
git-svn-id: svn://10.0.0.236/trunk@237971 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-21 14:09:31 +00:00
Olli.Pettay%helsinki.fi
e62ab6eeb6 back out Bug 373462 / bug 385322 (again :( )
git-svn-id: svn://10.0.0.236/trunk@236922 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-29 17:33:24 +00:00
Olli.Pettay%helsinki.fi
8cb7efe95a Bug 373462 / bug 385322, Better scheduling of cycle collection/gc, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@236920 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-29 15:02:58 +00:00
Olli.Pettay%helsinki.fi
8b1c629f2c backout the test patch for Bug 373462 and 385322
git-svn-id: svn://10.0.0.236/trunk@236522 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-23 16:10:13 +00:00
Olli.Pettay%helsinki.fi
10c4faa867 Testland a patch for Bug 373462 and 385322, 'Better scheduling of cycle collection/gc'
git-svn-id: svn://10.0.0.236/trunk@236520 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-23 14:05:29 +00:00
Olli.Pettay%helsinki.fi
f316d5eeb5 backout patch for Bug 373462, Bug 385322
git-svn-id: svn://10.0.0.236/trunk@236434 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 10:00:48 +00:00
Olli.Pettay%helsinki.fi
66a725f097 Bug 373462, Bug 385322, Better scheduling of cycle collection/gc, r=jst, sr=sicking, a=sicking
git-svn-id: svn://10.0.0.236/trunk@236430 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 08:54:36 +00:00
dbaron%dbaron.org
8fa017c688 Remove incorrect use of NS_METHOD. b=394566 r+sr=peterv a=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@236174 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-18 00:30:06 +00:00
jwalden%mit.edu
117e3a6eeb Unbreak DEBUG_CC on Windows (calling convention mismatch); apparently nobody really uses it there. NPOTDB, rs=sicking
git-svn-id: svn://10.0.0.236/trunk@233436 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-30 21:47:26 +00:00
dbaron%dbaron.org
159e40d7fe Fix bustage.
git-svn-id: svn://10.0.0.236/trunk@232906 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-23 01:29:54 +00:00
dbaron%dbaron.org
2c99976e67 Print path to expected garbage along with refcount imbalances. b=387224 r=graydon a=brendan
git-svn-id: svn://10.0.0.236/trunk@232901 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-23 00:48:28 +00:00
dbaron%dbaron.org
1a81879c1e When doing ExplainLiveExpectedGarbage, suspect all nsXPCWrappedJS so that we get more objects in the graph. b=387224 r=graydon a=brendan
git-svn-id: svn://10.0.0.236/trunk@232900 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-23 00:48:27 +00:00
dbaron%dbaron.org
e6b3ee0c67 Make ExplainLiveExpectedGarbage print *all* references to JS objects with refcount imbalances. b=387224 r=graydon a=brendan
git-svn-id: svn://10.0.0.236/trunk@232899 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-23 00:48:26 +00:00
benjamin%smedbergs.us
0c44b4be00 Bug 386025 - Expose cycle-collection symbols, r=graydon
git-svn-id: svn://10.0.0.236/trunk@231529 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-06 14:34:05 +00:00
dbaron%dbaron.org
20112c885c Explain another possibility in this debugging printf. DEBUG_CC only.
git-svn-id: svn://10.0.0.236/trunk@229964 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-14 19:06:10 +00:00
dbaron%dbaron.org
429949f771 Make ExplainLiveExpectedGarbage traverse the suspectCurrent roots, since now that it's more accurate, more graph is always better. b=387005 r=graydon
git-svn-id: svn://10.0.0.236/trunk@229512 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 19:26:44 +00:00
jwalden%mit.edu
dda6ff3c99 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.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
dbaron%dbaron.org
e95ecf0195 Make Fault give more information, #ifdef DEBUG_CC. b=386947 r=graydon
git-svn-id: svn://10.0.0.236/trunk@229389 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 22:38:38 +00:00
dbaron%dbaron.org
dc4a4b6788 In ExplainLiveExpectedGarbage, print only the externally-referenced nodes from which the expected garbage is reachable. b=387005 r=graydon
git-svn-id: svn://10.0.0.236/trunk@229385 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 22:20:16 +00:00
dbaron%dbaron.org
f55fcca279 Make suspectCurrent assertion not fire constantly after we Fault. b=386664 r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@229277 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-03 21:21:57 +00:00
dbaron%dbaron.org
b5922118bc Change cycle collector aging constant from 10 to 0. b=381199 r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@228880 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 20:41:26 +00:00
dbaron%dbaron.org
4ab26563f4 Fix gcc warning about casting string literal to char*, DEBUG-only.
git-svn-id: svn://10.0.0.236/trunk@228879 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 20:40:52 +00:00
dbaron%dbaron.org
47d4e63026 Keep the purple bit in sync with the purple buffer when suspect and forget calls are dropped on the floor. b=385548 r=graydon
git-svn-id: svn://10.0.0.236/trunk@228860 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 17:51:48 +00:00
dbaron%dbaron.org
56f5e018b9 Back out 385548 to try to fix test orange.
git-svn-id: svn://10.0.0.236/trunk@228823 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 05:26:39 +00:00
dbaron%dbaron.org
c81b5c4ffa Don't set the purple bit when suspect calls are dropped on the floor. b=385548 r=graydon
git-svn-id: svn://10.0.0.236/trunk@228818 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 04:47:40 +00:00
dbaron%dbaron.org
fc6e5d7e2a 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
git-svn-id: svn://10.0.0.236/trunk@228710 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-25 20:36:24 +00:00
dbaron%dbaron.org
33da035d68 Back out again.
git-svn-id: svn://10.0.0.236/trunk@228563 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-22 00:30:41 +00:00
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