< prev index next >

src/hotspot/share/runtime/mutex.cpp

Print this page
rev 47589 : Introduce SafepointMechanism
rev 47591 : Add Thread Local handshakes and thread local polling

*** 26,35 **** --- 26,36 ---- #include "runtime/atomic.hpp" #include "runtime/interfaceSupport.hpp" #include "runtime/mutex.hpp" #include "runtime/orderAccess.inline.hpp" #include "runtime/osThread.hpp" + #include "runtime/safepointMechanism.inline.hpp" #include "runtime/thread.inline.hpp" #include "utilities/events.hpp" #include "utilities/macros.hpp" // o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
*** 392,402 **** Steps += Delay; if (Self != NULL) { jint rv = Self->rng[0]; for (int k = Delay; --k >= 0;) { rv = MarsagliaXORV(rv); ! if ((flgs & 4) == 0 && SafepointSynchronize::do_call_back()) return 0; } Self->rng[0] = rv; } else { Stall(Delay); } --- 393,403 ---- 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 >