Nika Layzell
852d02ec16
Bug 1809753 - Part 3: Replace all callers of GetCurrentEventTarget with GetCurrentSerialEventTarget, r=mccr8,necko-reviewers,valentin
...
This only changes the behaviour when called with a TaskQueue or other type
using SerialEventTargetGuard on the stack. They are being switched over as the
existing GetCurrentEventTarget method is being removed, as it is somewhat
confusing, and poorly documented.
Callers which need to get the current thread even when on a threadpool or
behind a TaskQueue were switched to GetCurrentEventTarget in the previous part.
Differential Revision: https://phabricator.services.mozilla.com/D166607
2023-01-16 23:14:11 +00:00
Sandor Molnar
41b78439d0
Backed out 6 changesets (bug 1809752, bug 1809753) for causing perma failures in browser/components/firefoxview/tests/browser/browser_feature_callout_position.js
...
Backed out changeset ea05784d74c4 (bug 1809753)
Backed out changeset 7c9b20eebcc8 (bug 1809753)
Backed out changeset d0267ac2256d (bug 1809753)
Backed out changeset aa9f2971bd6f (bug 1809753)
Backed out changeset f0d9fcfaa6f8 (bug 1809752)
Backed out changeset 6d58c799cffe (bug 1809752)
2023-01-17 03:19:24 +02:00
Nika Layzell
8d118308de
Bug 1809753 - Part 3: Replace all callers of GetCurrentEventTarget with GetCurrentSerialEventTarget, r=mccr8,necko-reviewers,valentin
...
This only changes the behaviour when called with a TaskQueue or other type
using SerialEventTargetGuard on the stack. They are being switched over as the
existing GetCurrentEventTarget method is being removed, as it is somewhat
confusing, and poorly documented.
Callers which need to get the current thread even when on a threadpool or
behind a TaskQueue were switched to GetCurrentEventTarget in the previous part.
Differential Revision: https://phabricator.services.mozilla.com/D166607
2023-01-16 23:14:11 +00:00
Steve Fink
860bbb00d6
Bug 1778014 - Handle perfstats/telemetry case where GC starts after its deadline has passed r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D152661
2022-08-08 17:28:25 +00:00
Steve Fink
4dc8661cff
Bug 1774651 - Add a NonIdleMajorGC perfstat measurement r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D149555
2022-06-30 17:36:31 +00:00
Steve Fink
f60593707d
Bug 1774651 - Add a MajorGC PerfStats metric r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D149554
2022-06-30 17:36:31 +00:00
Steve Fink
7a6aa8b314
Bug 1661293 - Move idle-time nursery GCs to a new nsJSContext::MaybePokeGC r=jonco,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D100367
2022-06-06 22:53:11 +00:00
Steve Fink
2a988c91ec
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-06-06 22:53:10 +00:00
Steve Fink
f1a2f4019c
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-06-06 22:53:10 +00:00
Steve Fink
e9ce3ba562
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-06-06 22:53:10 +00:00
Olli Pettay
14a59fbdff
Bug 1771718, let GC and CC to use shorter (idle) slices when frame rate is high, r=jonco,mccr8
...
This approach tweaks only the idle handling part. We may want to reduce the length of non-idle
slices too, but that is somewhat separate issue.
Differential Revision: https://phabricator.services.mozilla.com/D147644
2022-06-02 10:40:54 +00:00
Steve Fink
819ec57dae
Bug 1735434 - Gather additional information for cycle collection profiler markers r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D128316
2022-05-27 23:42:54 +00:00
Narcis Beleuzu
e3d25251cc
Backed out changeset 7f67e3634e8f (bug 1735434) for multiple failures/crashes on nsJSEnvironment.cpp . CLOSED TREE
2022-05-27 19:39:37 +03:00
Steve Fink
ab9c7c302b
Bug 1735434 - Gather additional information for cycle collection profiler markers r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D128316
2022-05-27 15:44:22 +00:00
Butkovits Atila
21b823649b
Backed out 2 changesets (bug 1767224, bug 1735434) as requested by dev. CLOSED TREE
...
Backed out changeset 748b1cb3e178 (bug 1767224)
Backed out changeset aaf1056d8e85 (bug 1735434)
2022-05-03 02:26:38 +03:00
Dan Horák
a11b4b0bfc
Bug 1767224 - don't guard struct CCIntervalMarker by MOZ_GECKO_PROFILER r=sfink
...
Differential Revision: https://phabricator.services.mozilla.com/D145238
2022-05-02 16:49:51 +00:00
Steve Fink
036abc801c
Bug 1735434 - Gather additional information for cycle collection profiler markers r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D128316
2022-04-29 20:07:23 +00:00
Norisz Fay
61cd14ddcd
Backed out 6 changesets (bug 1661293) for causing Bug 1758370 CLOSED TREE
...
Backed out changeset 8f4d646a4bf6 (bug 1661293)
Backed out changeset ec817d9e8a17 (bug 1661293)
Backed out changeset efd35f1d9bd5 (bug 1661293)
Backed out changeset 00d93cc6125f (bug 1661293)
Backed out changeset 77b0b0003ca0 (bug 1661293)
Backed out changeset 04443fa474ac (bug 1661293)
2022-03-23 17:04:22 +02:00
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