Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.cpp @ 14443:3205e78d8193
8029396: PPC64 (part 212): Several memory ordering fixes in C-code.
Summary: memory ordering fixes in GC and other runtime code showing on PPC64.
Reviewed-by: kvn, coleenp
author | goetz |
---|---|
date | Mon, 02 Dec 2013 10:26:14 +0100 |
parents | aa6f2ea19d8f |
children | 4ca6dc0799b6 6a0ad2977919 |
comparison
equal
deleted
inserted
replaced
14442:1174c8abbdb6 | 14443:3205e78d8193 |
---|---|
113 _kind = G1SATBCTLogging; | 113 _kind = G1SATBCTLogging; |
114 } | 114 } |
115 | 115 |
116 void | 116 void |
117 G1SATBCardTableLoggingModRefBS::write_ref_field_work(void* field, | 117 G1SATBCardTableLoggingModRefBS::write_ref_field_work(void* field, |
118 oop new_val) { | 118 oop new_val, |
119 bool release) { | |
119 volatile jbyte* byte = byte_for(field); | 120 volatile jbyte* byte = byte_for(field); |
120 if (*byte == g1_young_gen) { | 121 if (*byte == g1_young_gen) { |
121 return; | 122 return; |
122 } | 123 } |
123 OrderAccess::storeload(); | 124 OrderAccess::storeload(); |