gecko-dev/xpcom/base
Jon Coppeard 2359bca10c Bug 1865383 - Check slice budget when we start marking or sweeping r=sfink
The patch forces a budget check when we start marking or sweeping unless we
have just started a GC slice in the current state.

This turned out more complicated than expected because the change caused a test
that called gcslice(1) in a loop to not make any progress. This was because the
original stepAndForceCheck() method ate the single unit of work budget. The fix
was to remove the step part of this method. I don't think any of the callers
need it to step the budget as well.

Differential Revision: https://phabricator.services.mozilla.com/D193925
2023-11-20 16:28:11 +00:00
..
AppShutdown.cpp Bug 1825917 - Have a ShutdownReason annotation and identify OS shutdown on Windows. r=xpcom-reviewers,gstoll,nika 2023-04-17 14:03:48 +00:00
AppShutdown.h Bug 1825917 - Have a ShutdownReason annotation and identify OS shutdown on Windows. r=xpcom-reviewers,gstoll,nika 2023-04-17 14:03:48 +00:00
AutoRestore.h
AvailableMemoryTracker.cpp Bug 1852806 - Remove macros for older Windows SDK from xpcom/. r=xpcom-reviewers,glandium 2023-09-15 03:19:28 +00:00
AvailableMemoryTracker.h
AvailableMemoryWatcher.cpp Bug 1829252 - Guard parent AvailableMemoryWatcherBase members with a mutex. r=xpcom-reviewers,nika 2023-09-25 17:25:19 +00:00
AvailableMemoryWatcher.h Bug 1829252 - Guard parent AvailableMemoryWatcherBase members with a mutex. r=xpcom-reviewers,nika 2023-09-25 17:25:19 +00:00
AvailableMemoryWatcherLinux.cpp Bug 1829252 - Guard parent AvailableMemoryWatcherBase members with a mutex. r=xpcom-reviewers,nika 2023-09-25 17:25:19 +00:00
AvailableMemoryWatcherMac.cpp Bug 1829252 - Guard parent AvailableMemoryWatcherBase members with a mutex. r=xpcom-reviewers,nika 2023-09-25 17:25:19 +00:00
AvailableMemoryWatcherUtils.h
AvailableMemoryWatcherWin.cpp Bug 1829252 - Guard parent AvailableMemoryWatcherBase members with a mutex. r=xpcom-reviewers,nika 2023-09-25 17:25:19 +00:00
ClearOnShutdown.cpp Bug 1768581 - Part 8: Exclude AppShutdownConfirmed from any Ns_ProcessPendingEvents. r=xpcom-reviewers,nika 2022-12-12 15:21:29 +00:00
ClearOnShutdown.h Bug 1768581 - Part 8: Exclude AppShutdownConfirmed from any Ns_ProcessPendingEvents. r=xpcom-reviewers,nika 2022-12-12 15:21:29 +00:00
CodeAddressService.h
CountingAllocatorBase.h Bug 1776463 - Use C++17 inline variable for CountingAllocatorBase::sAmount. r=xpcom-reviewers,nika 2022-10-17 21:54:12 +00:00
CycleCollectedJSContext.cpp Bug 1421651 - Remove obseleted timeline and TimelineMarker code r=canaltinova,webidl,devtools-reviewers,saschanaz,smaug,ochameau 2023-10-24 15:18:12 +00:00
CycleCollectedJSContext.h Bug 1862782, part 1 - Move DeferredFinalizeType to CycleCollectedJSRuntime. r=smaug 2023-11-03 14:27:22 +00:00
CycleCollectedJSRuntime.cpp Bug 1865383 - Check slice budget when we start marking or sweeping r=sfink 2023-11-20 16:28:11 +00:00
CycleCollectedJSRuntime.h Bug 1862782, part 2 - Split out cases where we must never immediately finalize. r=smaug 2023-11-03 14:27:22 +00:00
Debug.cpp
Debug.h
DebuggerOnGCRunnable.cpp Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu 2023-10-10 08:51:12 +00:00
DebuggerOnGCRunnable.h
DeferredFinalize.cpp
DeferredFinalize.h
EnumeratedArrayCycleCollection.h
ErrorList.py Bug 1858565 - Make HTTPS-Only/First handle Superfluos Auth correctly r=freddyb,necko-reviewers,valentin 2023-11-06 09:48:48 +00:00
ErrorNames.cpp
ErrorNames.h
GkRustUtils.cpp
GkRustUtils.h
HoldDropJSObjects.cpp
HoldDropJSObjects.h
IntentionalCrash.h Bug 1779721 - Make sure utility process tests notifies test harness of SIGKILL r=mccr8 2023-03-24 16:37:25 +00:00
JSONStringWriteFuncs.h Bug 1784812 - Make all JSONWriteFunc-derived classes and their overriden methods final - r=canaltinova 2022-08-17 07:07:54 +00:00
JSObjectHolder.cpp
JSObjectHolder.h
LogCommandLineHandler.cpp
LogCommandLineHandler.h
LogModulePrefWatcher.cpp Bug 1792574, part 3 - Don't include nsMemory where it isn't needed. r=xpcom-reviewers,necko-reviewers,valentin,nika 2022-09-28 15:17:46 +00:00
LogModulePrefWatcher.h
Logging.cpp Bug 1836890 - Remove uses of chromium's OS_* macros in Gecko code. r=nika,media-playback-reviewers,keeler,gfx-reviewers,emilio,necko-reviewers,kershaw,karlt,jrmuizel 2023-06-06 20:00:47 +00:00
Logging.h Bug 1705019 - Always record LogMessage profiler markers for enabled log messages when the profiler is enabled and add a new 'profilerstacks' keyword to enable capturing stacks in these markers, r=mstange. 2022-09-13 13:26:24 +00:00
MacHelpers.h
MacHelpers.mm Bug 1851529 - Set clang-format ColumnLimit consistently. r=sylvestre,necko-reviewers,kershaw 2023-09-05 11:23:01 +00:00
MacStringHelpers.h Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium 2023-02-13 15:02:07 +00:00
MacStringHelpers.mm Bug 1851529 - Set clang-format ColumnLimit consistently. r=sylvestre,necko-reviewers,kershaw 2023-09-05 11:23:01 +00:00
MemoryInfo.cpp
MemoryInfo.h
MemoryMapping.cpp Bug 1850948 - Use std::string::data() as strtok param in GetMemoryMappings, avoiding a buffer copy in the process r=emilio 2023-09-07 16:36:38 +00:00
MemoryMapping.h
MemoryPressureLevelMac.h Bug 1791961 - xpcom: Fix C++20 -Wambiguous-reversed-operator warnings. r=emilio 2023-05-26 04:51:44 +00:00
MemoryReportingProcess.h
MemoryTelemetry.cpp Bug 1829127 - Add telemetry for PHC slop r=glandium 2023-11-06 04:59:33 +00:00
MemoryTelemetry.h Bug 1794536 - Delete MemoryTelemetry::GetUniqueSetSize() and its decleration. r=pbone 2022-11-20 22:04:22 +00:00
NSPRLogModulesParser.cpp
NSPRLogModulesParser.h
OwningNonNull.h Bug 1766768 - Fix move constructor of OwningNonNull(RefPtr<>&&) to actually move. r=mccr8 2022-04-29 11:32:07 +00:00
PHCManager.cpp Bug 1863912 - Only enable PHC when a system has at least 8GB RAM r=decoder 2023-11-09 11:59:11 +00:00
PHCManager.h Bug 1829127 - Add telemetry for PHC slop r=glandium 2023-11-06 04:59:33 +00:00
RLBoxSandboxPool.cpp Bug 1827704 - Migrate to the upstream wasm2c for RLBox sandboxing r=glandium 2023-04-21 01:31:35 +00:00
RLBoxSandboxPool.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
RLBoxUtils.h
ShutdownPhase.h Bug 1766572: Part 1 - Remove obsolete ShutdownPhase::XPCOMShutdownLoaders. r=xpcom-reviewers,nika 2022-05-13 15:47:52 +00:00
SizeOfState.h
StaticLocalPtr.h
StaticMonitor.h Bug 1797354 - Allow specifying capability type in thread-safety macros, r=jesup,media-playback-reviewers,alwu 2022-10-28 19:55:30 +00:00
StaticMutex.h Bug 1797354 - Allow specifying capability type in thread-safety macros, r=jesup,media-playback-reviewers,alwu 2022-10-28 19:55:30 +00:00
StaticPtr.h Bug 1831827 - Remove constructors with redundant asserts for StaticRefPtr and StaticAutoPtr r=emilio 2023-05-09 22:53:43 +00:00
components.conf Bug 1834278 - Get rid of nsIMessageLoop. r=emilio 2023-08-01 13:15:50 +00:00
moz.build Bug 1814798 - pt 2. Add a PHCManager component to control PHC r=glandium,emilio 2023-09-18 06:48:06 +00:00
nsAlgorithm.h
nsAutoRef.h
nsCOMPtr.cpp Bug 1835119 - Remove nsCOMPtr_base. r=xpcom-reviewers,kmag 2023-05-31 21:58:43 +00:00
nsCOMPtr.h Bug 1843477, make nsCOMPtr use RefPtrTraits, r=nika 2023-09-26 12:36:21 +00:00
nsCRTGlue.cpp Bug 1764262 - Redirect MOZ_LOG output to Nyx when fuzzing. r=xpcom-reviewers,nika 2022-04-25 19:12:23 +00:00
nsCRTGlue.h Bug 1746052, further restrict the characters that are allowed in filenames, as save as doesn't allow these, r=mccr8 2022-05-06 10:00:54 +00:00
nsClassInfoImpl.cpp
nsCom.h
nsConsoleMessage.cpp Bug 1856795 - Remove redundant member init r=emilio 2023-10-15 15:29:02 +00:00
nsConsoleMessage.h Bug 1483662 - Add microSecondTimeStamp to nsConsoleMessage, nsScriptError and ConsoleEvent. r=edgar. 2022-09-02 04:58:28 +00:00
nsConsoleService.cpp Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu 2023-10-10 08:51:12 +00:00
nsConsoleService.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
nsCrashOnException.cpp
nsCrashOnException.h
nsCycleCollectionNoteChild.h
nsCycleCollectionNoteRootCallback.h
nsCycleCollectionParticipant.cpp
nsCycleCollectionParticipant.h Bug 1805931, part 1 - Declare Root and Unroot inline to save on boilerplate. r=smaug 2022-12-15 19:45:00 +00:00
nsCycleCollectionTraversalCallback.h Bug 1543537, part 1 - Add a NoteWeakMapping method to traversal callback. r=kmag 2022-09-24 23:24:31 +00:00
nsCycleCollector.cpp Bug 1865383 - Check slice budget when we start marking or sweeping r=sfink 2023-11-20 16:28:11 +00:00
nsCycleCollector.h
nsCycleCollectorTraceJSHelpers.cpp
nsDebug.h Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium 2023-02-13 15:02:07 +00:00
nsDebugImpl.cpp Bug 1774864 - Cleanup xpcom/ includes r=sylvestre 2022-06-24 07:13:59 +00:00
nsDebugImpl.h Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsDumpUtils.cpp Backed out 3 changesets (bug 1658072) as they are related to previously backed out changeset CLOSED TREE 2022-08-11 02:01:04 +03:00
nsDumpUtils.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
nsError.h
nsGZFileWriter.cpp Bug 1792354, part 1 - DeCOM nsGZFileWriter. r=xpcom-reviewers,nika 2022-09-27 21:27:17 +00:00
nsGZFileWriter.h Bug 1792354, part 1 - DeCOM nsGZFileWriter. r=xpcom-reviewers,nika 2022-09-27 21:27:17 +00:00
nsIAvailableMemoryWatcherBase.idl
nsIClassInfoImpl.h
nsIConsoleListener.idl
nsIConsoleMessage.idl Bug 1483662 - Add microSecondTimeStamp to nsConsoleMessage, nsScriptError and ConsoleEvent. r=edgar. 2022-09-02 04:58:28 +00:00
nsIConsoleService.idl Bug 1810582 - [devtools] Implements nsIConsoleService.callFunctionAndLogException. r=peterv 2023-05-23 12:39:39 +00:00
nsICycleCollectorListener.idl
nsID.cpp Bug 1833293 - Optimize UUID stringification. r=nika 2023-05-16 18:27:16 +00:00
nsID.h Backed out changeset 7d4b830c1cf6 (bug 1811934) for causing wpt failures on pointerevent_pointerrawupdate_in_pointerlock.html CLOSED TREE 2023-01-31 21:44:59 +02:00
nsIDUtils.h
nsIDebug2.idl Bug 1792355 - Mark some xpcom/base interfaces builtinclass or not scriptable. r=xpcom-reviewers,nika 2022-09-27 15:34:13 +00:00
nsIException.idl
nsIInterfaceRequestor.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsIInterfaceRequestorUtils.cpp
nsIInterfaceRequestorUtils.h
nsIMacPreferencesReader.idl Bug 1792355 - Mark some xpcom/base interfaces builtinclass or not scriptable. r=xpcom-reviewers,nika 2022-09-27 15:34:13 +00:00
nsIMemoryInfoDumper.idl
nsIMemoryReporter.idl
nsINIParser.cpp Bug 1855134 - Move existing MOZ_TRY macros to a dedicated header file; r=glandium 2023-09-28 20:46:07 +00:00
nsINIParser.h Bug 1787121: add support for formatting INI files to nsINIParser r=xpcom-reviewers,kmag 2022-09-28 13:17:41 +00:00
nsISecurityConsoleMessage.idl
nsISizeOf.h
nsISupports.idl Bug 1794811, part 2 - Use the automatically generated nsISupports.h. r=nika 2022-10-17 16:09:22 +00:00
nsISupportsImpl.cpp
nsISupportsImpl.h Bug 1843477, non-virtual AddRef/Release for EventTarget and common subclasses, r=mccr8 2023-09-26 12:36:21 +00:00
nsISupportsUtils.h Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato 2023-04-01 08:31:12 +00:00
nsIUUIDGenerator.idl Bug 1792355 - Mark some xpcom/base interfaces builtinclass or not scriptable. r=xpcom-reviewers,nika 2022-09-27 15:34:13 +00:00
nsIVersionComparator.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsIWeakReference.idl Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana 2022-07-06 14:53:06 +00:00
nsIWeakReferenceUtils.h
nsInterfaceRequestorAgg.cpp Bug 1809753 - Part 3: Replace all callers of GetCurrentEventTarget with GetCurrentSerialEventTarget, r=mccr8,necko-reviewers,valentin 2023-01-16 23:14:11 +00:00
nsInterfaceRequestorAgg.h
nsMacPreferencesReader.h
nsMacPreferencesReader.mm Bug 1851529 - Set clang-format ColumnLimit consistently. r=sylvestre,necko-reviewers,kershaw 2023-09-05 11:23:01 +00:00
nsMacUtilsImpl.cpp Bug 1822484 - Rename IsDevelopmentBuild. r=necko-reviewers,media-playback-reviewers,padenot,emilio 2023-03-21 21:54:27 +00:00
nsMacUtilsImpl.h Bug 1792567, part 2 - Turn nsMacUtilsImpl into a namespace. r=spohl 2022-10-14 14:34:30 +00:00
nsMaybeWeakPtr.h Bug 1860952 warn when nsMaybeWeakPtr::GetValue() returns null for unexpected reasons r=xpcom-reviewers,mccr8 2023-10-26 00:22:49 +00:00
nsMemory.h Bug 1792574, part 4 - deCOM nsIMemory. r=xpcom-reviewers,nika 2022-09-28 15:17:47 +00:00
nsMemoryImpl.cpp Bug 1792574, part 4 - deCOM nsIMemory. r=xpcom-reviewers,nika 2022-09-28 15:17:47 +00:00
nsMemoryInfoDumper.cpp Bug 1784812 - Make all JSONWriteFunc-derived classes and their overriden methods final - r=canaltinova 2022-08-17 07:07:54 +00:00
nsMemoryInfoDumper.h
nsMemoryReporterManager.cpp Bug 1854550 - pt 9. Move PHC interface from the bridge to PHC.h r=glandium 2023-10-19 06:38:42 +00:00
nsMemoryReporterManager.h Bug 1831852 - Avoid extra call to jemalloc_stats in telemetry r=mccr8 2023-05-11 04:40:44 +00:00
nsObjCExceptions.h Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium 2023-02-13 15:02:07 +00:00
nsObjCExceptions.mm Bug 1851529 - Set clang-format ColumnLimit consistently. r=sylvestre,necko-reviewers,kershaw 2023-09-05 11:23:01 +00:00
nsQueryObject.h
nsSecurityConsoleMessage.cpp
nsSecurityConsoleMessage.h
nsSystemInfo.cpp Bug 1855134 - Move existing MOZ_TRY macros to a dedicated header file; r=glandium 2023-09-28 20:46:07 +00:00
nsSystemInfo.h Bug 1797587 - Make nsSystemInfo return the CPU model name, r=mhowell,chutten. 2022-11-01 20:22:23 +00:00
nsTraceRefcnt.cpp Bug 1856795 - ride along: use = default; on some recently modified files r=emilio 2023-10-15 15:29:03 +00:00
nsTraceRefcnt.h Bug 1831006 - Add a way to enable refcount logging whenever. r=xpcom-reviewers,nika 2023-05-03 13:59:55 +00:00
nsUUIDGenerator.cpp
nsUUIDGenerator.h
nsVersionComparator.cpp
nsVersionComparator.h
nsVersionComparatorImpl.cpp
nsVersionComparatorImpl.h
nsWeakReference.cpp Bug 1790921 - Take advantage of infallible new in nsSupportsWeakReference::GetWeakReference(). r=xpcom-reviewers,nika 2022-09-15 15:18:58 +00:00
nsWeakReference.h
nsWindowsHelpers.h Bug 1843701 - Unconditionally use LOAD_LIBRARY_SEARCH_SYSTEM32. r=handyman 2023-07-17 18:13:51 +00:00
nscore.h Bug 1841178 - Remove xpcom-config.h. r=xpcom-reviewers,mccr8 2023-06-29 23:02:15 +00:00
nsrootidl.idl Bug 1794811, part 2 - Use the automatically generated nsISupports.h. r=nika 2022-10-17 16:09:22 +00:00