< prev index next >

src/hotspot/share/memory/allocation.inline.hpp

Print this page

        

@@ -39,11 +39,11 @@
 inline void inc_stat_counter(volatile julong* dest, julong add_value) {
 #ifdef _LP64
   *dest += add_value;
 #else
   julong value = Atomic::load(dest);
-  Atomic::store(value + add_value, dest);
+  Atomic::store(dest, value + add_value);
 #endif
 }
 #endif
 
 template <class E>
< prev index next >