8142403: Make G1CollectorPolicy::predictor const
authorehelin
Thu, 12 Nov 2015 14:03:14 +0100
changeset 34132 aa73af640c61
parent 34131 d5fc001452bb
child 34133 5d761539ac2c
child 34257 4be3504cc03b
8142403: Make G1CollectorPolicy::predictor const Reviewed-by: stefank, tschatzl
hotspot/src/share/vm/gc/g1/g1CollectorPolicy.hpp
--- a/hotspot/src/share/vm/gc/g1/g1CollectorPolicy.hpp	Mon Oct 19 15:47:36 2015 +0200
+++ b/hotspot/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