RFR: 8339725: Concurrent GC crashed due to GetMethodDeclaringClass [v10]

Coleen Phillimore coleenp at openjdk.org
Wed Sep 11 15:57:08 UTC 2024


On Wed, 11 Sep 2024 10:23:49 GMT, Liang Mao <lmao at openjdk.org> wrote:

>> Hi,
>> 
>> It's a fix for 8339725. I think getting the oop from Klass::java_mirror() should use a ON_PHANTOM_OOP_REF decorator here which could make sure the oop would be kept alive in concurrent marking and return nullptr while in concurrent reference processing and unloading.
>> 
>> test/hotspot/jtreg/runtime and gc are clean.
>> 
>> Thanks,
>> Liang
>
> Liang Mao has updated the pull request incrementally with one additional commit since the last revision:
> 
>   use -Xmx50m to increace the crash posibility

Please move the test to the serviceability directory.

test/hotspot/jtreg/runtime/8339725/libagent8339725.cpp line 1:

> 1: /*

This test should go in the test/hotspot/jtreg/serviceability/jvmti/GetMethodDeclaringClass/TestUnloadedMethod.java or something like that.

The bug number is in the test so the name of the test doesn't need to be the bug number.

-------------

PR Review: https://git.openjdk.org/jdk/pull/20907#pullrequestreview-2297707121
PR Review Comment: https://git.openjdk.org/jdk/pull/20907#discussion_r1755045296


More information about the hotspot-dev mailing list