mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8140274: methodHandles and constantPoolHandles should be passed as const references
Modified code to use const reference parameters Reviewed-by: sspitsyn, twisti
This commit is contained in:
parent
686fb800c8
commit
f1e89ea4cc
111 changed files with 521 additions and 515 deletions
|
@ -414,7 +414,7 @@ class InstanceKlass: public Klass {
|
|||
};
|
||||
|
||||
// method override check
|
||||
bool is_override(methodHandle super_method, Handle targetclassloader, Symbol* targetclassname, TRAPS);
|
||||
bool is_override(const methodHandle& super_method, Handle targetclassloader, Symbol* targetclassname, TRAPS);
|
||||
|
||||
// package
|
||||
bool is_same_class_package(Klass* class2);
|
||||
|
@ -780,7 +780,7 @@ public:
|
|||
|
||||
// jmethodID support
|
||||
static jmethodID get_jmethod_id(instanceKlassHandle ik_h,
|
||||
methodHandle method_h);
|
||||
const methodHandle& method_h);
|
||||
static jmethodID get_jmethod_id_fetch_or_update(instanceKlassHandle ik_h,
|
||||
size_t idnum, jmethodID new_id, jmethodID* new_jmeths,
|
||||
jmethodID* to_dealloc_id_p,
|
||||
|
@ -827,7 +827,7 @@ public:
|
|||
// OopMapCache support
|
||||
OopMapCache* oop_map_cache() { return _oop_map_cache; }
|
||||
void set_oop_map_cache(OopMapCache *cache) { _oop_map_cache = cache; }
|
||||
void mask_for(methodHandle method, int bci, InterpreterOopMap* entry);
|
||||
void mask_for(const methodHandle& method, int bci, InterpreterOopMap* entry);
|
||||
|
||||
// JNI identifier support (for static fields - for jni performance)
|
||||
JNIid* jni_ids() { return _jni_ids; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue