< prev index next >

src/hotspot/share/gc/shenandoah/heuristics/shenandoahStaticHeuristics.hpp

Print this page
*** 25,13 ***
  #ifndef SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHSTATICHEURISTICS_HPP
  #define SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHSTATICHEURISTICS_HPP
  
  #include "gc/shenandoah/heuristics/shenandoahHeuristics.hpp"
  
  class ShenandoahStaticHeuristics : public ShenandoahHeuristics {
  public:
!   ShenandoahStaticHeuristics();
  
    virtual ~ShenandoahStaticHeuristics();
  
    virtual bool should_start_gc();
  
--- 25,18 ---
  #ifndef SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHSTATICHEURISTICS_HPP
  #define SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHSTATICHEURISTICS_HPP
  
  #include "gc/shenandoah/heuristics/shenandoahHeuristics.hpp"
  
+ /*
+  * The static heuristic will trigger cycles if the available memory falls
+  * below ShenandoahMinFreeThreshold percentage of total capacity. This
+  * heuristic will attempt to evacuation any region with any garbage.
+  */
  class ShenandoahStaticHeuristics : public ShenandoahHeuristics {
  public:
!   ShenandoahStaticHeuristics(ShenandoahSpaceInfo* space_info);
  
    virtual ~ShenandoahStaticHeuristics();
  
    virtual bool should_start_gc();
  
< prev index next >