Commit Graph

387 Commits

Author SHA1 Message Date
Ehsan Akhgari
3213a08bd5 Remove some extra trailing semicolons from nsCycleCollector.cpp (no bug) 2012-07-26 11:16:28 -04:00
Bill McCloskey
5ba066f3bb Bug 758034 - Clean up browser GC API (r=smaug) 2012-06-30 14:16:32 -07:00
Andrew McCreight
ffbaa85872 Bug 754495, part 5 - Add support for compartment merging to cycle collector. r=smaug 2012-06-27 08:09:56 -07:00
Bill McCloskey
db6b5999cb Bug 768282 - Run GCCyle only once for CC_FORCED GCs (r=mccr8) 2012-06-26 13:11:39 -07:00
Jeff Walden
3b720a666b Bug 763000 - Remove MOZ_Assert. r=Ms2ger, r=terrence, r=ted 2012-06-07 14:41:11 -07:00
Andrew McCreight
0507cf0146 Bug 753614 - enable DumpHeapComplete in non-debug builds. r=billm,smaug 2012-06-14 08:52:54 -07:00
Ehsan Akhgari
df3797a6e7 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (XPCOM parts); r=bsmedberg 2012-06-05 19:51:58 -04:00
Honza Bambas
fc7084f564 Bug 720778 - Important threads should have a name for better debugability, r=bsmith, sr=bsmedberg+glandium 2012-06-12 19:06:20 +02:00
Ms2ger
686e870ccd Bug 757977 - Don't use uint32 in nsCycleCollector::ScanWeakMaps; r=bsmedberg 2012-05-25 09:18:30 +02:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Matt Brubeck
60b5d7f292 Back out c209fea124e1 (bug 754198) because of Win64 build failure 2012-05-11 13:23:49 -07:00
Fabrice Desré
5397f4846a Bug 754198 - Warning treated as error in jemalloc.c. Build busted. [r=jlebar,bsmedberg] 2012-05-11 12:34:24 -07:00
Andrew McCreight
90af223342 Bug 748040 - remove malloc hooks from cycle collector. r=smaug 2012-05-10 07:59:00 -07:00
Andrew McCreight
173c5fe9e1 Bug 744103, part 5 - Remove remaining langID things from CC. r=smaug 2012-05-03 12:28:11 -07:00
Andrew McCreight
65d7a82313 Bug 744103, part 4 - Remove nsCycleCollectionLanguageRuntime. r=smaug 2012-05-03 12:28:11 -07:00
Andrew McCreight
07f9a7c5cb Bug 744103, part 3 - Change NoteRoot to NoteJSRoot and NoteNativeRoot. r=smaug 2012-05-03 12:28:11 -07:00
Andrew McCreight
8f774dbad9 Bug 744103, part 2 - Change NoteScriptChild to NoteJSChild. r=smaug 2012-05-03 12:28:10 -07:00
Andrew McCreight
3c6d6940b4 Bug 744103, part 1 - Store nsCycleCollectionJSRuntime separately. r=smaug 2012-05-03 12:28:10 -07:00
Nicholas Nethercote
43f329dbbd Bug 744311 (part 1) - Preliminary whitespace and code order changes. r=jlebar.
--HG--
extra : rebase_source : f700733d8aa1aed1ae1f9206b4ee9063f9a03341
2012-04-09 22:52:33 -07:00
Andrew McCreight
e606921b41 Bug 678615, part 2: remove FinishCycleCollection. r=smaug 2012-04-25 08:10:09 -07:00
Andrew McCreight
033fbde830 Bug 678615 - remove ExplainLiveExpectedGarbage. r=smaug sr=peterv 2012-04-25 08:10:09 -07:00
Mark Capella
bb0cb90d39 Bug 740688 - Use uintptr_t instead of PRUword, and intptr_t instead of PRWord. r=jwalden
--HG--
extra : rebase_source : 648a581323d2c2893df780f71fe34dadcc4bbaab
2012-04-11 17:17:44 -07:00
Andrew McCreight
291442c9c4 Bug 744088 - remove nsCycleCollector_getRuntime. r=smaug 2012-04-11 16:50:03 -07:00
Andrew McCreight
d1db0b69b9 Bug 738769 - only unmark purple if purple. r=smaug 2012-03-26 09:57:29 -07:00
Hessam Salehi
2bda7efc98 Bug 474505 - Replace uses of nsVoidPtrHashkey with nsPtrHashKey<T>; r=bsmedberg 2012-03-21 14:07:31 -04:00
Andrew McCreight
a13cc9c35d Bug 736763 - CanSkipInCC when adding roots. r=smaug 2012-03-18 07:17:04 -07:00
Andrew McCreight
488be30e8c Bug 521853 - Make all cycle collector faults fatal. r=smaug 2012-03-15 21:13:08 -07:00
Andrew McCreight
f578cf1551 Bug 728460, part 1 - add forget_skippable option to remove childless nodes. r=smaug 2012-03-05 13:48:04 -08:00
Andrew McCreight
a2b9892187 Bug 730357 - factor out common NoteChild code. r=smaug 2012-02-26 13:18:44 -08:00
Andrew McCreight
d592ecef31 Bug 697115 - return detailed CC results. r=smaug 2012-02-23 20:16:37 -08:00
Andrew McCreight
50124fe16f Bug 727604 - add release assertions to investigate cycle collector crashes. r=smaug 2012-02-20 12:13:29 -08:00
Olli Pettay
2421420211 Bug 726346 - Implement a version of nsICycleCollectorListener for devtools, r=mccr8
--HG--
extra : rebase_source : e0ff9a1bba67eb8efa433f954ac03691252f6bed
2012-02-17 19:35:22 +02:00
Olli Pettay
a19334a3f9 Bug 725768 - BBP for ObjectHolders, additional patch 2, r=mccr8 2012-02-13 22:59:14 +02:00
Andrew McCreight
9d988357ab Bug 726374 - clean up CC debug timing infrastructure. r=smaug 2012-02-12 08:02:01 -08:00
Andrew McCreight
a3f6bcc6f0 Bug 696174 - Log JS heap at the same time as CC heap. r=bholley,smaug 2012-02-02 16:32:30 -08:00
Andrew McCreight
92c993fb12 Bug 721794 - add SPS labels for CC entry points. r=smaug 2012-01-31 13:47:47 -08:00
Andrew McCreight
d7371468e7 Bug 721420 - WantAllTraces should disable Skippable CC optimizations. r=smaug 2012-01-29 16:45:08 -08:00
Bill McCloskey
dc52ba7996 Bug 706227 - Add way for JS_GC API users to give detailed reason for invocation (r=mccr8) 2012-01-25 10:59:55 -08:00
Luke Wagner
d85fb51b34 Bug 675078 - rm JSThreadData and JSThread (JSRuntime is now officially single-threaded) (r=igor,rs=mccr8)
--HG--
extra : rebase_source : f6d2c2c6083f4589691ede571159bfd7e7ef8701
2011-07-18 14:54:48 -07:00
Matt Brubeck
193896461a Back out 79deba022227 (bug 675078) because of Win debug mochitest-other failures 2012-01-24 17:32:30 -08:00
Luke Wagner
6068502afa Bug 675078 - rm JSThreadData and JSThread (JSRuntime is now officially single-threaded) (r=igor) 2011-07-18 14:54:48 -07:00
Olli Pettay
708edb326d Bug 718634 - Move CanSkip* to nsCycleCollectionParticipant, r=mccr8
--HG--
extra : rebase_source : 7eb8cadf14e2d38d689e74a354d6edee6f7f9d20
2012-01-17 18:32:19 +02:00
Olli Pettay
a10e38916c Bug 716518 - Add skip* phases to cycle collector, r=mccr8
--HG--
extra : rebase_source : c53a42bbbc430384df37d0aeb0d882c09665f672
2012-01-14 18:58:05 +02:00
Ehsan Akhgari
bdde79044d Bug 714286 followup - Fix the temp path detection code for Windows; r=mccr8 2012-01-03 22:53:30 -05:00
Phil Ringnalda
6b2c365532 Merge mozilla-inbound with mozilla-central 2012-01-01 20:53:49 -08:00
Olli Pettay
f4637a54ab Bug 713778 - nsICycleCollectorListener should not enable trace_all by default, r=mccr8 2012-01-01 23:48:42 +02:00
Ehsan Akhgari
33bd17221a Bug 714286 - Cycle collection log should be written to a place where the process can write to, and the name of the file should be printed to the error console; r=mccr8 2012-01-01 17:34:00 -05:00
Andrew McCreight
5b510f1127 Bug 706164 - Add telemetry for CC forcing GC. r=bent 2011-12-05 09:04:41 -08:00
Nathan Froyd
0071f7a006 Bug 709205 - use GetObserverService in xpcom; r=dougt 2011-12-09 14:36:17 -05:00
Andrew McCreight
0bdc164384 Bug 668855, part 5: scan weak maps. r=gal 2011-11-24 07:35:57 -05:00
Andrew McCreight
fa0cc49dda Bug 668855, part 4: store weak map info in CC data structure. r=gal 2011-11-24 07:35:56 -05:00
Andrew McCreight
5b34144669 Bug 668855, part 2: add nsCycleCollectionTraversalCallback hook for weak mappings. r=peterv 2011-11-24 07:35:56 -05:00
Andrew McCreight
2e0d3c99a5 Bug 694436 - begin CC listener before BeginCollection. r=bent 2011-10-13 17:37:18 -07:00
Olli Pettay
2a671d4eaf Bug 702240 - [CC] Optimize sizeof nsPurpleBuffer::Block, r=mccr8 2011-11-14 18:10:06 +02:00
Luke Wagner
d542a26a63 Bug 650411 - assert in debug/release builds that JSRuntime is only used in a single-threaded manner (r=jorendorff,sr=dmandelin)
--HG--
extra : rebase_source : f18561fff556332789e05623ab0cec2e7faacf78
2011-07-01 14:11:31 -07:00
Ehsan Akhgari
92064e6d3f Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden
b5e57820bf Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Jeff Walden
d0532c3e95 Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail 2011-10-12 12:21:53 -07:00
Jeff Walden
0f30b277bf Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : 860a8271bf7e51cde358f2a4185c410de1fc2960
2011-10-10 22:50:08 -07:00
Alon Zakai
0e3cba2dd6 Bug 692305 - Make cycle collector dumps multiprocess-friendly. r=dougt 2011-10-06 13:22:43 -07:00
Michael Wu
d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Andrew McCreight
0fe49482eb Bug 679779 - Add a #define to always log CC graph. r=bent 2011-08-17 10:35:40 -07:00
Andrew McCreight
cb27fabbd1 Bug 649532 - make cycle collector logging output complete CC graph. r=peterv 2011-06-22 10:41:17 -07:00
Luke Wagner
3450b1f27f Backed out changeset 0cf822d12c64 (and dependent be91fb29d950 and 53dd7a930bae) due to intermittent crashes
--HG--
extra : rebase_source : 9c96a4ac164ef8929591ef3d83ad6c974642557a
2011-08-15 17:21:23 -07:00
Luke Wagner
96bc3e3be8 Bug 650411 - assert in debug/release builds that JSRuntime is only used in a single-threaded manner (r=jorendorff,sr=dmandelin)
--HG--
extra : rebase_source : b20ddca63da88a8efe2f5dc06364785aebe8b9ea
2011-07-01 14:11:31 -07:00
Ehsan Akhgari
523ebb7851 Bug 677661 - Remove nsTPtrArray and add a SafeElementAt(index_type) API to nsTArray when it's instantiated with a pointer type; r=sicking 2011-08-10 01:36:00 -04:00
Andrew McCreight
7e5a17e0da Bug 658672 - Reduce size of cycle collector node and edge blocks. r=peterv 2011-06-17 16:19:41 -07:00
Andrew McCreight
35655d09f6 Bug 665995 - Memory reporter for cycle collector. r=bent 2011-07-08 15:49:31 -07:00
Andrew McCreight
2a9ee7ba0c Bug 663920 - add telemetry for num of RCed and GCed nodes, and num collected. r=bent 2011-06-10 13:33:06 -07:00
Andrew McCreight
e3a49b05f5 Bug 665044 - lift CC GC outside of the CCRunner mutex. r=bent 2011-06-21 15:06:42 -07:00
Andrew McCreight
2a53256a9b Bug 665564 - change DescribeNode to DescribeRefCountedNode to remove CCNodeType. r=bent 2011-06-23 14:10:52 -07:00
Ehsan Akhgari
92ab9f79c9 Merge mozilla-central into mozilla-inbound 2011-06-20 23:42:45 -04:00
continuation@gmail.com
ae699a9b73 Bug 664506 - Do all of the shutdown GCs in the cycle collector. r=bent
--HG--
extra : rebase_source : d588e910abe9404253c222c81abb25e0bae8fe7a
2011-06-15 15:53:00 -07:00
Taras Glek
3447e79c1c bug 661574: Implement telemetry directory r=Mossop+glandium+mwu 2011-06-20 14:47:58 -07:00
Andrew McCreight
81ec3bd93a Bug 663532 - Run GC from cycle collector in main thread, not CC thread. r=bent 2011-06-13 13:24:23 -07:00
Andrew McCreight
2c08b43356 Bug 658386 - part 2: eliminate redundant stores of PtrInfo child pointers. r=peterv
--HG--
extra : rebase_source : 34b01a7e2a05a7ea35da408a20b5e97f21681af3
2011-06-09 14:55:29 -07:00
Andrew McCreight
7755be5842 Bug 658386 - part 1: eliminate mLastChild field from PtrInfo. r=peterv
--HG--
extra : rebase_source : d4b6b71ae273b4b570591d6548cfaed559598d49
2011-06-09 14:55:04 -07:00
Bill McCloskey
f0333b1dd8 Bug 660778 - Deal with stack overflow in UnmarkGrayChildren (r=gal) 2011-06-03 13:08:21 -07:00
Taras Glek
e7d5270db5 bug 585196: Cycle-collector telemetry probe r=bent 2011-05-12 11:22:25 -07:00
Chris Leary
613529c295 Merge mozilla-central to tracemonkey. 2011-05-09 14:27:44 -07:00
Andrew McCreight
02359464cb Bug 650519. Add safe function to check gray GC mark bits, then use it. (r=gal)
--HG--
extra : rebase_source : bb8eeed202e30c575ff22165c0b4de591c1dcb64
2011-05-04 09:26:44 -07:00
Ed Morley
33aac194a8 Bug 652506 - Remove WinCE code from xpcom; r=bsmedberg 2011-05-01 20:59:24 +02:00
L. David Baron
abb3b86d3d Make XPCOM_CC_DRAW_GRAPHS work at shutdown (in addition to working for non-shutdown collections). (Bug 652056, patch 3) r=peterv 2011-05-02 18:43:45 -07:00
Chris Leary
47dfb01d0c Merge mozilla-central to tracemonkey. 2011-04-11 16:54:01 -07:00
Luke Wagner
b573ab190a Remove implicit cycle-collector dependency on XPConnect lazy initialization broken by 59705c13d959 (rs=peterv) 2011-04-07 16:53:33 -07:00
Andrew McCreight
8a822b4e90 Bug 641910. Don't add non-grey nodes to the cycle collector model graph. r=gal@uci.edu 2011-03-28 13:05:48 -07:00
Peter Van der Beken
e226a523f1 Fix for bug 584048 (Clean up cycle collection code) - merge RootWhite and CollectWhite. r=bent. 2011-03-06 12:11:31 +01:00
Peter Van der Beken
dae975b92f Fix for bug 584048 (Clean up cycle collection code) - rename RootAndUnlinkJSObjects to Root. r=bent. 2010-12-16 16:30:13 +01:00
Peter Van der Beken
eff5ea6c1b Fix for bug 603844 (Leak txUnknownHandler+ with transformToDocument(textnode)). r=sicking. 2010-12-02 11:12:27 -05:00
bent.mozilla@gmail.com
dad733aba0 Only run CC after the GC has run at least once (bug 626768, r=gal). a=blocker 2011-02-23 00:08:36 -08:00
Ginn Chen
b8af053c68 Bug 633457 - "Firefox hangs at startup" (r=bent, a=hardblocker) 2011-02-11 20:49:00 -08:00
Olli Pettay
1fc964bf8b Bug 634916 - Crash on shutdown [@ nsCycleCollector_collect] in DEBUG_CC code, r=peterv, a=NPOTB 2011-02-17 19:50:53 +02:00
bent.mozilla@gmail.com
6377c3205b Fix DEBUG_CC (bug 615058, r=gal, a=NPOTB). 2011-02-09 17:34:22 -08:00
Peter Van der Beken
5da3cd5e7d Fix DEBUG_CC build bustage. a=build bustage.
--HG--
extra : rebase_source : 5059f7704b2833c797aff4bb187402d9700c985b
2011-01-17 12:24:51 +01:00
Peter Van der Beken
19889ce636 Fix orange from 77979cd6890d. a=bustage fix. 2011-01-14 15:51:43 +01:00
Peter Van der Beken
f53484fb2d Fix for bug 621258 (Don't refcount CC listeners on the CC thread). r=bent, a=jst.
--HG--
extra : rebase_source : fa0c79fb25b9120ffe25da60249c8d07aaa0228f
2011-01-14 11:06:09 +01:00
Ben Turner
7670250f20 Bug 580096 - 'move the cycle collector off the main thread'. r=peterv+jst 2010-11-11 14:52:30 -08:00
Igor Bukanov
d5f7334631 bug 597736 - fixing TreeFragment leak. r=gal 2010-09-21 14:58:19 +02:00
Robert O'Callahan
79c4d12751 Fix for bug 466157 (Enable dumping of cycle-collector graphs in any build). r=dbaron, a=jst.
--HG--
extra : rebase_source : b47d149434c735981a9a80ae6016624120fee371
2010-08-12 12:03:23 +12:00
Dão Gottwald
da59e060eb Backed out changeset a27043cd19ff 2010-08-18 09:46:54 +02:00
Robert O'Callahan
b638314459 Bug 497808. Enable dumping of cycle-collector graphs in any debug build. r=peterv,a=blocking 2010-08-12 12:03:23 +12:00
Robert Sayre
802a358676 Merge mozilla-central to tracemonkey. 2010-07-30 21:57:41 -07:00
Peter Van der Beken
ffaf8aa520 Back out debugging code for bug 500105. 2010-07-30 11:57:19 +02:00
Andreas Gal
3dd9f9600b Support independent cycle collection and garbage collection (573175, r=jst). 2010-07-19 23:31:01 -07:00
Andreas Gal
284e32eb67 Move the cycle collector out of the GC callback (573060, r=peterv). 2010-07-15 18:08:47 -07:00
Andreas Gal
d7b656c9d6 Bug 579524 - DEBUG_CC broken by fatval. r=sayrer 2010-07-16 20:41:28 -07:00
Andreas Gal
63124d7f53 Backed out bug 573060. 2010-07-15 14:14:26 -07:00
Andreas Gal
f64b050097 Move the cycle collector our of the GC callback (573060, r=peterv). 2010-07-15 10:30:37 -07:00
Jonas Sicking
b41c433cea Bug 562791: Add NS_TIME_FUNCTION and friends to content code. r=jst 2010-04-30 12:40:59 -07:00
Mitchell Field
f544d71a9d Bug 560095 - Use mozilla::services::GetObserverService(). r=biesi,dveditz,gavin,josh,jst,mrbkap,roc,sdwilsh,shaver,sicking,smontagu,surkov 2010-04-29 18:59:13 +02:00
Jonas Sicking
fc6be95da8 Bug 549743: Abort if cycle collected object is refcounted from threads other than the main thread. Such refcounting will randomly cause leaks and crashes anyway, so better crash up front to make sure developers notice. r=dbaron 2010-03-02 16:04:34 -08:00
timeless@mozdev.org
c57d00faa1 Bug 503638 OOM crash [@ PL_DHashTableOperate | _MD_CURRENT_THREAD] in nsCycleCollector
r=dbaron
2010-02-28 11:23:59 +01:00
L. David Baron
51ff23326f Make GraphWalker use templates instead of virtual functions. (Bug 537547) r=smaug 2010-01-12 08:51:39 -08:00
Peter Van der Beken
0cc50cea3d Make sure debugging code for topcrash bug 500105 brings up breakpad. r=dbaron. 2009-12-03 12:23:06 +01:00
Benjamin Smedberg
80f60eef3f Bug 526586 - XULRunner crashes on startup on Windows r=bustage fix and at least agreement on the approach from dbaron 2009-11-09 14:30:01 -05:00
Benjamin Smedberg ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
42e798be85 Add runtime NS_IsMainThread checks to protect the cycle collector's purple buffer, and make NS_IsMainThread faster on our major platforms. (Bug 521750) r=peterv 2009-10-28 10:28:57 -07:00
Peter Van der Beken
ec0c996b5e Add temporary debugging code to help figure out top crash bug 500105, part 2. r=dbaron. 2009-10-07 17:44:28 -07:00
Peter Van der Beken
5ae2dbcce6 Add temporary debugging code to help figure out top crash bug 500105, part 1. r=dbaron. 2009-10-27 13:38:18 +01:00
L. David Baron
245a54f09e Backed out changeset d6add78eff55 (Increase maximum collections at shutdown from 5 to 10 to see if it fixes the leaks on Windows mochitests 2/5). 2009-10-23 00:47:27 -04:00
L. David Baron
f7987a3da3 Increase maximum collections at shutdown from 5 to 10 to see if it fixes the leaks on Windows mochitests 2/5. 2009-10-22 18:08:57 -04:00
Andreas Gal
0c97581323 Notify JS_CommenceRuntimeShutdown from CycleCollector (511522, r=graydon). 2009-08-19 15:13:02 -07:00
Blake Kaplan
02bda8a1b2 Bug 502687 - GCGraphBuilder::AddNode crashes on OOM. r=dbaron 2009-07-16 13:06:48 -07:00
L. David Baron
dfd2b373c7 Make some of the DEBUG_CC code accessible to code in non-debug builds so it can be used by memory tools for Web developers. (Bug 500233) r+sr=peterv 2009-07-08 18:10:29 -07:00
L. David Baron
caf9fffbee Expose the cycle collector language runtimes so that other code can do cycle collection traversal. (Bug 500317) r+sr=peterv 2009-07-08 18:10:29 -07:00
Peter Van der Beken
75552f6810 Fix for bug 492324 ("ASSERTION: wrong entry" during cycle collection (nsXBLDocumentInfo)). r=dbaron, sr=jst.
--HG--
extra : rebase_source : ea5eb556d1fe86b42ede4a0515e0c4c06544117b
2009-06-01 21:22:18 +02:00
L. David Baron
368b7f1ed8 Make cycle collector's purple buffer consist of entries that the objects in the purple buffer can point to, and remove the notion of scan delay (which was previously set to 0). (Bug 490695) r+sr=peterv r=bsmedberg 2009-05-06 13:46:04 -07:00
L. David Baron
ea744a614b Use the purple buffer in ExplainLiveExpectedGarbage. (Bug 488603) r+sr=peterv 2009-04-24 15:45:34 -07:00
L. David Baron
f8d4d33136 Reverse the meaning of suspectCurrentCount and rename it to expectedGarbageCount. (Bug 488603) r+sr=peterv 2009-04-24 15:45:34 -07:00
L. David Baron
ef078cfca9 When we print warnings about objects that should have been collected, see if they're in the purple buffer and print different warnings if they are. (Bug 488603) r+sr=peterv 2009-04-24 15:45:34 -07:00
Peter Van der Beken
6f0b054294 Fix for bug 423473 (Cycle collector should restart after getting a fault). r/sr=jst.
--HG--
extra : rebase_source : fd82c02bef434c36383df0862af2399455caa65b
2009-04-09 14:02:48 +02:00
Robert O'Callahan
8ae00250b4 Bug 475023. Fix DEBUG_CC compilation for nsCStringArray removal. r+sr=roc
--HG--
extra : rebase_source : e217b220febb4a5770efb562580210992fa88126
2009-01-30 20:16:16 +13:00
Fred Jendrzejewski
424883d380 Bug 466622. Replace nsCStringArray with nsTArray<nsCString> for more consistent code and fewer heap allocations. r+sr=roc,r=bsmedberg
--HG--
extra : rebase_source : b963bf5de9d9c445b14620479691482512e0faf2
2009-01-22 17:15:34 +13:00
Arpad Borsos
c72ef7d248 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
Peter Van der Beken
12e78301e6 Address review comment for bug 423471 - Cycle collection shouldn't fault when traversing script objects of languages that don't participate. r/sr=dbaron. 2008-06-21 19:47:46 +02:00
Peter Van der Beken
5f15419301 Bug 423471 - Cycle collection shouldn't fault when traversing script objects of languages that don't participate. r/sr=dbaron. 2008-06-21 17:25:29 +02:00
dbaron@dbaron.org
0b50565733 Print shortest path to expected garbage for unlink deficiencies as well. b=422848 r+sr=peterv a=DEBUG_CC only (not part of default build) 2008-03-27 10:09:51 -07:00
dbaron@dbaron.org
b1f404f0bb Add knowledge of edge names to cycle collector, ifdef DEBUG_CC. b=420514 r+sr=peterv a=damons 2008-03-17 16:11:08 -07:00
dbaron@dbaron.org
57f729547a Fix DEBUG_CC bustage on Windows resulting from bug 402966 (and bug 407034). r+sr=peterv a=Not part of the default build (DEBUG_CC only) 2008-03-07 09:55:51 -08:00
Olli.Pettay@helsinki.fi
3420acbf36 Bug 415025, try to improve CC scheduling, r=peterv, sr=jst 2008-02-25 09:47:25 -08:00
dougt@meer.net
a1ca1ae26e Fixes for Windows CE. b=418662, r=bsmedberg, a=damons 2008-02-22 16:22:47 -08:00
bent.mozilla@gmail.com
8fdba1cac1 Bug 414977 - "insufficient unlink methods in some DOM classes?". Move the warning until after XPConnect deferred releases, r=dbaron, sr=peterv, a=blocking1.9+. 2008-02-22 12:25:12 -08:00
peterv@propagandism.org
7635acb120 Fix DEBUG_CC builds. 2008-02-15 14:23:16 -08:00
peterv@propagandism.org
8c763bd6fa Fix for bug 405128 (Remove some nsDeque use from cycle collector). r/sr=dbaron, a=beltzner. 2008-02-15 05:12:55 -08:00
dbaron@dbaron.org
d318cc2c22 Warn when Unlink doesn't do what it should. b=414972 r+sr=peterv a=not part of default build (DEBUG_CC only) 2008-02-08 11:48:51 -08:00
peterv@propagandism.org
17f5f4406d Fix for bug 407034 (JS_Assert "!rt->gcRunning" unbinding link elements in cycle collector with JS protocol handlers), r/sr=dbaron. 2008-01-29 18:05:43 -08:00
peterv@propagandism.org
8affa46361 Try to fix orange 2008-01-29 13:42:05 -08:00
peterv@propagandism.org
55896575d9 Fix for bug 407034 (JS_Assert "!rt->gcRunning" unbinding link elements in cycle collector with JS protocol handlers), r/sr=dbaron. 2008-01-29 12:48:32 -08:00
reed@reedloden.com
d475e3dbc6 Bug 376530 - "Fix CycleCollector building with uClibc library" [p=romaxa@gmail.com (romaxa) r+sr=peterv a1.9=schrep] 2008-01-21 16:17:41 -08:00
dbaron@dbaron.org
79ec4ed625 Fix DEBUG_CC bustage treating all XPConnect roots as expected garbage. b=410116 r+sr=peterv Not part of default build (DEBUG_CC-only). 2008-01-11 14:24:04 -08:00
dbaron@dbaron.org
91fb33093f Fix DEBUG_CC bustage from bug 402966. All changes #ifdef DEBUG_CC (not part of the default build). 2008-01-10 14:27:07 -08:00
peterv@propagandism.org
0c31e852c0 Fix for bug 402966 (JS_Assert "!rt->gcRunning"). r/sr=dbaron. 2008-01-10 06:10:03 -08:00
mozilla@weilbacher.org
27c0959598 [OS/2] Bug 404407: improve memory consumption on OS/2. Part 1, call heapmin after cycle collection, r=dbaron 2008-01-09 13:14:08 -08:00
bzbarsky@mit.edu
f7d3a0cddc Report cycle collector faults to the error console and the observer service. Bug 410295, r+sr=peterv, a=schrep 2008-01-06 14:05:10 -08:00
jruderman@hmc.edu
0dbf90be29 Fix DEBUG_CC compilation error (bug 410036). r+sr=peterv, a=blocking1.9+. DEBUG_CC-only change. 2008-01-04 19:57:09 -08:00
jst@mozilla.org
d7d6ffb392 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 2007-11-01 15:51:57 -07:00
Olli.Pettay@helsinki.fi
723f86ac2f Landing (again) Bug 373462, bug 385322, Better scheduling of cycle collection/gc, r+sr=sicking,jst 2007-10-22 14:42:25 -07:00
Olli.Pettay@helsinki.fi
4474bdc204 backout Bug 373462, bug 385322. Still regress tp/talos 2007-10-21 09:46:54 -07:00
Olli.Pettay@helsinki.fi
530a7e0fd0 Test-landing (again) Bug 373462, bug 385322, Better scheduling of cycle collection/gc, r+sr=sicking,jst 2007-10-21 07:09:29 -07:00
Olli.Pettay@helsinki.fi
d8000edd01 back out Bug 373462 / bug 385322 (again :( ) 2007-09-29 10:33:22 -07:00
Olli.Pettay@helsinki.fi
67f0237669 Bug 373462 / bug 385322, Better scheduling of cycle collection/gc, r+sr=jst 2007-09-29 08:02:57 -07:00
Olli.Pettay@helsinki.fi
5a7c50d7ec backout the test patch for Bug 373462 and 385322 2007-09-23 09:10:12 -07:00
Olli.Pettay@helsinki.fi
ea28e0a59b Testland a patch for Bug 373462 and 385322, 'Better scheduling of cycle collection/gc' 2007-09-23 07:05:27 -07:00
Olli.Pettay@helsinki.fi
deef8b8707 backout patch for Bug 373462, Bug 385322 2007-09-21 03:00:47 -07:00
Olli.Pettay@helsinki.fi
a6a81f8852 Bug 373462, Bug 385322, Better scheduling of cycle collection/gc, r=jst, sr=sicking, a=sicking 2007-09-21 01:54:36 -07:00
dbaron@dbaron.org
2506d555b1 Remove incorrect use of NS_METHOD. b=394566 r+sr=peterv a=bzbarsky 2007-09-17 17:30:06 -07:00
jwalden@mit.edu
e7f0887560 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
dbaron@dbaron.org
30d448d187 Fix bustage. 2007-08-22 18:29:54 -07:00
dbaron@dbaron.org
ba27e80450 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
737f15028b 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
cc638cec42 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
benjamin@smedbergs.us
5fb457dd7e Bug 386025 - Expose cycle-collection symbols, r=graydon 2007-08-06 07:34:02 -07:00
dbaron@dbaron.org
e940cfb755 Explain another possibility in this debugging printf. DEBUG_CC only. 2007-07-14 12:06:10 -07:00
dbaron@dbaron.org
6af62a1de7 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
6d7584839a 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
c7cb35f4ec Make Fault give more information, #ifdef DEBUG_CC. b=386947 r=graydon 2007-07-05 15:38:38 -07:00
dbaron@dbaron.org
ddcd3b864b 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
91e460c07f 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
212a6a5311 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
088d801720 Fix gcc warning about casting string literal to char*, DEBUG-only. 2007-06-27 13:40:52 -07:00
dbaron@dbaron.org
0ecbf11058 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
2211b60f82 Back out 385548 to try to fix test orange. 2007-06-26 22:26:38 -07:00
dbaron@dbaron.org
247f9667fd 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
7c5b1319a0 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
a957bfec45 Back out again. 2007-06-21 17:30:41 -07:00
dbaron@dbaron.org
11208f0393 See if using mScanDelay of 1 instead of 0 fixes the leak regression. 2007-06-21 16:49:37 -07:00
dbaron@dbaron.org
071c76a324 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
31b7fc133f Bug 384942, dump graph on cycle collection fault.
r=dbaron
2007-06-18 18:29:10 -07:00
dbaron@dbaron.org
37f48fed5f Back out bug 381199. 2007-06-13 17:12:16 -07:00
dbaron@dbaron.org
d0fb8f5ccc 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
21da11d098 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
35b99373e1 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
71c86c8017 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
387bbbccf2 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
49261f75e3 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
8c714701dc 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
dbaron@dbaron.org
d1fbeecd5c Make DEBUG_CC compile again. b=383234 r+sr=peter 2007-06-06 15:04:26 -07:00
peterv@propagandism.org
5acbaf5478 Fix for bug 368774 (Make cycle collector work with refcounted non-XPCOM objects). r=dbaron, sr=sicking. 2007-05-24 07:10:02 -07:00
jonas@sicking.cc
233450d9b8 Relanding bug 378987. Don't try to collect windows, documents or elements of actively viewed pages. r=bz/jst sr=jst 2007-05-10 13:21:12 -07:00
jst@mozilla.org
eedb90c553 Backing out Jonas' last changes due to tinderbox orange, per Jonas' request. 2007-05-09 17:42:33 -07:00
jonas@sicking.cc
de64d03178 Relanding bug 378987. Don't try to collect windows, documents or elements of actively viewed pages. r=bz/jst sr=jst 2007-05-09 16:33:28 -07:00