< prev index next >
src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp
Print this page
rev 8910 : full patch for jfr
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2019, Oracle and/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.
@@ -26,10 +26,11 @@
#define SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTORPOLICY_HPP
#include "gc_implementation/g1/collectionSetChooser.hpp"
#include "gc_implementation/g1/g1Allocator.hpp"
#include "gc_implementation/g1/g1MMUTracker.hpp"
+#include "gc_implementation/g1/g1IHOPControl.hpp"
#include "memory/collectorPolicy.hpp"
// A G1CollectorPolicy makes policy decisions that determine the
// characteristics of the collector. Examples include:
// * choice of collection set.
@@ -159,10 +160,12 @@
}
};
class G1CollectorPolicy: public CollectorPolicy {
private:
+ static G1IHOPControl* create_ihop_control();
+
// either equal to the number of parallel threads, if ParallelGCThreads
// has been set, or 1 otherwise
int _parallel_gc_threads;
// The number of GC threads currently active.
@@ -171,10 +174,11 @@
enum SomePrivateConstants {
NumPrevPausesForHeuristics = 10
};
G1MMUTracker* _mmu_tracker;
+ G1IHOPControl* _ihop_control;
void initialize_alignments();
void initialize_flags();
CollectionSetChooser* _collectionSetChooser;
@@ -634,10 +638,11 @@
double reclaimable_bytes_perc(size_t reclaimable_bytes);
public:
G1CollectorPolicy();
+ virtual ~G1CollectorPolicy();
virtual G1CollectorPolicy* as_g1_policy() { return this; }
virtual CollectorPolicy::Name kind() {
return CollectorPolicy::G1CollectorPolicyKind;
< prev index next >