diff -r a93146d0e4be -r f918d6096e23 src/share/vm/ci/ciCallProfile.hpp --- a/src/share/vm/ci/ciCallProfile.hpp Wed Jun 01 23:25:31 2011 -0700 +++ b/src/share/vm/ci/ciCallProfile.hpp Thu Jun 02 13:36:11 2011 -0700 @@ -36,6 +36,7 @@ private: // Fields are initialized directly by ciMethod::call_profile_at_bci. friend class ciMethod; + friend class ciMethodHandle; enum { MorphismLimit = 2 }; // Max call site's morphism we care about int _limit; // number of receivers have been determined @@ -58,10 +59,10 @@ public: // Note: The following predicates return false for invalid profiles: - bool has_receiver(int i) { return _limit > i; } - int morphism() { return _morphism; } + bool has_receiver(int i) const { return _limit > i; } + int morphism() const { return _morphism; } - int count() { return _count; } + int count() const { return _count; } int receiver_count(int i) { assert(i < _limit, "out of Call Profile MorphismLimit"); return _receiver_count[i];