< prev index next >

src/hotspot/share/gc/shared/softRefGenPolicy.hpp

Print this page




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_GC_SHARED_SOFTREFGENPOLICY_HPP
  26 #define SHARE_VM_GC_SHARED_SOFTREFGENPOLICY_HPP
  27 
  28 #include "gc/shared/softRefPolicy.hpp"
  29 #include "utilities/globalDefinitions.hpp"
  30 
  31 class AdaptiveSizePolicy;
  32 
  33 class SoftRefGenPolicy : public SoftRefPolicy {
  34  private:
  35   AdaptiveSizePolicy* _size_policy;
  36 
  37 public:
  38   SoftRefGenPolicy() : _size_policy(NULL) {}
  39 
  40   void set_size_policy(AdaptiveSizePolicy* size_policy) {
  41     _size_policy = size_policy;
  42   }
  43 
  44   virtual void cleared_all_soft_refs();
  45 };
  46 
  47 #endif // SHARE_VM_GC_SHARED_SOFTREFGENPOLICY_HPP


  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_GC_SHARED_SOFTREFGENPOLICY_HPP
  26 #define SHARE_VM_GC_SHARED_SOFTREFGENPOLICY_HPP
  27 
  28 #include "gc/shared/softRefPolicy.hpp"
  29 #include "utilities/globalDefinitions.hpp"
  30 
  31 class AdaptiveSizePolicy;
  32 
  33 class SoftRefGenPolicy : public SoftRefPolicy {



  34 public:






  35   virtual void cleared_all_soft_refs();
  36 };
  37 
  38 #endif // SHARE_VM_GC_SHARED_SOFTREFGENPOLICY_HPP
< prev index next >