Merge
authoreosterlund
Fri, 14 Jul 2017 13:43:12 +0200
changeset 46665 04dbca0ffb10
parent 46663 715d5f268f62 (current diff)
parent 46664 a1191772ea9d (diff)
child 46666 32434b633549
Merge
--- a/hotspot/src/share/vm/jvmci/jvmciCompilerToVM.cpp	Fri Jul 14 11:55:58 2017 +0200
+++ b/hotspot/src/share/vm/jvmci/jvmciCompilerToVM.cpp	Fri Jul 14 13:43:12 2017 +0200
@@ -203,26 +203,15 @@
   symbol_clinit = (address) vmSymbols::class_initializer_name();
 
   BarrierSet* bs = Universe::heap()->barrier_set();
-  switch (bs->kind()) {
-  case BarrierSet::CardTableModRef:
-  case BarrierSet::CardTableForRS:
-  case BarrierSet::CardTableExtension:
-  case BarrierSet::G1SATBCT:
-  case BarrierSet::G1SATBCTLogging: {
+  if (bs->is_a(BarrierSet::CardTableModRef)) {
     jbyte* base = barrier_set_cast<CardTableModRefBS>(bs)->byte_map_base;
     assert(base != 0, "unexpected byte_map_base");
     cardtable_start_address = base;
     cardtable_shift = CardTableModRefBS::card_shift;
-    break;
-  }
-  case BarrierSet::ModRef:
+  } else {
+    // No card mark barriers
     cardtable_start_address = 0;
     cardtable_shift = 0;
-    // No post barriers
-    break;
-  default:
-    JVMCI_ERROR("Unsupported BarrierSet kind %d", bs->kind());
-    break;
   }
 
   vm_page_size = os::vm_page_size();