< prev index next >

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

Print this page
*** 1,7 ***
--- 1,8 ---
  /*
   * Copyright (c) 2018, 2019, Red Hat, Inc. All rights reserved.
+  * Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

*** 25,13 ***
  #ifndef SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHAGGRESSIVEHEURISTICS_HPP
  #define SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHAGGRESSIVEHEURISTICS_HPP
  
  #include "gc/shenandoah/heuristics/shenandoahHeuristics.hpp"
  
  class ShenandoahAggressiveHeuristics : public ShenandoahHeuristics {
  public:
!   ShenandoahAggressiveHeuristics();
  
    virtual void choose_collection_set_from_regiondata(ShenandoahCollectionSet* cset,
                                                       RegionData* data, size_t size,
                                                       size_t free);
  
--- 26,17 ---
  #ifndef SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHAGGRESSIVEHEURISTICS_HPP
  #define SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHAGGRESSIVEHEURISTICS_HPP
  
  #include "gc/shenandoah/heuristics/shenandoahHeuristics.hpp"
  
+ /*
+  * This is a diagnostic heuristic that continuously runs collections
+  * cycles and adds every region with any garbage to the collection set.
+  */
  class ShenandoahAggressiveHeuristics : public ShenandoahHeuristics {
  public:
!   ShenandoahAggressiveHeuristics(ShenandoahSpaceInfo* space_info);
  
    virtual void choose_collection_set_from_regiondata(ShenandoahCollectionSet* cset,
                                                       RegionData* data, size_t size,
                                                       size_t free);
  
< prev index next >