Integrated: 8342334: CDS: Scratch mirrors should not point to dead klasses

Aleksey Shipilev shade at openjdk.org
Mon Oct 21 08:07:16 UTC 2024


On Wed, 16 Oct 2024 09:57:47 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> See the symptoms and discussions in the bug. The fix does the same thing we do for normal CM->IK link during the deallocation:
> https://github.com/openjdk/jdk/blob/ebc17c7c8d6febd5a887309d1b7a466bcd2cc0a9/src/hotspot/share/oops/instanceKlass.cpp#L592-L594
> 
> ...but for scratch mirrors allocated by CDS dumping code.
> 
> Additional testing:
>  - [x] Linux x86_64 server fastdebug, `runtime/cds`
>  - [x]  Linux x86_64 server fastdebug, `runtime/cds` with [JDK-8341913](https://bugs.openjdk.org/browse/JDK-8341913) and Shenandoah enabled -- used to reliably crash, now it does not

This pull request has now been integrated.

Changeset: aa060f22
Author:    Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/aa060f22d302789c4f80dd1ebaa233a97b6b0073
Stats:     7 lines in 1 file changed: 7 ins; 0 del; 0 mod

8342334: CDS: Scratch mirrors should not point to dead klasses

Reviewed-by: adinn, coleenp, iklam

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

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


More information about the hotspot-runtime-dev mailing list