8159045: Remove const from methods returning size_t in threadLocalAllocBuffer.hpp
authorehelin
Wed, 08 Jun 2016 13:24:36 +0200
changeset 39278 f3f298ae1023
parent 39277 460f34bbd0c0
child 39279 2a8201076dd6
child 39280 86907793a181
8159045: Remove const from methods returning size_t in threadLocalAllocBuffer.hpp Reviewed-by: sjohanss, jmasa
hotspot/src/share/vm/gc/shared/threadLocalAllocBuffer.hpp
--- a/hotspot/src/share/vm/gc/shared/threadLocalAllocBuffer.hpp	Mon Jun 13 13:47:21 2016 -0400
+++ b/hotspot/src/share/vm/gc/shared/threadLocalAllocBuffer.hpp	Wed Jun 08 13:24:36 2016 +0200
@@ -108,9 +108,9 @@
     // do nothing.  tlabs must be inited by initialize() calls
   }
 
-  static const size_t min_size()                 { return align_object_size(MinTLABSize / HeapWordSize) + alignment_reserve(); }
-  static const size_t max_size()                 { assert(_max_size != 0, "max_size not set up"); return _max_size; }
-  static const size_t max_size_in_bytes()        { return max_size() * BytesPerWord; }
+  static size_t min_size()                       { return align_object_size(MinTLABSize / HeapWordSize) + alignment_reserve(); }
+  static size_t max_size()                       { assert(_max_size != 0, "max_size not set up"); return _max_size; }
+  static size_t max_size_in_bytes()              { return max_size() * BytesPerWord; }
   static void set_max_size(size_t max_size)      { _max_size = max_size; }
 
   HeapWord* start() const                        { return _start; }