src/share/vm/runtime/sweeper.cpp

changeset 8073
682119c4c32e
parent 6911
ce8f6bb717c9
child 8075
be740540f60c
     1.1 --- a/src/share/vm/runtime/sweeper.cpp	Tue Oct 06 12:18:17 2015 +0200
     1.2 +++ b/src/share/vm/runtime/sweeper.cpp	Thu Oct 08 09:37:23 2015 +0200
     1.3 @@ -542,6 +542,10 @@
     1.4        if (PrintMethodFlushing && Verbose) {
     1.5          tty->print_cr("### Nmethod %3d/" PTR_FORMAT " (not entrant) being made zombie", nm->compile_id(), nm);
     1.6        }
     1.7 +      // Clear ICStubs to prevent back patching stubs of zombie or unloaded
     1.8 +      // nmethods during the next safepoint (see ICStub::finalize).
     1.9 +      MutexLocker cl(CompiledIC_lock);
    1.10 +      nm->clear_ic_stubs();
    1.11        // Code cache state change is tracked in make_zombie()
    1.12        nm->make_zombie();
    1.13        _zombified_count++;

mercurial