RFR: 8339725: Concurrent GC crashed due to GetMethodDeclaringClass [v13]
Leonid Mesnik
lmesnik at openjdk.org
Fri Sep 13 00:44:08 UTC 2024
On Fri, 13 Sep 2024 00:33:34 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:
>
> change main/othervm to driver
test/hotspot/jtreg/serviceability/jvmti/GetMethodDeclaringClass/TestUnloadedClass.java line 30:
> 28: * @summary Stress test GetMethodDeclaringClass
> 29: * @requires vm.jvmti
> 30: * @requires (os.family == "linux") & (vm.debug != true)
Sorry, that missed initially. Why test is linux and non-debug only?
`* @requires (os.family == "linux") & (vm.debug != true)`
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20907#discussion_r1757810920
More information about the hotspot-dev
mailing list