diff -r 163a4d4fa951 -r 1751733b089b hotspot/src/share/vm/gc_implementation/g1/heapRegion.cpp --- a/hotspot/src/share/vm/gc_implementation/g1/heapRegion.cpp Thu Jul 03 03:17:29 2008 -0700 +++ b/hotspot/src/share/vm/gc_implementation/g1/heapRegion.cpp Thu Jul 10 09:29:54 2008 -0700 @@ -793,8 +793,8 @@ // will pick up the right saved_mark_word() as the high water mark // of the region. Either way, the behaviour will be correct. ContiguousSpace::set_saved_mark(); - OrderAccess::release_store_ptr((volatile intptr_t*) &_gc_time_stamp, - (intptr_t) curr_gc_time_stamp); + _gc_time_stamp = curr_gc_time_stamp; + OrderAccess::fence(); } }