diff -r 8213b0f5c92d -r 3b2dea75431e src/share/vm/oops/cpCacheOop.hpp --- a/src/share/vm/oops/cpCacheOop.hpp Sat Oct 30 12:19:07 2010 -0700 +++ b/src/share/vm/oops/cpCacheOop.hpp Sat Oct 30 13:08:23 2010 -0700 @@ -319,7 +319,9 @@ // Sizing debug_only(friend class ClassVerifier;) + public: int length() const { return _length; } + private: void set_length(int length) { _length = length; } static int header_size() { return sizeof(constantPoolCacheOopDesc) / HeapWordSize; }