Integrated: 8369642: [ubsan] nmethod::nmethod null pointer passed as argument 2 to memcpy

Chad Rakoczy duke at openjdk.org
Fri Oct 17 18:06:12 UTC 2025


On Mon, 13 Oct 2025 23:56:20 GMT, Chad Rakoczy <duke at openjdk.org> wrote:

> [JDK-8316694](https://bugs.openjdk.org/browse/JDK-8316694) introduced a counter so that the nmethod immutable data can be shared between relocated nmethods to eliminate an unnecessary copy. The counter is aligned in memory so that must be taken into account when calculating the amount of memory used by the counter

This pull request has now been integrated.

Changeset: 0cb8ccd8
Author:    Chad Rakoczy <chadrako at amazon.com>
Committer: Vladimir Kozlov <kvn at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0cb8ccd89a659eaf1e245cfb7f8c32fb16bff4c7
Stats:     30 lines in 2 files changed: 14 ins; 10 del; 6 mod

8369642: [ubsan] nmethod::nmethod null pointer passed as argument 2 to memcpy

Reviewed-by: kvn, mbaesken

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

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


More information about the hotspot-compiler-dev mailing list