Mercurial > hg > truffle
diff src/share/vm/code/nmethod.cpp @ 2376:c7f3d0b4570f
7017732: move static fields into Class to prepare for perm gen removal
Reviewed-by: kvn, coleenp, twisti, stefank
author | never |
---|---|
date | Fri, 18 Mar 2011 16:00:34 -0700 |
parents | d673ef06fe96 |
children | 3d58a4983660 |
line wrap: on
line diff
--- a/src/share/vm/code/nmethod.cpp Fri Mar 18 15:52:42 2011 -0700 +++ b/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); }