< prev index next >

src/hotspot/share/gc/g1/g1Arguments.cpp

Print this page
rev 48019 : 8191821: Finer granularity for GC verification
Reviewed-by:
rev 48020 : [mq]: 8191821-rev-sang-poonam


  78   // the pause interval and b) we maintain the invariant that pause
  79   // time target < pause interval. If the user does not want this
  80   // maximum flexibility, they will have to set the pause interval
  81   // explicitly.
  82 
  83   if (FLAG_IS_DEFAULT(MaxGCPauseMillis)) {
  84     // The default pause time target in G1 is 200ms
  85     FLAG_SET_DEFAULT(MaxGCPauseMillis, 200);
  86   }
  87 
  88   // Then, if the interval parameter was not set, set it according to
  89   // the pause time target (this will also deal with the case when the
  90   // pause time target is the default value).
  91   if (FLAG_IS_DEFAULT(GCPauseIntervalMillis)) {
  92     FLAG_SET_DEFAULT(GCPauseIntervalMillis, MaxGCPauseMillis + 1);
  93   }
  94 
  95   log_trace(gc)("MarkStackSize: %uk  MarkStackSizeMax: %uk", (unsigned int) (MarkStackSize / K), (uint) (MarkStackSizeMax / K));
  96 }
  97 
  98 void G1Arguments::parse_verification_type(const char* type) {
  99   G1CollectedHeap::heap()->verifier()->parse_verification_type(type);


 100 }
 101 
 102 CollectedHeap* G1Arguments::create_heap() {
 103   return create_heap_with_policy<G1CollectedHeap, G1CollectorPolicy>();
 104 }


  78   // the pause interval and b) we maintain the invariant that pause
  79   // time target < pause interval. If the user does not want this
  80   // maximum flexibility, they will have to set the pause interval
  81   // explicitly.
  82 
  83   if (FLAG_IS_DEFAULT(MaxGCPauseMillis)) {
  84     // The default pause time target in G1 is 200ms
  85     FLAG_SET_DEFAULT(MaxGCPauseMillis, 200);
  86   }
  87 
  88   // Then, if the interval parameter was not set, set it according to
  89   // the pause time target (this will also deal with the case when the
  90   // pause time target is the default value).
  91   if (FLAG_IS_DEFAULT(GCPauseIntervalMillis)) {
  92     FLAG_SET_DEFAULT(GCPauseIntervalMillis, MaxGCPauseMillis + 1);
  93   }
  94 
  95   log_trace(gc)("MarkStackSize: %uk  MarkStackSizeMax: %uk", (unsigned int) (MarkStackSize / K), (uint) (MarkStackSizeMax / K));
  96 }
  97 
  98 bool G1Arguments::parse_verification_type(const char* type) {
  99   G1CollectedHeap::heap()->verifier()->parse_verification_type(type);
 100   // Always return true because we want to parse all values.
 101   return true;
 102 }
 103 
 104 CollectedHeap* G1Arguments::create_heap() {
 105   return create_heap_with_policy<G1CollectedHeap, G1CollectorPolicy>();
 106 }
< prev index next >