gecko-dev/xpcom/threads
Gabriele Svelto 8a17aeccc2 Bug 1756505 - Remove the ThreadIdNameMapping annotation and all the associated machinery r=Gankra
This has several implications:
* A race-condition that could manifest itself both on macOS and Linux is
  removed. The race could happen if we took the lock to the thread name
  mapping while another suspended thread was in the memory allocator. Taking
  the lock required an allocation thus the thread acting within the exception
  handler would get stuck.
* We save a few KiBs of memory per process since we don't have to keep the
  thread name mapping around.
* Thread startup will be slightly faster since the first thing each new thread
  did was to fill its own mapping.

Differential Revision: https://phabricator.services.mozilla.com/D139319
2022-03-15 09:23:38 +00:00
..
AbstractThread.cpp Bug 1754867: Use unique_ptr instead of Maybe for mTailDispatcher to avoid reentrancy. r=nika 2022-02-19 01:49:21 +00:00
AbstractThread.h Bug 1747290 - remove dead function. r=xpcom-reviewers,mccr8 2021-12-22 21:17:26 +00:00
BlockingResourceBase.cpp Bug 1757596 - #include "mozilla/ProfilerThreadSleep.h" instead of GeckoProfiler.h where possible - r=florian 2022-03-08 10:32:44 +00:00
BlockingResourceBase.h
CPUUsageWatcher.cpp Bug 1733308 - Fix non-unified builds errors in xpcom/threads. r=xpcom-reviewers,mccr8 2021-10-01 01:49:18 +00:00
CPUUsageWatcher.h
CondVar.h Bug 1757596 - #include "mozilla/ProfilerThreadSleep.h" instead of GeckoProfiler.h where possible - r=florian 2022-03-08 10:32:44 +00:00
DataMutex.h
DeadlockDetector.h
DelayedRunnable.cpp Bug 1746361 - Gecko Profiler: Track wrapped runnables throughout the tree. r=gerald 2022-01-05 15:26:24 +00:00
DelayedRunnable.h
EventQueue.cpp Bug 1738627 - Store distinct profiling features of individual threads - r=canaltinova 2021-11-08 23:59:35 +00:00
EventQueue.h Bug 1734809 - add a new task priority between vsync and control, r=bas 2021-10-08 19:29:36 +00:00
IdlePeriodState.cpp
IdlePeriodState.h Bug 1713320, ensure idle tasks get run, r=bas 2021-05-31 13:32:36 +00:00
IdleTaskRunner.cpp Bug 1754562, make parent process' idle detection be aware of active RefreshDrivers in the other processes, r=mstange 2022-02-26 22:37:03 +00:00
IdleTaskRunner.h Bug 1672121 - Stop sGCRunner GC slice if the IdleTaskRunnerTask gets a RequestInterrupt() call r=smaug 2021-12-22 18:06:06 +00:00
InputEventStatistics.cpp Bug 1733308 - Fix non-unified builds errors in xpcom/threads. r=xpcom-reviewers,mccr8 2021-10-01 01:49:18 +00:00
InputEventStatistics.h
InputTaskManager.cpp Bug 1733308 - Fix non-unified builds errors in xpcom/threads. r=xpcom-reviewers,mccr8 2021-10-01 01:49:18 +00:00
InputTaskManager.h Bug 1733729: Fix non-unified build bustage in xpcom directory. r=mccr8 2021-10-05 00:29:56 +00:00
LazyIdleThread.cpp Bug 1746495: xpcom/threads misc cleanup r=xpcom-reviewers,nika 2022-02-22 13:00:54 +00:00
LazyIdleThread.h Bug 1746495: xpcom/threads misc cleanup r=xpcom-reviewers,nika 2022-02-22 13:00:54 +00:00
LeakRefPtr.h
MainThreadIdlePeriod.cpp Bug 1754562, make parent process' idle detection be aware of active RefreshDrivers in the other processes, r=mstange 2022-02-26 22:37:03 +00:00
MainThreadIdlePeriod.h
MainThreadUtils.h Bug 1718262 - Remove duplicated declaration of NS_GetCurrentThread. r=mccr8 2021-06-25 18:35:09 +00:00
Monitor.h
MozPromise.h Bug 1753919 - Allow non-copy C++ object for GeckoResult paramenter. r=geckoview-reviewers,bholley,agi 2022-02-09 06:59:52 +00:00
MozPromiseInlines.h Bug 1729458 - Part 1: Simplify DomPromiseListener, r=smaug,rpl 2021-09-14 15:02:58 +00:00
Mutex.h Bug 1727558 - Implement an RAII class for Mutex::TryLock. r=xpcom-reviewers,nika 2021-09-01 10:10:24 +00:00
PerformanceCounter.cpp
PerformanceCounter.h
Queue.h Bug 1733308 - Fix non-unified builds errors in xpcom/tests/gtest. r=xpcom-reviewers,mccr8 2021-10-01 01:49:19 +00:00
RWLock.cpp Bug 1757100 - Move minimal platform-dependent part of RWLock to mozglue/misc/PlatformRWLock.h&cpp - r=glandium,xpcom-reviewers 2022-02-27 23:32:55 +00:00
RWLock.h Bug 1757100 - Sprinkle [[nodiscard]] and =delete in RWLock.h - r=glandium,xpcom-reviewers 2022-02-27 23:32:56 +00:00
RecursiveMutex.cpp
RecursiveMutex.h
ReentrantMonitor.h Bug 1757596 - #include "mozilla/ProfilerThreadSleep.h" instead of GeckoProfiler.h where possible - r=florian 2022-03-08 10:32:44 +00:00
SchedulerGroup.cpp Bug 1751041 - Compute the process startup timestamp early during startup r=glandium 2022-01-26 19:57:41 +00:00
SchedulerGroup.h
SharedThreadPool.cpp Bug 1731564: Use motivated SpinEventLoopUntil inside xpcom/*. r=xpcom-reviewers,nika 2021-10-07 08:06:16 +00:00
SharedThreadPool.h
SpinEventLoopUntil.h Bug 1731564: Add nested event loop stack to nsTerminator stderr output. r=xpcom-reviewers,nika 2021-10-07 08:06:17 +00:00
StateMirroring.h
StateWatching.h Backed out 2 changesets (bug 1738931) for causing mochitest failures on VideoConduit and WatchManager CLOSED TREE 2021-11-11 14:06:57 +02:00
SyncRunnable.h
SynchronizedEventQueue.cpp
SynchronizedEventQueue.h Bug 1749610: Minor cleanup of xpcom EventQueues r=xpcom-reviewers,nika 2022-01-28 16:49:58 +00:00
TaskCategory.h
TaskController.cpp Bug 1755006, reduce framerate if the main thread is busy handling also other tasks, r=mstange 2022-03-14 23:28:33 +00:00
TaskController.h Bug 1755006, reduce framerate if the main thread is busy handling also other tasks, r=mstange 2022-03-14 23:28:33 +00:00
TaskDispatcher.h Bug 1746361 - Gecko Profiler: Track wrapped runnables throughout the tree. r=gerald 2022-01-05 15:26:24 +00:00
TaskQueue.cpp Bug 1746361 - Gecko Profiler: Track wrapped runnables throughout the tree. r=gerald 2022-01-05 15:26:24 +00:00
TaskQueue.h Bug 1743895: Add names to all TaskQueues, remove no-name constructor r=nika,necko-reviewers 2021-12-03 03:16:15 +00:00
ThreadBound.h
ThreadDelay.cpp
ThreadDelay.h
ThreadEventQueue.cpp Bug 1749610: Minor cleanup of xpcom EventQueues r=xpcom-reviewers,nika 2022-01-28 16:49:58 +00:00
ThreadEventQueue.h Bug 1749610: Minor cleanup of xpcom EventQueues r=xpcom-reviewers,nika 2022-01-28 16:49:58 +00:00
ThreadEventTarget.cpp Bug 1731564: Use motivated SpinEventLoopUntil inside xpcom/*. r=xpcom-reviewers,nika 2021-10-07 08:06:16 +00:00
ThreadEventTarget.h
ThreadLocalVariables.cpp
ThrottledEventQueue.cpp
ThrottledEventQueue.h
TimerThread.cpp Bug 1746523: xpcom Timer cleanup, assertions and comments r=bwc,xpcom-reviewers,nika 2022-02-01 20:25:16 +00:00
TimerThread.h Bug 1746523: xpcom Timer cleanup, assertions and comments r=bwc,xpcom-reviewers,nika 2022-02-01 20:25:16 +00:00
VsyncTaskManager.cpp
VsyncTaskManager.h Bug 1733308 - Fix non-unified builds errors in xpcom/threads. r=xpcom-reviewers,mccr8 2021-10-01 01:49:18 +00:00
components.conf Bug 1731890 - Adding Utility process with basic sandbox r=agi,nika,bobowen 2022-01-12 20:52:58 +00:00
moz.build Bug 1747526 - Return a handle from asyncShutdown to observe and cancel thread shutdown progress, r=xpcom-reviewers,KrisWright 2022-02-08 23:58:03 +00:00
nsEnvironment.cpp
nsEnvironment.h
nsICancelableRunnable.h
nsIDelayedRunnableObserver.h
nsIDirectTaskDispatcher.idl
nsIDiscardableRunnable.h
nsIEnvironment.idl
nsIEventTarget.idl
nsIIdlePeriod.idl
nsIIdleRunnable.h
nsINamed.idl
nsIProcess.idl
nsIRunnable.idl Bug 1748718 - Part 3: Remove now-unnecessary xpidl constant casts, r=emilio 2022-01-07 20:35:15 +00:00
nsISerialEventTarget.idl
nsISupportsPriority.idl
nsIThread.idl Bug 1747526 - Return a handle from asyncShutdown to observe and cancel thread shutdown progress, r=xpcom-reviewers,KrisWright 2022-02-08 23:58:03 +00:00
nsIThreadInternal.idl
nsIThreadManager.idl
nsIThreadPool.idl
nsIThreadShutdown.idl Bug 1747526 - Return a handle from asyncShutdown to observe and cancel thread shutdown progress, r=xpcom-reviewers,KrisWright 2022-02-08 23:58:03 +00:00
nsITimer.idl Bug 1529581 - Introduce initHighResolutionWithNamedFuncCallback for nsITimer. r=xpcom-reviewers,nika 2021-11-03 15:23:27 +00:00
nsMemoryPressure.cpp Bug 1733308 - Fix non-unified builds errors in xpcom/threads. r=xpcom-reviewers,mccr8 2021-10-01 01:49:18 +00:00
nsMemoryPressure.h Bug 1701368 - Part3: Remove the MemPressure_Ongoing request. r=gsvelto 2021-07-06 22:30:58 +00:00
nsProcess.h Bug 1734262 - Suppress thread leak reports for the monitor thread. r=decoder 2021-10-16 16:29:32 +00:00
nsProcessCommon.cpp Bug 1746495: xpcom/threads misc cleanup r=xpcom-reviewers,nika 2022-02-22 13:00:54 +00:00
nsProxyRelease.cpp Bug 1727497 - Return Dispatch result from NS_ProxyRelease; r=dom-storage-reviewers,xpcom-reviewers,nika,janv 2021-09-14 13:17:55 +00:00
nsProxyRelease.h Bug 1735299 - Remove last use of unnammed NS_ReleaseOnMainThread r=extension-reviewers,rpl,nhnt11 2021-10-19 13:44:25 +00:00
nsThread.cpp Bug 1756148: Setting a thread's affinity is not supported on ARM64 chipset on macOS. r=nika 2022-02-18 20:20:35 +00:00
nsThread.h Bug 1747526 - Return a handle from asyncShutdown to observe and cancel thread shutdown progress, r=xpcom-reviewers,KrisWright 2022-02-08 23:58:03 +00:00
nsThreadManager.cpp Bug 1741131: Be explicit about the process type in the XPCOMSpinEventLoopStack annotation. r=xpcom-reviewers,nika 2021-11-23 17:47:59 +00:00
nsThreadManager.h Bug 1731564: Introduce a motivated SpinEventLoopUntil for direct use from C++. r=xpcom-reviewers,nika,necko-reviewers 2021-10-07 08:06:10 +00:00
nsThreadPool.cpp Bug 1746500: xpcom Threadpool cleanup r=xpcom-reviewers,nika 2022-02-18 19:39:50 +00:00
nsThreadPool.h
nsThreadSyncDispatch.h
nsThreadUtils.cpp Bug 1756505 - Remove the ThreadIdNameMapping annotation and all the associated machinery r=Gankra 2022-03-15 09:23:38 +00:00
nsThreadUtils.h Bug 1754037 - Part 2: Forward declare Message{Reader,Writer} where Message is forward declared, r=ipc-reviewers,mccr8 2022-03-04 15:39:39 +00:00
nsTimerImpl.cpp Bug 1746523: xpcom Timer cleanup, assertions and comments r=bwc,xpcom-reviewers,nika 2022-02-01 20:25:16 +00:00
nsTimerImpl.h Bug 1746523: xpcom Timer cleanup, assertions and comments r=bwc,xpcom-reviewers,nika 2022-02-01 20:25:16 +00:00