equal
deleted
inserted
replaced
541 // stack we can safely convert it to a zombie method |
541 // stack we can safely convert it to a zombie method |
542 if (nm->can_not_entrant_be_converted()) { |
542 if (nm->can_not_entrant_be_converted()) { |
543 if (PrintMethodFlushing && Verbose) { |
543 if (PrintMethodFlushing && Verbose) { |
544 tty->print_cr("### Nmethod %3d/" PTR_FORMAT " (not entrant) being made zombie", nm->compile_id(), nm); |
544 tty->print_cr("### Nmethod %3d/" PTR_FORMAT " (not entrant) being made zombie", nm->compile_id(), nm); |
545 } |
545 } |
|
546 // Clear ICStubs to prevent back patching stubs of zombie or unloaded |
|
547 // nmethods during the next safepoint (see ICStub::finalize). |
|
548 MutexLocker cl(CompiledIC_lock); |
|
549 nm->clear_ic_stubs(); |
546 // Code cache state change is tracked in make_zombie() |
550 // Code cache state change is tracked in make_zombie() |
547 nm->make_zombie(); |
551 nm->make_zombie(); |
548 _zombified_count++; |
552 _zombified_count++; |
549 SWEEP(nm); |
553 SWEEP(nm); |
550 } else { |
554 } else { |