8135018: AARCH64: Missing memory barriers for CMS collector

Add StoreStore barrier when CMS needs them

Reviewed-by: tschatzl
This commit is contained in:
Andrew Haley 2015-09-24 12:04:57 +02:00
parent 0835a6e311
commit 67af37e0b8
3 changed files with 10 additions and 0 deletions

View file

@ -1630,6 +1630,9 @@ void LIRGenerator::CardTableModRef_post_barrier(LIR_OprDesc* addr, LIR_OprDesc*
__ move(dirty, card_addr);
__ branch_destination(L_already_dirty->label());
} else {
if (UseConcMarkSweepGC && CMSPrecleaningEnabled) {
__ membar_storestore();
}
__ move(dirty, card_addr);
}
#endif