hotspot/src/os/bsd/vm/os_bsd.cpp
changeset 46958 a13bd8c6b7a2
parent 46630 75aa3e39d02c
child 47089 27050b653624
--- 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