RFR(S) 8023542: Test java/io/File/CheckPermission.java fails due to unfinished recursion (java.lang.StackOverflowError) when JIT'ed code (-client, -server) is running

Igor Veresov igor.veresov at oracle.com
Mon Sep 16 12:01:53 PDT 2013

In checkcast c1 delays the null check of the argument object until it materializes the reference to the klass against which the check is performed. The materialization can lead to patching, and class loading, which is this particular test leads to infinite recursion. Checkcast should check for null first. Fix is to move the null check up (sparc is not affected). 

Webrev: http://cr.openjdk.java.net/~iveresov/8023542/

Testing: the failing test cast, jprt


More information about the hotspot-compiler-dev mailing list