Integrated: 8339725: Concurrent GC crashed due to GetMethodDeclaringClass

Liang Mao lmao at openjdk.org
Sat Sep 14 05:39:14 UTC 2024


On Mon, 9 Sep 2024 05:33:35 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

This pull request has now been integrated.

Changeset: c91fa278
Author:    Liang Mao <lmao at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c91fa278fe17ab204beef0fcef1ada6dd0bc37bb
Stats:     244 lines in 5 files changed: 241 ins; 0 del; 3 mod

8339725: Concurrent GC crashed due to GetMethodDeclaringClass

Reviewed-by: lmesnik, coleenp, eosterlund, stefank

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

PR: https://git.openjdk.org/jdk/pull/20907


More information about the hotspot-dev mailing list