@@ -71,7 +71,7 @@ static void DisableCrashReporter() {
7171// Single-threaded sanity tests
7272
7373// Stupidest possible deadlock.
74- static int Sanity_Child () NO_THREAD_SAFETY_ANALYSIS {
74+ static int Sanity_Child () {
7575 DisableCrashReporter ();
7676
7777 MUTEX m1 (" dd.sanity.m1" );
@@ -92,7 +92,7 @@ TEST_F(TESTNAME(DeadlockDetectorTest), TESTNAME(SanityDeathTest)) {
9292}
9393
9494// Slightly less stupid deadlock.
95- static int Sanity2_Child () NO_THREAD_SAFETY_ANALYSIS {
95+ static int Sanity2_Child () {
9696 DisableCrashReporter ();
9797
9898 MUTEX m1 (" dd.sanity2.m1" );
@@ -118,7 +118,7 @@ TEST_F(TESTNAME(DeadlockDetectorTest), TESTNAME(Sanity2DeathTest)) {
118118#if 0
119119// Temporarily disabled, see bug 1370644.
120120int
121- Sanity3_Child() NO_THREAD_SAFETY_ANALYSIS
121+ Sanity3_Child()
122122{
123123 DisableCrashReporter();
124124
@@ -156,7 +156,7 @@ TEST_F(TESTNAME(DeadlockDetectorTest), TESTNAME(Sanity3DeathTest))
156156}
157157#endif
158158
159- static int Sanity4_Child () NO_THREAD_SAFETY_ANALYSIS {
159+ static int Sanity4_Child () {
160160 DisableCrashReporter ();
161161
162162 mozilla::ReentrantMonitor m1 MOZ_UNANNOTATED (" dd.sanity4.m1" );
@@ -179,7 +179,7 @@ TEST_F(TESTNAME(DeadlockDetectorTest), TESTNAME(Sanity4DeathTest)) {
179179 ASSERT_DEATH_IF_SUPPORTED (Sanity4_Child (), regex);
180180}
181181
182- static int Sanity5_Child () NO_THREAD_SAFETY_ANALYSIS {
182+ static int Sanity5_Child () {
183183 DisableCrashReporter ();
184184
185185 mozilla::RecursiveMutex m1 MOZ_UNANNOTATED (" dd.sanity4.m1" );
@@ -225,7 +225,7 @@ struct ThreadState {
225225#if 0
226226// Temporarily disabled, see bug 1370644.
227227static void
228- TwoThreads_thread(void* arg) NO_THREAD_SAFETY_ANALYSIS
228+ TwoThreads_thread(void* arg)
229229{
230230 ThreadState* state = static_cast<ThreadState*>(arg);
231231
@@ -247,7 +247,7 @@ TwoThreads_thread(void* arg) NO_THREAD_SAFETY_ANALYSIS
247247}
248248
249249int
250- TwoThreads_Child() NO_THREAD_SAFETY_ANALYSIS
250+ TwoThreads_Child()
251251{
252252 DisableCrashReporter();
253253
@@ -284,7 +284,7 @@ TEST_F(TESTNAME(DeadlockDetectorTest), TESTNAME(TwoThreadsDeathTest))
284284}
285285#endif
286286
287- static void ContentionNoDeadlock_thread (void * arg) NO_THREAD_SAFETY_ANALYSIS {
287+ static void ContentionNoDeadlock_thread (void * arg) {
288288 const uint32_t K = 100000 ;
289289
290290 ThreadState* state = static_cast <ThreadState*>(arg);
@@ -300,7 +300,7 @@ static void ContentionNoDeadlock_thread(void* arg) NO_THREAD_SAFETY_ANALYSIS {
300300 }
301301}
302302
303- static int ContentionNoDeadlock_Child () NO_THREAD_SAFETY_ANALYSIS {
303+ static int ContentionNoDeadlock_Child () {
304304 const size_t kMutexCount = 4 ;
305305
306306 PRThread* threads[3 ];
0 commit comments