gecko-dev/xpcom/threads
Nika Layzell 7ced96212e Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana
We'll probably want to do something more accurate in the future with a
custom clang static analysis pass which validates that XPIDL interfaces
have the expected vtable and struct layout, however doing so would be
more involved than the string matching done in this patch.

In addition to checking for extra virtual methods, we'll likely also
want to check for data members on interfaces, and reject them unless the
class is marked as `[builtinclass]` in addition to some other attribute
which we'll need to add to prevent them from being implemented in Rust
(as c++ data members will not be reflected by the rust macro).

There were 2 instances of a comment which contained the word 'virtual'
within a CDATA block. These comments were moved out of the CDATA block
to avoid triggering the error.

Differential Revision: https://phabricator.services.mozilla.com/D151068
2022-07-06 14:53:06 +00:00
..
AbstractThread.cpp Bug 1738106 - Part 4: Support ThreadSafeWeakPtr in TaskQueue, r=xpcom-reviewers,mccr8 2022-05-02 20:37:35 +00:00
AbstractThread.h Bug 1738106 - Part 4: Support ThreadSafeWeakPtr in TaskQueue, r=xpcom-reviewers,mccr8 2022-05-02 20:37:35 +00:00
BlockingResourceBase.cpp Bug 1761536 - Part 2: Replace nsTArray::elem_type with value_type, r=mccr8 2022-04-01 17:00:25 +00:00
BlockingResourceBase.h Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw 2022-03-16 18:47:08 +00:00
components.conf
CondVar.h Bug 1207753 - Base thread-safety attribution support r=nika 2022-03-16 23:01:41 +00:00
CPUUsageWatcher.cpp
CPUUsageWatcher.h
DataMutex.h
DeadlockDetector.h
DelayedRunnable.cpp Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
DelayedRunnable.h Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
EventQueue.cpp
EventQueue.h Bug 1770087 - Show the task priority in task controller Runnable markers, r=bas,gerald. 2022-06-15 15:00:40 +00:00
EventTargetCapability.h Bug 1767899 - add explicit on EventTargetCapability ctor to fix build error. r=media-playback-reviewers,padenot 2022-06-10 18:08:12 +00:00
IdlePeriodState.cpp
IdlePeriodState.h
IdleTaskRunner.cpp Bug 1774864 - Cleanup xpcom/ includes r=sylvestre 2022-06-24 07:13:59 +00:00
IdleTaskRunner.h Bug 1774864 - Cleanup xpcom/ includes r=sylvestre 2022-06-24 07:13:59 +00:00
InputEventStatistics.cpp
InputEventStatistics.h
InputTaskManager.cpp
InputTaskManager.h
LazyIdleThread.cpp Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
LazyIdleThread.h Bug 1207753 - Smaller xpcom/threads & xpfe thread-safety annotations r=nika 2022-03-21 23:04:07 +00:00
LeakRefPtr.h
MainThreadIdlePeriod.cpp Bug 1771718, let idle period be shorter when frame rate is very high, r=farre 2022-06-02 10:40:54 +00:00
MainThreadIdlePeriod.h
MainThreadUtils.h
Monitor.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi,media-playback-reviewers,necko-reviewers,padenot,dragana 2022-06-07 12:32:55 +00:00
moz.build Bug 1767897 - Add EventTargetCapability. r=xpcom-reviewers,nika 2022-05-10 04:36:05 +00:00
MozPromise.h Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw 2022-03-16 18:47:08 +00:00
MozPromiseInlines.h
Mutex.h Bug 1760357 - Part 1: Fix typo and annotations on ReleasableAutoLock types, r=jesup 2022-03-22 14:59:40 +00:00
nsEnvironment.cpp Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsEnvironment.h Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsICancelableRunnable.h
nsIDirectTaskDispatcher.idl
nsIDiscardableRunnable.h
nsIEnvironment.idl
nsIEventTarget.idl Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
nsIIdlePeriod.idl
nsIIdleRunnable.h
nsINamed.idl
nsIProcess.idl
nsIRunnable.idl
nsISerialEventTarget.idl
nsISupportsPriority.idl
nsITargetShutdownTask.h Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
nsIThread.idl
nsIThreadInternal.idl
nsIThreadManager.idl Bug 1761590 - Enter microtask when evaluating console/debugger input. r=nchevobbe,smaug 2022-04-14 01:42:59 +00:00
nsIThreadPool.idl
nsIThreadShutdown.idl
nsITimer.idl Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana 2022-07-06 14:53:06 +00:00
nsMemoryPressure.cpp
nsMemoryPressure.h
nsProcess.h Bug 1207753 - Smaller xpcom/threads & xpfe thread-safety annotations r=nika 2022-03-21 23:04:07 +00:00
nsProcessCommon.cpp Bug 1762839 - Fix Win specific thread annotations in nsProcessCommon. r=jesup,rkraesig 2022-04-10 21:58:26 +00:00
nsProxyRelease.cpp
nsProxyRelease.h
nsThread.cpp Bug 1770451 - Trace important shutdown events in a thread's name if MOZ_DIAGNOSTIC_ASSERT_ENABLED. r=xpcom-reviewers,barret 2022-06-15 18:15:02 +00:00
nsThread.h Bug 1770451 - Release assert if a thread shutdown is unexpectedly going to cause a hang on the joining thread. r=xpcom-reviewers,nika 2022-06-15 18:15:01 +00:00
nsThreadManager.cpp Bug 1764119 - Part 1: Do final KillClearOnShutdown after XPCOM threads shutdown, r=xpcom-reviewers,kmag,jstutte 2022-05-02 20:38:43 +00:00
nsThreadManager.h Bug 1764119 - Part 1: Do final KillClearOnShutdown after XPCOM threads shutdown, r=xpcom-reviewers,kmag,jstutte 2022-05-02 20:38:43 +00:00
nsThreadPool.cpp Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
nsThreadPool.h Bug 1207753 - xpcom nsThreadPool thread-safety annotations r=nika 2022-03-21 18:03:36 +00:00
nsThreadSyncDispatch.h
nsThreadUtils.cpp Bug 1738103 - Part 1: Remove the unused TailDispatchingTarget type, r=xpcom-reviewers,KrisWright 2022-03-23 22:22:02 +00:00
nsThreadUtils.h Bug 1738103 - Part 1: Remove the unused TailDispatchingTarget type, r=xpcom-reviewers,KrisWright 2022-03-23 22:22:02 +00:00
nsTimerImpl.cpp Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana 2022-07-06 14:53:06 +00:00
nsTimerImpl.h Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana 2022-07-06 14:53:06 +00:00
PerformanceCounter.cpp
PerformanceCounter.h
Queue.h
RecursiveMutex.cpp
RecursiveMutex.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi,media-playback-reviewers,necko-reviewers,padenot,dragana 2022-06-07 12:32:55 +00:00
ReentrantMonitor.h Merge autoland to mozilla-central. a=merge 2022-03-26 11:27:55 +02: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 1519636 - Reformat recent changes to the Google coding style r=andi,media-playback-reviewers,necko-reviewers,padenot,dragana 2022-06-07 12:32:55 +00:00
SchedulerGroup.cpp
SchedulerGroup.h
SharedThreadPool.cpp Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
SharedThreadPool.h Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
SpinEventLoopUntil.h Bug 1207753 - Smaller xpcom/threads & xpfe thread-safety annotations r=nika 2022-03-21 23:04:07 +00:00
StateMirroring.h
StateWatching.h
SynchronizedEventQueue.cpp
SynchronizedEventQueue.h Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
SyncRunnable.h Bug 1207753 - Smaller xpcom/threads & xpfe thread-safety annotations r=nika 2022-03-21 23:04:07 +00:00
TaskCategory.h
TaskController.cpp Bug 1770087 - Show the task priority in task controller Runnable markers, r=bas,gerald. 2022-06-15 15:00:40 +00:00
TaskController.h Bug 1762090, don't block refreshdrivers for too long time on linux, r=mstange 2022-04-06 00:40:25 +00:00
TaskDispatcher.h
TaskQueue.cpp Bug 1738106 - Part 5: Track TaskQueue lifetimes to avoid leaking TaskQueues, r=xpcom-reviewers,mccr8 2022-05-02 20:37:35 +00:00
TaskQueue.h Bug 1738106 - Part 5: Track TaskQueue lifetimes to avoid leaking TaskQueues, r=xpcom-reviewers,mccr8 2022-05-02 20:37:35 +00:00
ThreadBound.h
ThreadDelay.cpp
ThreadDelay.h
ThreadEventQueue.cpp Bug 1772281 - Reduce the scope of the mMutex lock in ThreadEventQueue::SetObserver to avoid a potential recursive deadlock. r=xpcom-reviewers,jesup,nika 2022-06-03 18:03:36 +00:00
ThreadEventQueue.h Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
ThreadEventTarget.cpp Bug 1764119 - Part 2: Don't check gXPCOMThreadsShutdown in ThreadEventTarget::Dispatch, r=xpcom-reviewers,kmag,jstutte 2022-05-02 20:38:43 +00:00
ThreadEventTarget.h Bug 1764119 - Part 2: Don't check gXPCOMThreadsShutdown in ThreadEventTarget::Dispatch, r=xpcom-reviewers,kmag,jstutte 2022-05-02 20:38:43 +00:00
ThreadLocalVariables.cpp
ThrottledEventQueue.cpp Bug 1207753 - ThrottledEventQueue thread-safety annotations r=nika 2022-03-26 00:58:47 +00:00
ThrottledEventQueue.h
TimerThread.cpp Bug 1767396 - Don't wake up the timer thread when removing timers - r=florian,smaug 2022-06-20 11:33:09 +00:00
TimerThread.h Bug 1766357 - Remove unused and empty TimerThread::InitLocks - r=smaug 2022-04-27 01:14:37 +00:00
VsyncTaskManager.cpp
VsyncTaskManager.h