equal
deleted
inserted
replaced
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); |