test/hotspot/gtest/gc/shared/test_ptrQueueBufferAllocator.cpp
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 53404 9ff1e6cacac3
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
   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     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);