< prev index next >
src/hotspot/share/gc/shenandoah/shenandoahPacer.cpp
Print this page
*** 240,250 ****
if (total + cur > max) {
cur = (max > total) ? (max - total) : 0;
}
cur = MAX2<size_t>(1, cur);
! os::sleep(JavaThread::current(), cur);
double end = os::elapsedTime();
total = (size_t)((end - start) * 1000);
if (total > max) {
--- 240,250 ----
if (total + cur > max) {
cur = (max > total) ? (max - total) : 0;
}
cur = MAX2<size_t>(1, cur);
! JavaThread::current()->sleep(cur);
double end = os::elapsedTime();
total = (size_t)((end - start) * 1000);
if (total > max) {
< prev index next >