diff -r dbf1c77ae372 -r dd2ce9021031 hotspot/src/share/vm/oops/klass.hpp --- a/hotspot/src/share/vm/oops/klass.hpp Thu Dec 17 23:36:28 2015 +0000 +++ b/hotspot/src/share/vm/oops/klass.hpp Fri Dec 18 12:39:02 2015 -0800 @@ -411,9 +411,9 @@ // lookup operation for MethodLookupCache friend class MethodLookupCache; virtual Klass* find_field(Symbol* name, Symbol* signature, fieldDescriptor* fd) const; - virtual Method* uncached_lookup_method(Symbol* name, Symbol* signature, OverpassLookupMode overpass_mode) const; + virtual Method* uncached_lookup_method(const Symbol* name, const Symbol* signature, OverpassLookupMode overpass_mode) const; public: - Method* lookup_method(Symbol* name, Symbol* signature) const { + Method* lookup_method(const Symbol* name, const Symbol* signature) const { return uncached_lookup_method(name, signature, find_overpass); }