test/hotspot/gtest/utilities/test_singleWriterSynchronizer.cpp
changeset 58095 adc72cd1d1f2
parent 58041 d8902e9c307c
child 58679 9c3209ff7550
child 59247 56bf71d64d51
equal deleted inserted replaced
58094:0f6c749acd15 58095:adc72cd1d1f2
   134 
   134 
   135   tty->print_cr("Stressing synchronizer for %u ms", milliseconds_to_run);
   135   tty->print_cr("Stressing synchronizer for %u ms", milliseconds_to_run);
   136   JavaThread* cur = JavaThread::current();
   136   JavaThread* cur = JavaThread::current();
   137   {
   137   {
   138     ThreadInVMfromNative invm(cur);
   138     ThreadInVMfromNative invm(cur);
   139     os::sleep(cur, milliseconds_to_run);
   139     cur->sleep(milliseconds_to_run);
   140   }
   140   }
   141   continue_running = 0;
   141   continue_running = 0;
   142   for (uint i = 0; i < nreaders + 1; ++i) {
   142   for (uint i = 0; i < nreaders + 1; ++i) {
   143     post.wait();
   143     post.wait();
   144   }
   144   }