Request for reviews (XXS): 6940520: CodeCache::scavenge_root_nmethods_do must fix oop relocations

Christian Thalinger Christian.Thalinger at Sun.COM
Fri Apr 2 05:39:15 PDT 2010


http://cr.openjdk.java.net/~twisti/6940520/webrev.01/

6940520: CodeCache::scavenge_root_nmethods_do must fix oop relocations
Summary: ScavengeRootsInCode can lead to unfixed code-embedded oops.
Reviewed-by:

During testing of JSR 292's SPARC C2 port I found a couple of crashes
which came from unfixed code-embedded oops.

This can be triggered with ScavengeRootsInCode={1,2}.

The fix is to call fix_oop_relocations in
CodeCache::scavenge_root_nmethods_do after oops may have been updated.

src/share/vm/code/codeCache.cpp




More information about the hotspot-compiler-dev mailing list