src/share/vm/gc_implementation/g1/heapRegionSet.hpp

Print this page
rev 6674 : imported patch fixes-kim

@@ -117,11 +117,11 @@
   HeapRegionSetBase(const char* name, bool humongous, bool empty, HRSMtSafeChecker* mt_safety_checker);
 
 public:
   const char* name() { return _name; }
 
-  uint length() { return _count.length(); }
+  uint length() const { return _count.length(); }
 
   bool is_empty() { return _count.length() == 0; }
 
   size_t total_capacity_bytes() {
     return _count.capacity();