changeset 9420:bb7fc011c89c

8142403: Make G1CollectorPolicy::predictor const Reviewed-by: stefank, tschatzl
author ehelin
date Thu, 12 Nov 2015 14:03:14 +0100
parents 40ac5941b5ea
children 9089740e9f30 279793009cb9
files src/share/vm/gc/g1/g1CollectorPolicy.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc/g1/g1CollectorPolicy.hpp	Mon Oct 19 15:47:36 2015 +0200
+++ b/src/share/vm/gc/g1/g1CollectorPolicy.hpp	Thu Nov 12 14:03:14 2015 +0100
@@ -272,7 +272,7 @@
   size_t _pending_cards;
 
 public:
-  G1Predictions& predictor() { return _predictor; }
+  const G1Predictions& predictor() const { return _predictor; }
 
   // Accessors