--- a/hotspot/src/os/bsd/vm/os_bsd.cpp Wed Aug 23 10:25:25 2017 +0200
+++ b/hotspot/src/os/bsd/vm/os_bsd.cpp Wed Aug 23 14:01:17 2017 +0200
@@ -952,7 +952,7 @@
if (now <= prev) {
return prev; // same or retrograde time;
}
- const uint64_t obsv = Atomic::cmpxchg(now, (volatile jlong*)&Bsd::_max_abstime, prev);
+ const uint64_t obsv = Atomic::cmpxchg(now, &Bsd::_max_abstime, prev);
assert(obsv >= prev, "invariant"); // Monotonicity
// If the CAS succeeded then we're done and return "now".
// If the CAS failed and the observed value "obsv" is >= now then