mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8152271: MemberNameTable doesn't purge stale entries
Intern MemberNames in table instead of allocating new entries Reviewed-by: vlivanov, sspitsyn, dholmes
This commit is contained in:
parent
6ef961edbd
commit
eba25b33b9
7 changed files with 55 additions and 19 deletions
|
@ -695,7 +695,7 @@ JVM_ENTRY(jobject, JVM_Clone(JNIEnv* env, jobject handle))
|
|||
// This can safepoint and redefine method, so need both new_obj and method
|
||||
// in a handle, for two different reasons. new_obj can move, method can be
|
||||
// deleted if nothing is using it on the stack.
|
||||
m->method_holder()->add_member_name(new_obj());
|
||||
m->method_holder()->add_member_name(new_obj(), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue