< prev index next >

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

Print this page
@@ -25,13 +25,17 @@
  #ifndef SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHCOMPACTHEURISTICS_HPP
  #define SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHCOMPACTHEURISTICS_HPP
  
  #include "gc/shenandoah/heuristics/shenandoahHeuristics.hpp"
  
+ /*
+  * This heuristic has simpler triggers than the adaptive heuristic. The
+  * size of the collection set is limited to 3/4 of available memory.
+  */
  class ShenandoahCompactHeuristics : public ShenandoahHeuristics {
  public:
-   ShenandoahCompactHeuristics();
+   ShenandoahCompactHeuristics(ShenandoahSpaceInfo* space_info);
  
    virtual bool should_start_gc();
  
    virtual void choose_collection_set_from_regiondata(ShenandoahCollectionSet* cset,
                                                       RegionData* data, size_t size,
< prev index next >