< prev index next >

src/hotspot/share/runtime/mutex.cpp

Print this page
rev 47413 : Introduce SafepointMechanism
rev 47415 : Add Thread Local handshakes and thread local polling

*** 390,400 **** Steps += Delay; if (Self != NULL) { jint rv = Self->rng[0]; for (int k = Delay; --k >= 0;) { rv = MarsagliaXORV(rv); ! if ((flgs & 4) == 0 && SafepointMechanism::poll()) return 0; } Self->rng[0] = rv; } else { Stall(Delay); } --- 390,400 ---- Steps += Delay; if (Self != NULL) { jint rv = Self->rng[0]; for (int k = Delay; --k >= 0;) { rv = MarsagliaXORV(rv); ! if ((flgs & 4) == 0 && SafepointMechanism::poll(Self)) return 0; } Self->rng[0] = rv; } else { Stall(Delay); }
< prev index next >