RFR: 8358183: [JVMCI] crash accessing nmethod::jvmci_name in CodeCache::aggregate

Evgeny Astigeevich eastigeevich at openjdk.org
Mon Jun 30 15:41:43 UTC 2025


On Tue, 3 Jun 2025 06:39:18 GMT, Boris Ulasevich <bulasevich at openjdk.org> wrote:

> This change addresses an intermittent crash in CompileBroker::print_heapinfo() when accessing JVMCI metadata after a CodeBlob::purge().
> 
> The issue is a regression after:
> - JDK-8343789: JVMCI metadata was moved from nmethod into a separate blob.
> - JDK-8352112: CodeBlob::purge() was updated to set _mutable_data to blob_end().
> 
> The change zeroes out _mutable_data_size, _relocation_size, and _metadata_size in purge() so that after purge jvmci_data_size() returns 0 and CompileBroker::print_heapinfo() won’t touch an invalid _metadata.

lgtm

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

Marked as reviewed by eastigeevich (Committer).

PR Review: https://git.openjdk.org/jdk/pull/25608#pullrequestreview-2971750695


More information about the hotspot-compiler-dev mailing list