Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/atomic.hpp @ 894:665be97e8704
6863420: os::javaTimeNanos() go backward on Solaris x86
Summary: Use new atomic long load method Atomic::load() to load max_hrtime.
Reviewed-by: never, ysr, johnc, phh, dcubed, acorn
author | kvn |
---|---|
date | Sun, 26 Jul 2009 16:40:14 -0700 |
parents | d1605aabd0a1 |
children | 89e0543e1737 |
line wrap: on
line diff
--- a/src/share/vm/runtime/atomic.hpp Sun Jul 26 12:59:41 2009 -0700 +++ b/src/share/vm/runtime/atomic.hpp Sun Jul 26 16:40:14 2009 -0700 @@ -39,6 +39,8 @@ static void store_ptr(intptr_t store_value, volatile intptr_t* dest); static void store_ptr(void* store_value, volatile void* dest); + static jlong load(volatile jlong* src); + // Atomically add to a location, return updated value static jint add (jint add_value, volatile jint* dest); static intptr_t add_ptr(intptr_t add_value, volatile intptr_t* dest);