< prev index next >

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

Print this page




  45 
  46   // Disable biased locking by default
  47   if (FLAG_IS_DEFAULT(UseBiasedLocking)) {
  48     FLAG_SET_DEFAULT(UseBiasedLocking, false);
  49   }
  50 
  51   // Select number of parallel threads
  52   if (FLAG_IS_DEFAULT(ParallelGCThreads)) {
  53     FLAG_SET_DEFAULT(ParallelGCThreads, ZWorkers::calculate_nparallel());
  54   }
  55 
  56   // Select number of concurrent threads
  57   if (FLAG_IS_DEFAULT(ConcGCThreads)) {
  58     FLAG_SET_DEFAULT(ConcGCThreads, ZWorkers::calculate_nconcurrent());
  59   }
  60 
  61 #ifdef COMPILER2
  62   // Enable loop strip mining by default
  63   if (FLAG_IS_DEFAULT(UseCountedLoopSafepoints)) {
  64     FLAG_SET_DEFAULT(UseCountedLoopSafepoints, true);
  65 #if 0
  66     if (FLAG_IS_DEFAULT(LoopStripMiningIter)) {
  67       FLAG_SET_DEFAULT(LoopStripMiningIter, 1000);
  68     }
  69 #else
  70     // NOTE! Loop strip mining is temporarily disabled
  71     // until JDK-8193935 and JDK-8201532 have be fixed
  72     FLAG_SET_DEFAULT(LoopStripMiningIter, 1);
  73 #endif
  74   }
  75 #endif
  76 
  77   // To avoid asserts in set_active_workers()
  78   FLAG_SET_DEFAULT(UseDynamicNumberOfGCThreads, true);
  79 
  80   // CompressedOops/UseCompressedClassPointers not supported
  81   FLAG_SET_DEFAULT(UseCompressedOops, false);
  82   FLAG_SET_DEFAULT(UseCompressedClassPointers, false);
  83 
  84   // Verification before exit not (yet) supported
  85   FLAG_SET_DEFAULT(VerifyBeforeExit, false);
  86 }
  87 
  88 CollectedHeap* ZArguments::create_heap() {
  89   return create_heap_with_policy<ZCollectedHeap, ZCollectorPolicy>();
  90 }


  45 
  46   // Disable biased locking by default
  47   if (FLAG_IS_DEFAULT(UseBiasedLocking)) {
  48     FLAG_SET_DEFAULT(UseBiasedLocking, false);
  49   }
  50 
  51   // Select number of parallel threads
  52   if (FLAG_IS_DEFAULT(ParallelGCThreads)) {
  53     FLAG_SET_DEFAULT(ParallelGCThreads, ZWorkers::calculate_nparallel());
  54   }
  55 
  56   // Select number of concurrent threads
  57   if (FLAG_IS_DEFAULT(ConcGCThreads)) {
  58     FLAG_SET_DEFAULT(ConcGCThreads, ZWorkers::calculate_nconcurrent());
  59   }
  60 
  61 #ifdef COMPILER2
  62   // Enable loop strip mining by default
  63   if (FLAG_IS_DEFAULT(UseCountedLoopSafepoints)) {
  64     FLAG_SET_DEFAULT(UseCountedLoopSafepoints, true);

  65     if (FLAG_IS_DEFAULT(LoopStripMiningIter)) {
  66       FLAG_SET_DEFAULT(LoopStripMiningIter, 1000);
  67     }





  68   }
  69 #endif
  70 
  71   // To avoid asserts in set_active_workers()
  72   FLAG_SET_DEFAULT(UseDynamicNumberOfGCThreads, true);
  73 
  74   // CompressedOops/UseCompressedClassPointers not supported
  75   FLAG_SET_DEFAULT(UseCompressedOops, false);
  76   FLAG_SET_DEFAULT(UseCompressedClassPointers, false);
  77 
  78   // Verification before exit not (yet) supported
  79   FLAG_SET_DEFAULT(VerifyBeforeExit, false);
  80 }
  81 
  82 CollectedHeap* ZArguments::create_heap() {
  83   return create_heap_with_policy<ZCollectedHeap, ZCollectorPolicy>();
  84 }
< prev index next >