Skip to content

Commit

Permalink
Bug 1791682 - [3/3] Remove thread names only used in tests r=andi
Browse files Browse the repository at this point in the history
Remove all the thread names only used in tests from ThreadAllows.txt.
Instead, list the test files that create them in ThreadFileAllows.txt.

Differential Revision: https://phabricator.services.mozilla.com/D157762
  • Loading branch information
selenography committed Sep 23, 2022
1 parent c2e8c86 commit f88d2cb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 32 deletions.
31 changes: 0 additions & 31 deletions build/clang-plugin/ThreadAllows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ Checker Test # used only as part of tests for the thread-checker itself
# In particular, if a thread name is only used for testing, please consider
# moving its declarator to `ThreadFileAllows.txt`.

ApplyUpdates
AsyncShutdownPr
AsyncShutdownWt
Atom Test
AutoRefCnt Test
AutoTestThread
AwaitIdleMixed
AwaitIdlePaused
BGReadURLs
BHMgr Monitor
BHMgr Processor
Expand All @@ -52,37 +44,28 @@ COM MTA
Cache I/O
Cameras IPC
CanvasRenderer
ChainedPipePump
ChainedPipeRecv
Compositor
Cookie
CrashRep Inject
DDMediaLogs
DOMCacheThread
DataChannel IO
DataStorage
DatabaseLocker
DecodeToSurface
Decoder Test
FileWatcher IO
Font Loader
FontEnumThread
Function Broker
GMPThread
Gamepad
GeckoProfGTest
GraphRunner
HTML5 Parser
ICS parser
IPC Launch
IPCFuzzLoop
IPDL Background
IPDL UnitTest
IdentityCrypto
ImageBridgeChld
LS Thread
MDCDMThread
MWQThread
MediaCache
MediaTelemetry
MediaTrackGrph
Expand All @@ -100,28 +83,16 @@ ProfSymbolTable
ProfilerChild
ProxyResolution
RemoteLzyStream
RWLockTester
RacingServMan
RemVidChild
Renderer
ResetCleanup
Sandbox Testing
SaveScripts
Socket Thread
SpeechWorker
SpinEventLoop
StressRunner
SuicideManager
SuicideThread
System Proxy
TEQ AwaitIdle
TelemetryModule
Test Thread
Test thread
TestPipe
TestShortWrites
TestThreadsMain
Testing Thread
Timer
ToastBgThread
TRR Background
Expand All @@ -132,8 +103,6 @@ VsyncIOThread
Wifi Monitor
Worker Launcher
speechd init
t1
t2
thread
thread shutdown
wifi tickler
38 changes: 37 additions & 1 deletion build/clang-plugin/ThreadFileAllows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ xpcom/threads/nsThreadUtils.cpp
xpcom/threads/nsThreadPool.cpp

######
# Unsorted files
# Test files

# Tests for XPCOM threads themselves.
xpcom/tests/gtest/TestThreadManager.cpp
xpcom/tests/gtest/TestThreads.cpp
xpcom/tests/gtest/TestThreadUtils.cpp

######
# Unsorted release files
#
# Files below this point are grandfathered in. Please do not add new files to
# this list -- and please remove any that you can, whether by documenting and
Expand All @@ -34,3 +42,31 @@ LazyIdleThread.h
VRThread.cpp
mozStorageConnection.cpp
nr_socket_prsock.cpp

######
# Unsorted test files
#
# Files below this point are quasi-grandfathered in: these are test files which
# create new threads whose names were formerly in ThreadAllows.txt (without
# justification), and have been moved here (without justification).
dom/media/doctor/test/gtest/TestMultiWriterQueue.cpp
image/test/fuzzing/TestDecoders.cpp
image/test/gtest/TestDecodeToSurface.cpp
ipc/ipdl/test/gtest/IPDLUnitTest.cpp
security/sandbox/common/test/SandboxTestingThread.h
storage/test/gtest/test_interruptSynchronousConnection.cpp
storage/test/gtest/test_unlock_notify.cpp
toolkit/components/telemetry/geckoview/gtest/TestGeckoViewStreaming.cpp
toolkit/components/telemetry/tests/gtest/TestScalars.cpp
toolkit/components/url-classifier/tests/gtest/Common.cpp
tools/fuzzing/ipc/IPCFuzzController.cpp
tools/profiler/tests/gtest/GeckoProfiler.cpp
xpcom/tests/gtest/TestAtoms.cpp
xpcom/tests/gtest/TestAutoRefCnt.cpp
xpcom/tests/gtest/TestDelayedRunnable.cpp
xpcom/tests/gtest/TestLogging.cpp
xpcom/tests/gtest/TestPipes.cpp
xpcom/tests/gtest/TestRacingServiceManager.cpp
xpcom/tests/gtest/TestRWLock.cpp
xpcom/tests/gtest/TestThrottledEventQueue.cpp
xpcom/tests/gtest/TestTimers.cpp

0 comments on commit f88d2cb

Please sign in to comment.