< prev index next >

src/hotspot/share/gc/g1/g1Policy.hpp

Print this page
rev 60061 : imported patch 8210462-kbarrett-review


 260 
 261   jlong collection_pause_end_millis() { return _collection_pause_end_millis; }
 262 
 263 private:
 264   void clear_collection_set_candidates();
 265   // Sets up marking if proper conditions are met.
 266   void maybe_start_marking();
 267 
 268   // The kind of STW pause.
 269   enum PauseKind {
 270     FullGC,
 271     YoungOnlyGC,
 272     MixedGC,
 273     LastYoungGC,
 274     ConcurrentStartGC,
 275     Cleanup,
 276     Remark
 277   };
 278 
 279   static bool is_young_only_pause(PauseKind kind);

 280   static bool is_last_young_pause(PauseKind kind);
 281   static bool is_concurrent_start_pause(PauseKind kind);
 282   // Calculate PauseKind from internal state.
 283   PauseKind young_gc_pause_kind() const;
 284   // Record the given STW pause with the given start and end times (in s).
 285   void record_pause(PauseKind kind, double start, double end);
 286   // Indicate that we aborted marking before doing any mixed GCs.
 287   void abort_time_to_mixed_tracking();
 288 
 289   // Record and log stats before not-full collection.
 290   void record_concurrent_refinement_stats();
 291 
 292 public:
 293 
 294   G1Policy(STWGCTimer* gc_timer);
 295 
 296   virtual ~G1Policy();
 297 
 298   static G1Policy* create_policy(STWGCTimer* gc_timer_stw);
 299 




 260 
 261   jlong collection_pause_end_millis() { return _collection_pause_end_millis; }
 262 
 263 private:
 264   void clear_collection_set_candidates();
 265   // Sets up marking if proper conditions are met.
 266   void maybe_start_marking();
 267 
 268   // The kind of STW pause.
 269   enum PauseKind {
 270     FullGC,
 271     YoungOnlyGC,
 272     MixedGC,
 273     LastYoungGC,
 274     ConcurrentStartGC,
 275     Cleanup,
 276     Remark
 277   };
 278 
 279   static bool is_young_only_pause(PauseKind kind);
 280   static bool is_mixed_pause(PauseKind kind);
 281   static bool is_last_young_pause(PauseKind kind);
 282   static bool is_concurrent_start_pause(PauseKind kind);
 283   // Calculate PauseKind from internal state.
 284   PauseKind young_gc_pause_kind() const;
 285   // Record the given STW pause with the given start and end times (in s).
 286   void record_pause(PauseKind kind, double start, double end);
 287   // Indicate that we aborted marking before doing any mixed GCs.
 288   void abort_time_to_mixed_tracking();
 289 
 290   // Record and log stats before not-full collection.
 291   void record_concurrent_refinement_stats();
 292 
 293 public:
 294 
 295   G1Policy(STWGCTimer* gc_timer);
 296 
 297   virtual ~G1Policy();
 298 
 299   static G1Policy* create_policy(STWGCTimer* gc_timer_stw);
 300 


< prev index next >