536 SWEEP(nm); |
536 SWEEP(nm); |
537 } |
537 } |
538 } else if (nm->is_not_entrant()) { |
538 } else if (nm->is_not_entrant()) { |
539 // If there are no current activations of this method on the |
539 // If there are no current activations of this method on the |
540 // stack we can safely convert it to a zombie method |
540 // stack we can safely convert it to a zombie method |
541 if (nm->can_not_entrant_be_converted()) { |
541 if (nm->can_convert_to_zombie()) { |
542 if (PrintMethodFlushing && Verbose) { |
542 if (PrintMethodFlushing && Verbose) { |
543 tty->print_cr("### Nmethod %3d/" PTR_FORMAT " (not entrant) being made zombie", nm->compile_id(), nm); |
543 tty->print_cr("### Nmethod %3d/" PTR_FORMAT " (not entrant) being made zombie", nm->compile_id(), nm); |
544 } |
544 } |
545 // Clear ICStubs to prevent back patching stubs of zombie or unloaded |
545 // Clear ICStubs to prevent back patching stubs of zombie or unloaded |
546 // nmethods during the next safepoint (see ICStub::finalize). |
546 // nmethods during the next safepoint (see ICStub::finalize). |