diff -r bac05440d98c -r 2790da836dc3 src/hotspot/share/runtime/mutex.cpp --- a/src/hotspot/share/runtime/mutex.cpp Thu Nov 08 10:08:52 2018 +0100 +++ b/src/hotspot/share/runtime/mutex.cpp Thu Nov 08 14:32:49 2018 +0100 @@ -383,7 +383,7 @@ jint rv = Self->rng[0]; for (int k = Delay; --k >= 0;) { rv = MarsagliaXORV(rv); - if (SafepointMechanism::poll(Self)) return 0; + if (SafepointMechanism::should_block(Self)) return 0; } Self->rng[0] = rv; } else {