changeset 8725 | 8c1e3dd5fe1b |
parent 8724 | 693c6b883b54 |
child 8872 | 36680c58660e |
--- a/hotspot/src/share/vm/code/nmethod.cpp Fri Mar 18 15:52:42 2011 -0700 +++ b/hotspot/src/share/vm/code/nmethod.cpp Fri Mar 18 16:00:34 2011 -0700 @@ -653,6 +653,9 @@ _pc_desc_cache.reset_to(NULL); code_buffer->copy_oops_to(this); + if (ScavengeRootsInCode && detect_scavenge_root_oops()) { + CodeCache::add_scavenge_root_nmethod(this); + } debug_only(verify_scavenge_root_oops()); CodeCache::commit(this); }