< prev index next >

src/share/vm/gc/parallel/psPromotionManager.cpp

Print this page
rev 10933 : 8154736: enhancement of cmpxchg and copy_to_survivor for ppc64
Reviewed-by:
Contributed-by: HORII@jp.ibm.com, mdoerr

*** 437,447 **** // 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)) { // We won any races, we "own" this object. assert(obj == obj->forwardee(), "Sanity"); _promotion_failed_info.register_copy_failure(obj->size()); --- 437,447 ---- // 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, 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 >