RFR (S): 8022585: JVM crashes when ran with -XX:+PrintInlining

Vladimir Kozlov vladimir.kozlov at oracle.com
Fri Sep 20 16:37:29 PDT 2013


http://cr.openjdk.java.net/~kvn/8022585/webrev/

We can't use +PrintInlining flag in 7u40 after 8005031 changes were 
backported into 7u40. These changes keep inlining info in GrowableArray 
and use GrowableArray::at() method to access elements. Unfortunately in 
jdk7u40 at() method is copy constructor vs &at() method which returns 
reference in jdk8 (changed for 7200776). As result in jdk7u40 all 
changes to inline info are done to local copy and lost.

This problem was reported 2 times. One report (8019313) was from Andreas 
Schoesser who did evaluation of the problem and suggested the fix.

I extended his fix to use adr_at() instead of at() in all places where 
inlining info is accessed. It will simplify the backport into 7update.
I also added ability to print inlining and intrinsic per method:

-XX:CompileCommand=option,Test::test,PrintInlining

https://bugs.openjdk.java.net/browse/JDK-8019313
https://bugs.openjdk.java.net/browse/JDK-8022585

Thanks,
Vladimir

























More information about the hotspot-compiler-dev mailing list