< prev index next >

src/os/solaris/vm/os_solaris.cpp

Print this page
rev 13440 : imported patch solaris_fix

@@ -1195,11 +1195,11 @@
   const hrtime_t now = gethrtime();
   const hrtime_t prev = max_hrtime;
   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
   // we should return "obsv".  If the CAS failed and now > obsv > prv then
   // some other thread raced this thread and installed a new value, in which case
< prev index next >