mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8057570: RedefineClasses() tests fail assert(((Metadata*)obj)->is_valid()) failed: obj is valid
Revert two small changes from the previous-versions cleanup with marking code cache. Reviewed-by: kvn, dcubed
This commit is contained in:
parent
b20fa155a6
commit
731bbae8fa
2 changed files with 5 additions and 2 deletions
|
@ -2087,6 +2087,9 @@ void nmethod::metadata_do(void f(Metadata*)) {
|
|||
Metadata* md = *p;
|
||||
f(md);
|
||||
}
|
||||
|
||||
// Call function Method*, not embedded in these other places.
|
||||
if (_method != NULL) f(_method);
|
||||
}
|
||||
|
||||
void nmethod::oops_do(OopClosure* f, bool allow_zombie) {
|
||||
|
|
|
@ -1256,8 +1256,8 @@ void Universe::flush_evol_dependents_on(instanceKlassHandle ev_k_h) {
|
|||
// Deoptimize all activations depending on marked nmethods
|
||||
Deoptimization::deoptimize_dependents();
|
||||
|
||||
// Make the dependent methods zombies (like VM_Deoptimize)
|
||||
CodeCache::make_marked_nmethods_zombies();
|
||||
// Make the dependent methods not entrant (in VM_Deoptimize they are made zombies)
|
||||
CodeCache::make_marked_nmethods_not_entrant();
|
||||
}
|
||||
}
|
||||
#endif // HOTSWAP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue