Commit Graph

61 Commits

Author SHA1 Message Date
Andrew McCreight
e7c16849ba Bug 865320 - Move the logic for deciding when to doing a merging CC into the cycle collector. r=smaug 2013-04-29 16:41:41 -07:00
Andrew McCreight
0bafa2c0cd Bug 866151 - Clean up usage of nsCycleCollector.h and nsCycleCollectorUtils.h. r=smaug,bsmedberg
--HG--
rename : xpcom/base/nsCycleCollector.h => xpcom/glue/nsCycleCollectionJSRuntime.h
2013-04-30 10:41:22 -07:00
ISHIKAWA, Chiaki
047c5f25c4 Bug 858477: remove extra comma from nsCycleCollector.h r=mccr8 2013-04-05 10:03:56 -07:00
Kyle Huey
59dccebb9e Bug 839025: Refactor cycle collector thread handling to make it optional. r=mccr8 2013-03-25 14:26:00 -07:00
Igor Bukanov
1ea05be2db Bug 743436 - remove XPCJSRuntime::mJSCycleCollectionContext and related code. r=peterv
The patch removes no longer used XPCJSRuntime::mJSCycleCollectionContext,
nsXPConnect::mCycleCollectionContext and related code to create/destroy
contexts. As that made nsCycleCollectionJSRuntime::FinishTraverse() empty
in all cases I removed that method as well.
2013-02-27 11:33:12 -08:00
Kyle Huey
f4f18e6cd9 Bug 845441: Remove DEBUG_CC. r=mccr8 2013-02-26 13:34:32 -08:00
Olli Pettay
b2ee14044a Bug 835503 - Remove nsCycleCollector::ShouldBeFreed/WasFreed, r=mccr8 2013-01-29 12:45:38 +02:00
Andrew McCreight
ecb75d0a95 Bug 690970, part 3: fix black-gray edges in weak containers at start of CC. r=billm 2013-01-08 10:36:51 -08:00
Olli Pettay
79b3761656 Bug 811206, Fix JSHolder drop handling, part 2 (assert), r=mccr8
--HG--
extra : rebase_source : e7731c7d1f81e250ea6992e4a15c3dc52bb136d0
2012-11-28 02:56:06 +02:00
Olli Pettay
da2e3562f6 Bug 784563 - Investigate being lazier about removing things from the purple buffer, r=mccr8 2012-09-08 13:46:48 +03:00
Ehsan Akhgari
8c296bbcd4 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Bill McCloskey
0dd01290a1 Bug 758034 - Clean up browser GC API (r=smaug) 2012-06-30 14:16:32 -07:00
Andrew McCreight
95a987d18a Bug 754495, part 5 - Add support for compartment merging to cycle collector. r=smaug 2012-06-27 08:09:56 -07:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Andrew McCreight
61de8b7612 Bug 744103, part 4 - Remove nsCycleCollectionLanguageRuntime. r=smaug 2012-05-03 12:28:11 -07:00
Andrew McCreight
38b851ba07 Bug 744103, part 2 - Change NoteScriptChild to NoteJSChild. r=smaug 2012-05-03 12:28:10 -07:00
Andrew McCreight
b23b951d76 Bug 678615, part 2: remove FinishCycleCollection. r=smaug 2012-04-25 08:10:09 -07:00
Andrew McCreight
9b6a388e23 Bug 678615 - remove ExplainLiveExpectedGarbage. r=smaug sr=peterv 2012-04-25 08:10:09 -07:00
Andrew McCreight
3b03476fec Bug 744088 - remove nsCycleCollector_getRuntime. r=smaug 2012-04-11 16:50:03 -07:00
Andrew McCreight
7dc772d01a Bug 728460, part 1 - add forget_skippable option to remove childless nodes. r=smaug 2012-03-05 13:48:04 -08:00
Andrew McCreight
8acb3a3fe5 Bug 697115 - return detailed CC results. r=smaug 2012-02-23 20:16:37 -08:00
Bill McCloskey
502e67c72c 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
73a1588f02 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
0978981988 Back out 79deba022227 (bug 675078) because of Win debug mochitest-other failures 2012-01-24 17:32:30 -08:00
Luke Wagner
0d7b41f9b5 Bug 675078 - rm JSThreadData and JSThread (JSRuntime is now officially single-threaded) (r=igor) 2011-07-18 14:54:48 -07:00
Olli Pettay
bf505639a0 Bug 716518 - Add skip* phases to cycle collector, r=mccr8
--HG--
extra : rebase_source : c53a42bbbc430384df37d0aeb0d882c09665f672
2012-01-14 18:58:05 +02:00
Terrence Cole
fb465cb23d Bug 699279 - Run GC_SHRINK collection cycle when under memory pressure; r=mrbkap
GC_SHRINK is a fairly new type of GC that does more aggressive cleanups than a
normal GC.  This patch makes the browser run the GC in this mode when under
memory pressure, or when the user pushes the Minimize Memory Usage button when
on the about:memory page.

--HG--
extra : rebase_source : abdd11ee5fa5eb0e3d58122d3d72e98328d47668
2011-11-09 18:14:11 -08:00
Luke Wagner
24ebb0ec95 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
Matheus Kerschbaum
887ff1b97a Bug 678155 - Remove NS_COM. r=bsmedberg 2011-08-18 15:46:39 +02:00
Luke Wagner
87add7e577 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
4263a80f79 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
Bill McCloskey
f7c5d49018 Bug 660778 - Deal with stack overflow in UnmarkGrayChildren (r=gal) 2011-06-03 13:08:21 -07:00
Ben Turner
fca93ac512 Bug 580096 - 'move the cycle collector off the main thread'. r=peterv+jst 2010-11-11 14:52:30 -08:00
Igor Bukanov
b8792e95c1 bug 597736 - fixing TreeFragment leak. r=gal 2010-09-21 14:58:19 +02:00
Robert O'Callahan
b096738cb6 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
9389a17efd Backed out changeset a27043cd19ff 2010-08-18 09:46:54 +02:00
Robert O'Callahan
3ea434fa14 Bug 497808. Enable dumping of cycle-collector graphs in any debug build. r=peterv,a=blocking 2010-08-12 12:03:23 +12:00
Andreas Gal
c8091508b9 Support independent cycle collection and garbage collection (573175, r=jst). 2010-07-19 23:31:01 -07:00
Andreas Gal
81c28c4fe8 Notify JS_CommenceRuntimeShutdown from CycleCollector (511522, r=graydon). 2009-08-19 15:13:02 -07:00
L. David Baron
7f0a460c49 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
Olli.Pettay@helsinki.fi
5bf8e82603 Bug 415025, try to improve CC scheduling, r=peterv, sr=jst 2008-02-25 09:47:25 -08:00
peterv@propagandism.org
bd933a00a4 Fix for bug 402966 (JS_Assert "!rt->gcRunning"). r/sr=dbaron. 2008-01-10 06:10:03 -08:00
jst@mozilla.org
858f753261 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
a78cbac9b4 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
69d3a1fc7a backout Bug 373462, bug 385322. Still regress tp/talos 2007-10-21 09:46:54 -07:00
Olli.Pettay@helsinki.fi
cad8f0b8c4 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
2fb8ea7b56 back out Bug 373462 / bug 385322 (again :( ) 2007-09-29 10:33:22 -07:00
Olli.Pettay@helsinki.fi
a6aedd78ae 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
f9c785fb8b backout the test patch for Bug 373462 and 385322 2007-09-23 09:10:12 -07:00
Olli.Pettay@helsinki.fi
1d42d7ad32 Testland a patch for Bug 373462 and 385322, 'Better scheduling of cycle collection/gc' 2007-09-23 07:05:27 -07:00