hotspot/src/os/solaris/vm/os_solaris.cpp
changeset 46958 a13bd8c6b7a2
parent 46625 edefffab74e2
child 47089 27050b653624
--- a/hotspot/src/os/solaris/vm/os_solaris.cpp	Wed Aug 23 10:25:25 2017 +0200
+++ b/hotspot/src/os/solaris/vm/os_solaris.cpp	Wed Aug 23 14:01:17 2017 +0200
@@ -1197,7 +1197,7 @@
   if (now <= prev) {
     return prev;   // same or retrograde time;
   }
-  const hrtime_t obsv = Atomic::cmpxchg(now, (volatile jlong*)&max_hrtime, prev);
+  const hrtime_t obsv = Atomic::cmpxchg(now, &max_hrtime, 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