< prev index next >
src/share/vm/gc/parallel/psPromotionManager.cpp
Print this page
@@ -487,11 +487,11 @@
// Attempt to CAS in the header.
// This tests if the header is still the same as when
// this started. If it is the same (i.e., no forwarding
// pointer has been installed), then this thread owns
// it.
- if (obj->cas_forward_to(obj, obj_mark)) {
+ if (obj->cas_forward_to(obj, obj_mark, memory_order_relaxed)) {
// We won any races, we "own" this object.
assert(obj == obj->forwardee(), "Sanity");
_promotion_failed_info.register_copy_failure(obj->size());
< prev index next >