@@ -240,11 +240,11 @@ if (total + cur > max) { cur = (max > total) ? (max - total) : 0; } cur = MAX2<size_t>(1, cur); - os::sleep(Thread::current(), cur, true); + os::sleep(JavaThread::current(), cur); double end = os::elapsedTime(); total = (size_t)((end - start) * 1000); if (total > max) {