1.1 --- a/src/share/vm/gc_implementation/g1/heapRegionSet.hpp Mon Jul 21 09:59:54 2014 +0200 1.2 +++ b/src/share/vm/gc_implementation/g1/heapRegionSet.hpp Mon Jul 21 10:00:31 2014 +0200 1.3 @@ -119,7 +119,7 @@ 1.4 public: 1.5 const char* name() { return _name; } 1.6 1.7 - uint length() { return _count.length(); } 1.8 + uint length() const { return _count.length(); } 1.9 1.10 bool is_empty() { return _count.length() == 0; } 1.11