8219687: G1 asserts nmethod should not be unloaded during parallel code cache unloading

Reviewed-by: tschatzl, kvn
This commit is contained in:
Erik Österlund 2019-07-02 11:33:01 +02:00
parent 1dd6e7a3eb
commit ec5bfaba53
4 changed files with 5 additions and 6 deletions

View file

@ -1774,10 +1774,9 @@ void nmethod::do_unloading(bool unloading_occurred) {
}
}
void nmethod::oops_do(OopClosure* f, bool allow_zombie) {
void nmethod::oops_do(OopClosure* f, bool allow_dead) {
// make sure the oops ready to receive visitors
assert(allow_zombie || !is_zombie(), "should not call follow on zombie nmethod");
assert(!is_unloaded(), "should not call follow on unloaded nmethod");
assert(allow_dead || is_alive(), "should not call follow on dead nmethod");
// Prevent extra code cache walk for platforms that don't have immediate oops.
if (relocInfo::mustIterateImmediateOopsInCode()) {