< prev index next >

src/hotspot/share/gc/z/zArguments.cpp

Print this page




  65   if (ConcGCThreads == 0) {
  66     vm_exit_during_initialization("The flag -XX:+UseZGC can not be combined with -XX:ConcGCThreads=0");
  67   }
  68 
  69 #ifdef COMPILER2
  70   // Enable loop strip mining by default
  71   if (FLAG_IS_DEFAULT(UseCountedLoopSafepoints)) {
  72     FLAG_SET_DEFAULT(UseCountedLoopSafepoints, true);
  73     if (FLAG_IS_DEFAULT(LoopStripMiningIter)) {
  74       FLAG_SET_DEFAULT(LoopStripMiningIter, 1000);
  75     }
  76   }
  77 #endif
  78 
  79   // To avoid asserts in set_active_workers()
  80   FLAG_SET_DEFAULT(UseDynamicNumberOfGCThreads, true);
  81 
  82   // CompressedOops/UseCompressedClassPointers not supported
  83   FLAG_SET_DEFAULT(UseCompressedOops, false);
  84   FLAG_SET_DEFAULT(UseCompressedClassPointers, false);





  85 
  86   // ClassUnloading not (yet) supported
  87   FLAG_SET_DEFAULT(ClassUnloading, false);
  88   FLAG_SET_DEFAULT(ClassUnloadingWithConcurrentMark, false);
  89 
  90   // Verification before startup and after exit not (yet) supported
  91   FLAG_SET_DEFAULT(VerifyDuringStartup, false);
  92   FLAG_SET_DEFAULT(VerifyBeforeExit, false);
  93 
  94   // Verification before heap iteration not (yet) supported, for the
  95   // same reason we need fixup_partial_loads
  96   FLAG_SET_DEFAULT(VerifyBeforeIteration, false);
  97 
  98   // Verification of stacks not (yet) supported, for the same reason
  99   // we need fixup_partial_loads
 100   DEBUG_ONLY(FLAG_SET_DEFAULT(VerifyStack, false));
 101 }
 102 
 103 CollectedHeap* ZArguments::create_heap() {
 104   return create_heap_with_policy<ZCollectedHeap, ZCollectorPolicy>();


  65   if (ConcGCThreads == 0) {
  66     vm_exit_during_initialization("The flag -XX:+UseZGC can not be combined with -XX:ConcGCThreads=0");
  67   }
  68 
  69 #ifdef COMPILER2
  70   // Enable loop strip mining by default
  71   if (FLAG_IS_DEFAULT(UseCountedLoopSafepoints)) {
  72     FLAG_SET_DEFAULT(UseCountedLoopSafepoints, true);
  73     if (FLAG_IS_DEFAULT(LoopStripMiningIter)) {
  74       FLAG_SET_DEFAULT(LoopStripMiningIter, 1000);
  75     }
  76   }
  77 #endif
  78 
  79   // To avoid asserts in set_active_workers()
  80   FLAG_SET_DEFAULT(UseDynamicNumberOfGCThreads, true);
  81 
  82   // CompressedOops/UseCompressedClassPointers not supported
  83   FLAG_SET_DEFAULT(UseCompressedOops, false);
  84   FLAG_SET_DEFAULT(UseCompressedClassPointers, false);
  85   FLAG_SET_DEFAULT(UseSharedSpaces, false);  // requires CompressedOops and CompressedClassPointers
  86 
  87   if (DumpSharedSpaces) {
  88     vm_exit_during_initialization("DumpSharedSpaces (-Xshare:dump) is not supported with ZGC.");
  89   }
  90 
  91   // ClassUnloading not (yet) supported
  92   FLAG_SET_DEFAULT(ClassUnloading, false);
  93   FLAG_SET_DEFAULT(ClassUnloadingWithConcurrentMark, false);
  94 
  95   // Verification before startup and after exit not (yet) supported
  96   FLAG_SET_DEFAULT(VerifyDuringStartup, false);
  97   FLAG_SET_DEFAULT(VerifyBeforeExit, false);
  98 
  99   // Verification before heap iteration not (yet) supported, for the
 100   // same reason we need fixup_partial_loads
 101   FLAG_SET_DEFAULT(VerifyBeforeIteration, false);
 102 
 103   // Verification of stacks not (yet) supported, for the same reason
 104   // we need fixup_partial_loads
 105   DEBUG_ONLY(FLAG_SET_DEFAULT(VerifyStack, false));
 106 }
 107 
 108 CollectedHeap* ZArguments::create_heap() {
 109   return create_heap_with_policy<ZCollectedHeap, ZCollectorPolicy>();
< prev index next >