Steve Fink
e68df02440
Bug 1899615 - Document ComputeInterSliceGCBudget r=pbone
...
Differential Revision: https://phabricator.services.mozilla.com/D212045
2024-05-31 17:33:58 +00:00
Steve Fink
dbde2c678e
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
a2d6b45005
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
8884cd5257
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
ba689444ea
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
eea8aec6c9
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
547e9e01f8
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
38a7072cc3
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
7531171bc9
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
82e18a04f7
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
b2dd243b7b
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
c086dee1c4
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
fc23ef321c
Backed out changeset 851416c5b619 (bug 1839455) for causing bug 1844365
2023-07-25 16:30:00 +03:00
Jon Coppeard
36a0823a92
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
28c8215c59
Backed out changeset a69c0deca190 (bug 1839455) for assertion failures on nsCellMap.cpp
2023-06-21 11:22:31 +03:00
Jon Coppeard
8e54531a53
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
ccbdb42273
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
f236c54e45
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
21081c63fa
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
39668aefbd
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
92a93714a3
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
e46feb988b
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
c6b081c4d7
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
782e65ef22
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
a723385c87
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
63cbac0b30
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
3b3d0fe0f2
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
ae643b70f3
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
9ce918e464
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
900653de7c
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
d2cdc46337
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
a627e4ab7c
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
a82841ee1f
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
edbfe1d4f4
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
3b8f3004c2
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
04c3f61f14
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
7acb2053cc
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
5d3810da2f
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
963c834415
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
37f3a9f947
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
99c6fd7c95
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
18f3bac4e9
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
20fa732398
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
c2a665fff4
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
a9af7ec9bf
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
c42b2de650
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
e83c6b53a7
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
15d790b58b
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
405d36ba49
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
e8cd26f5ee
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