test/hotspot/gtest/gc/shared/test_ptrQueueBufferAllocator.cpp
changeset 58041 d8902e9c307c
parent 53404 9ff1e6cacac3
child 58095 adc72cd1d1f2
equal deleted inserted replaced
58040:d99af76d7689 58041:d8902e9c307c
   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, true);
   227     os::sleep(this_thread, 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);