test/hotspot/gtest/gc/shared/test_ptrQueueBufferAllocator.cpp
changeset 58095 adc72cd1d1f2
parent 58041 d8902e9c307c
child 58679 9c3209ff7550
child 59247 56bf71d64d51
equal deleted inserted replaced
58094:0f6c749acd15 58095:adc72cd1d1f2
   222 
   222 
   223   JavaThread* this_thread = JavaThread::current();
   223   JavaThread* this_thread = JavaThread::current();
   224   tty->print_cr("Stressing allocator for %u ms", milliseconds_to_run);
   224   tty->print_cr("Stressing allocator for %u ms", milliseconds_to_run);
   225   {
   225   {
   226     ThreadInVMfromNative invm(this_thread);
   226     ThreadInVMfromNative invm(this_thread);
   227     os::sleep(this_thread, milliseconds_to_run);
   227     this_thread->sleep(milliseconds_to_run);
   228   }
   228   }
   229   OrderAccess::release_store(&allocator_running, false);
   229   OrderAccess::release_store(&allocator_running, false);
   230   for (uint i = 0; i < nthreads; ++i) {
   230   for (uint i = 0; i < nthreads; ++i) {
   231     ThreadInVMfromNative invm(this_thread);
   231     ThreadInVMfromNative invm(this_thread);
   232     post.wait_with_safepoint_check(this_thread);
   232     post.wait_with_safepoint_check(this_thread);