RFR: JDK-8164319: CLHSDB dumpcodecache throws StackOverflowError
David Holmes
david.holmes at oracle.com
Fri Aug 19 05:22:00 UTC 2016
Thanks Dmitry! I've submitted this to JPRT.
David
On 19/08/2016 3:00 PM, Dmitry Samersoff wrote:
> Yasumasa,
>
> Looks good for me!
>
> -Dmitry
>
> On 2016-08-18 16:51, Yasumasa Suenaga wrote:
>> Hi all,
>>
>> I encountered StackOverflowError when I run dumpcodecache command in
>> CLHSDB:
>>
>> ------------
>> hsdb> dumpcodecache
>> Exception in thread "main" java.lang.StackOverflowError
>> at
>> sun.jvm.hotspot.code.CodeBlob.getName(jdk.hotspot.agent at 9-ea/CodeBlob.java:118)
>>
>> at
>> sun.jvm.hotspot.code.CodeBlob.getName(jdk.hotspot.agent at 9-ea/CodeBlob.java:118)
>>
>> at
>> sun.jvm.hotspot.code.CodeBlob.getName(jdk.hotspot.agent at 9-ea/CodeBlob.java:118)
>>
>> at
>> sun.jvm.hotspot.code.CodeBlob.getName(jdk.hotspot.agent at 9-ea/CodeBlob.java:118)
>>
>> at
>> sun.jvm.hotspot.code.CodeBlob.getName(jdk.hotspot.agent at 9-ea/CodeBlob.java:118)
>>
>> :
>> ------------
>>
>> CodeBlob#getName() calls itself recursively.
>> Thus it occurs StackOverflowError.
>> http://hg.openjdk.java.net/jdk9/hs/hotspot/file/e99e410e78e1/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/code/CodeBlob.java#l117
>>
>>
>> I uploaded webrev for this issue.
>> Could you reivew it?
>>
>> http://cr.openjdk.java.net/~ysuenaga/JDK-8164319/webrev.00/
>>
>> I also need a sponsor.
>>
>>
>> Thanks,
>>
>> Yasumasa
>
>
More information about the serviceability-dev
mailing list