# HG changeset patch # User eosterlund # Date 1525682198 -7200 # Node ID bcf41be8ea14024536b7e15421aa1cef7ce49bbc # Parent ea0a16ba6ac0d1d3cc9cf806228a91b331e65716 8202083: Remove explicit CMS checks in CardTableBarrierSet Reviewed-by: kbarrett diff -r ea0a16ba6ac0 -r bcf41be8ea14 src/hotspot/share/gc/shared/cardTableBarrierSet.inline.hpp --- a/src/hotspot/share/gc/shared/cardTableBarrierSet.inline.hpp Mon May 07 12:28:11 2018 +0200 +++ b/src/hotspot/share/gc/shared/cardTableBarrierSet.inline.hpp Mon May 07 10:36:38 2018 +0200 @@ -32,9 +32,8 @@ template inline void CardTableBarrierSet::write_ref_field_post(T* field, oop newVal) { volatile jbyte* byte = _card_table->byte_for(field); - if (UseConcMarkSweepGC) { - // Perform a releasing store if using CMS so that it may - // scan and clear the cards concurrently during pre-cleaning. + if (_card_table->scanned_concurrently()) { + // Perform a releasing store if the card table is scanned concurrently OrderAccess::release_store(byte, CardTable::dirty_card_val()); } else { *byte = CardTable::dirty_card_val();