Steve Fink
a1c989b00b
Bug 1899615 - Document ComputeInterSliceGCBudget r=pbone
...
Differential Revision: https://phabricator.services.mozilla.com/D212045
2024-05-31 17:33:58 +00:00
Steve Fink
f830bd5322
Bug 1899615 - Apply nsRefreshDriver::HighRateMultiplier the same way to GC and CC budgets r=pbone
...
Differential Revision: https://phabricator.services.mozilla.com/D212044
2024-05-31 17:33:58 +00:00
Steve Fink
8b743ffcc7
Bug 1899615 - Make the slice budget pref and parameter mean the actual budget, rather than half of it r=pbone
...
Differential Revision: https://phabricator.services.mozilla.com/D212042
2024-05-31 17:33:57 +00:00
Bas Schouten
020f80b429
Bug 1869835 - Part 3: Convert CC/GC markers to the new MarkerSchema so it gets full ETW support. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D196374
2023-12-21 18:17:41 +00:00
Olli Pettay
7acd483571
Bug 1870008 - make high rate mode handling dynamic, r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D196591
2023-12-18 15:40:09 +00:00
Olli Pettay
07c9e45ef3
Bug 1868744 - If JS engine triggered a GC slice, don't trigger another too soon from CCGCScheduler, r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D195755
2023-12-07 12:34:33 +00:00
Norisz Fay
c24a942776
Backed out 2 changesets (bug 1861848) for causing Linux asan J1 exceptions CLOSED TREE
...
Backed out changeset 69a9a6852a6b (bug 1861848)
Backed out changeset 1496b731cc40 (bug 1861848)
2023-11-03 22:19:17 +02:00
Olli Pettay
8b37c598f6
Bug 1861848 - Let foreground content processes run idle tasks and GC without consulting the parent process, r=farre,pbone
...
Differential Revision: https://phabricator.services.mozilla.com/D192144
2023-11-03 10:14:19 +00:00
Butkovits Atila
6607e61cf6
Backed out changeset e2815494f2f2 (bug 1861848) for causing failures at browser_gc_schedule.js. CLOSED TREE
2023-11-01 16:39:16 +02:00
Olli Pettay
29531c0f31
Bug 1861848 - Let foreground content processes run idle tasks and GC without consulting the parent process, r=farre,pbone
...
Differential Revision: https://phabricator.services.mozilla.com/D192144
2023-11-01 10:11:35 +00:00
Olli Pettay
debecf0861
Bug 1856574 - Run GC/CC slices before page load only if GC/CC is ongoing, and increase the slice delays, r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D189917
2023-10-05 18:11:35 +00:00
serge-sans-paille
2a1cd87f4f
Bug 1854410 - Move global ctor from dom/base/CCGCScheduler.h out of the header to avoid duplication r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D188842
2023-09-27 07:16:11 +00:00
Cristina Horotan
89ad0a13b0
Backed out changeset 851416c5b619 (bug 1839455) for causing bug 1844365
2023-07-25 16:30:00 +03:00
Jon Coppeard
7c90a4f0cf
Bug 1839455 - Trigger GC less agressively in CCGCScheduler::RunNextCollectorTimer r=smaug
...
This changes the behaviour to only run a GC slice here if we are currently in
an incremental GC or are appraoching heap limits that would trigger a
collection.
Differential Revision: https://phabricator.services.mozilla.com/D181539
2023-07-17 10:03:36 +00:00
Narcis Beleuzu
4186df5750
Backed out changeset a69c0deca190 (bug 1839455) for assertion failures on nsCellMap.cpp
2023-06-21 11:22:31 +03:00
Jon Coppeard
63b5f37486
Bug 1839455 - Trigger GC less agressively in CCGCScheduler::RunNextCollectorTimer r=smaug
...
This changes the behaviour to only run a GC slice here if we are currently in
an incremental GC or are appraoching heap limits that would trigger a
collection.
Differential Revision: https://phabricator.services.mozilla.com/D181539
2023-06-21 07:11:11 +00:00
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