Commit graph

74 commits

Author SHA1 Message Date
Steve Fink
c3b0f38d01 Bug 1661293 - Move idle-time nursery GCs to a new nsJSContext::MaybePokeGC r=jonco,smaug
Differential Revision: https://phabricator.services.mozilla.com/D100367
2022-03-03 04:21:47 +00:00
Steve Fink
2b82b28cfd Bug 1661293 - Rename JS::RunIdleGCTask -> JS::MaybeRunNurseryCollection and pass through the reason, also rename IDLE_TIME_COLLECTION -> EAGER_NURSERY_COLLECTION. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139208
2022-03-03 04:21:47 +00:00
Steve Fink
bdd9587a3c Bug 1661293 - Add a CCGCScheduler.mEagerMinorGCReason field to indicate we have reached a threshold where we would like to do a minor GC if convenient. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139207
2022-03-03 04:21:47 +00:00
Steve Fink
9a89af097f Bug 1661293 - Give CCGCScheduler an mEagerMajorGCReason field (set in a later patch) to indicate that we would like to do a major GC when convenient. This is in addition to the usual mMajorGCReason for when we definitely want to do a GC. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139206
2022-03-03 04:21:46 +00:00
Steve Fink
127ac132a2 Bug 1752646 - Record whether a GC slice was triggered and budgeted for idle time r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D137355
2022-02-08 23:22:29 +00:00
Steve Fink
c780e12c98 Bug 1752646 - Emit a marker when a GC interrupt is requested r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D137351
2022-02-08 23:22:29 +00:00
Steve Fink
9f6b747106 Bug 1751543 - Skip the "can I GC yet?" check entirely in the parent process r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D137353
2022-02-08 23:22:28 +00:00
Steve Fink
ec36711a82 Bug 1747273 - Ignore the GC interrupt if the GC is running long r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D134534
2022-02-07 19:14:17 +00:00
Steve Fink
0f33dbe9b4 Bug 1738096 - Split out RunIncrementalGCSlice from GarbageCollectNow r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131704
2022-02-05 00:57:19 +00:00
Marian-Vasile Laza
46d7b2b63d Backed out 3 changesets (bug 1738096, bug 1747274) for causing build bustages on FuzzingFunctions.cpp. CLOSED TREE
Backed out changeset 00999caca48d (bug 1738096)
Backed out changeset eee1c8ccba69 (bug 1738096)
Backed out changeset 3593d4dcf5a1 (bug 1747274)
2022-02-04 07:48:24 +02:00
Steve Fink
b549663bb2 Bug 1738096 - Split out RunIncrementalGCSlice from GarbageCollectNow r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131704
2022-02-04 02:33:25 +00:00
Olli Pettay
5be5146c05 Bug 1747330, tweak GC_SLICE_DURING_IDLE handling so that negative values are reported as 0, r=pbone
Differential Revision: https://phabricator.services.mozilla.com/D135508
2022-01-11 11:56:10 +00:00
Steve Fink
543df99e4e Bug 1672121 - Stop sGCRunner GC slice if the IdleTaskRunnerTask gets a RequestInterrupt() call r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D109631
2021-12-22 18:06:06 +00:00
Steve Fink
ec62429c88 Bug 1672121 - Implement interruptible GC slice budgets r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D109630
2021-12-22 18:06:06 +00:00
Iulian Moraru
193ccd13ad Backed out 5 changesets (bug 1672121) for various crashes on mozalloc_handle_oom. CLOSED TREE
Backed out changeset 117756828ea7 (bug 1672121)
Backed out changeset 046e37035dbc (bug 1672121)
Backed out changeset de44a280103b (bug 1672121)
Backed out changeset 4acf4539a7b4 (bug 1672121)
Backed out changeset 8001b5433e38 (bug 1672121)
2021-11-30 02:59:20 +02:00
Steve Fink
024b1ac41c Bug 1672121 - Stop sGCRunner GC slice if the IdleTaskRunnerTask gets a RequestInterrupt() call r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D109631
2021-11-29 19:59:52 +00:00
Steve Fink
0181c4d9ce Bug 1672121 - Implement interruptible GC slice budgets r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D109630
2021-11-29 19:59:52 +00:00
Paul Bone
a5ee7d34fd Bug 1725539 - p4. Document the new GC scheduling code r=smaug
Depends on D123098

Differential Revision: https://phabricator.services.mozilla.com/D123099
2021-10-19 02:31:15 +00:00
Paul Bone
483701e863 Bug 1725539 - p3. Don't re-create the GC runner before tha parent replies r=smaug
Depends on D122556

Differential Revision: https://phabricator.services.mozilla.com/D123098
2021-10-19 02:31:15 +00:00
Steve Fink
e7b4f6a9ee Bug 1732161 - Add the CC reason to CC profile markers r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D127014
2021-10-14 18:15:40 +00:00
Steve Fink
436b3f12a2 Bug 1732161 - Track CCReason for all cycle collections (replacing ccType) r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126395
2021-10-14 18:15:40 +00:00
Steve Fink
b36e10c7b1 Bug 1732161 - Replace bools with CCReasons for the scheduler control variables. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D127013
2021-10-14 18:15:39 +00:00
Steve Fink
8b5a746c24 Bug 1732161 - Add profiler marker for core part of CC r=smaug,gerald
Differential Revision: https://phabricator.services.mozilla.com/D126394
2021-10-14 18:15:38 +00:00
criss
0ecd4a450b Backed out 6 changesets (bug 1732161) for causing linux base toolchains bustages. CLOSED TREE
Backed out changeset 766a1bc74001 (bug 1732161)
Backed out changeset aed63de28354 (bug 1732161)
Backed out changeset 98eaff0d5124 (bug 1732161)
Backed out changeset 76c21ec8ffb6 (bug 1732161)
Backed out changeset 49dcac272f05 (bug 1732161)
Backed out changeset 67d81f8f413e (bug 1732161)
2021-10-14 05:38:08 +03:00
Steve Fink
003b0b82b0 Bug 1732161 - Add the CC reason to CC profile markers r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D127014
2021-10-13 22:32:59 +00:00
Steve Fink
0457cf4744 Bug 1732161 - Track CCReason for all cycle collections (replacing ccType) r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126395
2021-10-13 22:32:59 +00:00
Steve Fink
645dc25ccc Bug 1732161 - Replace bools with CCReasons for the scheduler control variables. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D127013
2021-10-13 22:32:58 +00:00
Steve Fink
b12754314b Bug 1732161 - Add profiler marker for core part of CC r=smaug,gerald
Differential Revision: https://phabricator.services.mozilla.com/D126394
2021-10-13 22:32:57 +00:00
Cristian Tuns
4487c2b816 Backed out 4 changesets (bug 1725539) for performance & crash regressions. CLOSED TREE
Backed out changeset a11b32e4aa7b (bug 1725539)
Backed out changeset fa262244a063 (bug 1725539)
Backed out changeset b31d0c7c8f5e (bug 1725539)
Backed out changeset c6d75ecdad79 (bug 1725539)
2021-10-13 04:59:58 -04:00
Narcis Beleuzu
a92083a114 Backed out 6 changesets (bug 1732161) for build bustages on nsCycleCollectionParticipant.h CLOSED TREE
Backed out changeset 7271b938e71a (bug 1732161)
Backed out changeset d24b8450b7ed (bug 1732161)
Backed out changeset fb1838a152f2 (bug 1732161)
Backed out changeset 84787a58a428 (bug 1732161)
Backed out changeset 6acb82c0ac3c (bug 1732161)
Backed out changeset 50d17b172185 (bug 1732161)
2021-10-12 07:13:13 +03:00
Steve Fink
c7444d3471 Bug 1732161 - Add the CC reason to CC profile markers r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D127014
2021-10-11 21:39:08 +00:00
Steve Fink
8db934daff Bug 1732161 - Track CCReason for all cycle collections (replacing ccType) r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126395
2021-10-11 21:39:08 +00:00
Steve Fink
74a46d68be Bug 1732161 - Replace bools with CCReasons for the scheduler control variables. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D127013
2021-10-11 21:39:07 +00:00
Steve Fink
0e884be9db Bug 1732161 - Add profiler marker for core part of CC r=smaug,gerald
Differential Revision: https://phabricator.services.mozilla.com/D126394
2021-10-11 21:39:06 +00:00
Paul Bone
2040c8827e Bug 1725539 - p4. Document the new GC scheduling code r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D123099
2021-10-08 05:02:28 +00:00
Paul Bone
655d28c9ce Bug 1725539 - p3. Don't re-create the GC runner before tha parent replies r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D123098
2021-10-08 05:02:27 +00:00
Butkovits Atila
2ff5314530 Backed out 6 changesets (bug 1732161) for causing assertion failures in CCGCScheduler.h. CLOSED TREE
Backed out changeset 88dbe1a7478c (bug 1732161)
Backed out changeset a5a2c9c53340 (bug 1732161)
Backed out changeset d83b36b92051 (bug 1732161)
Backed out changeset b339e54078d7 (bug 1732161)
Backed out changeset 0cbf901cab8b (bug 1732161)
Backed out changeset b3e894d590d9 (bug 1732161)
2021-10-05 03:47:08 +03:00
Steve Fink
d93dee863b Bug 1732161 - Add the CC reason to CC profile markers r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D127014
2021-10-04 23:06:08 +00:00
Steve Fink
7e1eb8957d Bug 1732161 - Track CCReason for all cycle collections (replacing ccType) r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126395
2021-10-04 23:06:08 +00:00
Steve Fink
212e57ce81 Bug 1732161 - Replace bools with CCReasons for the scheduler control variables. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D127013
2021-10-04 23:06:07 +00:00
Steve Fink
4ec85db46c Bug 1732161 - Add profiler marker for core part of CC r=smaug,gerald
Differential Revision: https://phabricator.services.mozilla.com/D126394
2021-10-04 23:06:06 +00:00
Paul Bone
a3770290ab Bug 1726712 - Only do a shrinking GC if we're not animating r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D124014
2021-09-29 00:37:39 +00:00
criss
13e6ed006a Backed out changeset 12768301ed56 (bug 1726712) for depending on bug 1727960. CLOSED TREE 2021-09-28 02:32:55 +03:00
Paul Bone
b9ddd61ed0 Bug 1726712 - Only do a shrinking GC if we're not animating r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D124014
2021-09-04 00:56:51 +00:00
Paul Bone
1eea9a0557 Bug 1710552 - pt 2. Inform the idle scheduler when we initiate a GC r=smaug
This lets the idle scheduler know that we've initiated a GC that we didn't
ask its permission for.  Eg the JS engine hit a threshold.  It now uses this
info when scheduling GCs for other processes.

Differential Revision: https://phabricator.services.mozilla.com/D120831
2021-08-13 04:06:26 +00:00
Paul Bone
0d0bbcac0f Bug 1710552 - pt 1. Prepare for GCs being denied r=smaug
This patch also:
 * adds an assertion to KillGCRunner() to ensure it's never killed if
   needed, now that there are more calls to KillGCRunner(), some calls have
   been moved eg in nsJSEnvironment so as not to kill the runner a little
   later and keep the assertions happy.

 * IdleSchedulerChild will decline a request for a GC if there's already a
   request in flight.

 * CCGCScheduler will check if a GC is already in progress when handling the
   parents' response to a GC request.

Differential Revision: https://phabricator.services.mozilla.com/D120830
2021-08-13 04:06:25 +00:00
Paul Bone
e450ba4d4f Bug 1722143 - pt 6. Run the first slice of Full and User-idle GCs in idle time r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D120785
2021-08-05 09:13:31 +00:00
Paul Bone
1fae26ce09 Bug 1722143 - pt 5. Use GCRunnerFired to handle full and user inactive GCs r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D120784
2021-08-05 09:13:31 +00:00
Paul Bone
e1fe7355a1 Bug 1722143 - pt 4. GetNextGCRunnerAction() doesn't need a deadline r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D120783
2021-08-05 09:13:31 +00:00
Paul Bone
70740b7a57 Bug 1722143 - pt 3. Move some definitions into .cpp file r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D120782
2021-08-05 09:13:30 +00:00