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 14:11:04 PDT 2013
Thanks, Vladimir!
igor
On Sep 16, 2013, at 1:45 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
> Looks good.
>
> Vladimir
>
> On 9/16/13 12:01 PM, Igor Veresov wrote:
>> 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
>>
>> Thanks,
>> igor
>>
More information about the hotspot-compiler-dev
mailing list