equal
deleted
inserted
replaced
118 |
118 |
119 class Threads::Test::VM_TestClaimOverflow : public VM_GTestExecuteAtSafepoint { |
119 class Threads::Test::VM_TestClaimOverflow : public VM_GTestExecuteAtSafepoint { |
120 public: |
120 public: |
121 void doit() { |
121 void doit() { |
122 // Prevent changes to the NJT list while we're conducting our test. |
122 // Prevent changes to the NJT list while we're conducting our test. |
123 MutexLockerEx ml(NonJavaThreadsList_lock, Mutex::_no_safepoint_check_flag); |
123 MutexLocker ml(NonJavaThreadsList_lock, Mutex::_no_safepoint_check_flag); |
124 |
124 |
125 _thread_claim_token = max_uintx - 1; |
125 _thread_claim_token = max_uintx - 1; |
126 |
126 |
127 ASSERT_EQ(max_uintx - 1, thread_claim_token()); |
127 ASSERT_EQ(max_uintx - 1, thread_claim_token()); |
128 CountThreads count1(thread_claim_token(), true); |
128 CountThreads count1(thread_claim_token(), true); |