mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8229900: RedefineDeleteJmethod.java fails with -Xcheck:jni
Remove RedefineClasses adjustment and test, but improve checking for method/class matching. Reviewed-by: dholmes, sspitsyn
This commit is contained in:
parent
bb09c0c1d8
commit
638910826a
5 changed files with 48 additions and 204 deletions
|
@ -3528,15 +3528,6 @@ void VM_RedefineClasses::update_jmethod_ids() {
|
|||
"should be replaced");
|
||||
}
|
||||
}
|
||||
// Update deleted jmethodID
|
||||
for (int j = 0; j < _deleted_methods_length; ++j) {
|
||||
Method* old_method = _deleted_methods[j];
|
||||
jmethodID jmid = old_method->find_jmethod_id_or_null();
|
||||
if (jmid != NULL) {
|
||||
// Change the jmethodID to point to NSME.
|
||||
Method::change_method_associated_with_jmethod_id(jmid, Universe::throw_no_such_method_error());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int VM_RedefineClasses::check_methods_and_mark_as_obsolete() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue