changeset 49674:bebec5011846

8189101: AARCH32 - 'minimal' build fails because CMS bits are referred unconditionally Reviewed-by: shade, dholmes Contributed-by: boris.ulasevich@bell-sw.com
author dpochepk
date Wed, 11 Apr 2018 20:56:56 +0300
parents 6a880e576856
children bdcfe8154201
files src/hotspot/cpu/arm/c1_LIRGenerator_arm.cpp src/hotspot/cpu/arm/interp_masm_arm.cpp
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/cpu/arm/c1_LIRGenerator_arm.cpp	Wed Apr 11 16:07:42 2018 +0200
+++ b/src/hotspot/cpu/arm/c1_LIRGenerator_arm.cpp	Wed Apr 11 20:56:56 2018 +0300
@@ -533,9 +533,11 @@
     set_card(tmp, card_addr);
     __ branch_destination(L_already_dirty->label());
   } else {
+#if INCLUDE_ALL_GCS
     if (UseConcMarkSweepGC && CMSPrecleaningEnabled) {
       __ membar_storestore();
     }
+#endif
     set_card(tmp, card_addr);
   }
 }
--- a/src/hotspot/cpu/arm/interp_masm_arm.cpp	Wed Apr 11 16:07:42 2018 +0200
+++ b/src/hotspot/cpu/arm/interp_masm_arm.cpp	Wed Apr 11 20:56:56 2018 +0300
@@ -450,9 +450,11 @@
 #endif
 
   if (UseCondCardMark) {
+#if INCLUDE_ALL_GCS
     if (UseConcMarkSweepGC) {
       membar(MacroAssembler::Membar_mask_bits(MacroAssembler::StoreLoad), noreg);
     }
+#endif
     Label already_dirty;
 
     ldrb(tmp, card_table_addr);
@@ -462,9 +464,11 @@
     bind(already_dirty);
 
   } else {
+#if INCLUDE_ALL_GCS
     if (UseConcMarkSweepGC && CMSPrecleaningEnabled) {
       membar(MacroAssembler::Membar_mask_bits(MacroAssembler::StoreStore), noreg);
     }
+#endif
     set_card(card_table_base, card_table_addr, tmp);
   }
 }