< prev index next >

src/hotspot/share/gc/cms/jvmFlagConstraintsCMS.cpp

Print this page

        

@@ -68,11 +68,11 @@
 }
 
 JVMFlag::Error ParGCCardsPerStrideChunkConstraintFunc(intx value, bool verbose) {
   if (UseConcMarkSweepGC) {
     // ParGCCardsPerStrideChunk should be compared with card table size.
-    size_t heap_size = CMSHeap::heap()->reserved_region().word_size();
+    size_t heap_size = Universe::heap()->reserved_region().word_size();
     CardTableRS* ct = GenCollectedHeap::heap()->rem_set();
     size_t card_table_size = ct->cards_required(heap_size) - 1; // Valid card table size
 
     if ((size_t)value > card_table_size) {
       JVMFlag::printError(verbose,
< prev index next >