test/hotspot/gtest/runtime/test_threads.cpp
changeset 54623 1126f0607c70
parent 54385 9559ba212c18
equal deleted inserted replaced
54622:a8dcacf95bff 54623:1126f0607c70
   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);