[jdk21u-dev] RFR: 8360664: Null pointer dereference in src/hotspot/share/prims/jvmtiTagMap.cpp in IterateOverHeapObjectClosure::do_object()

Goetz Lindenmaier goetz at openjdk.org
Mon Aug 4 20:20:03 UTC 2025


On Wed, 16 Jul 2025 13:19:28 GMT, Artem Semenov <asemenov at openjdk.org> wrote:

> Hi all,
> 
>     This pull request contains a backport of commit [e9a43416](https://github.com/openjdk/jdk/commit/e9a434165a6ec07cde0429c7f9823bbc5dab7857) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
> 
>     The commit being backported was authored by Artem Semenov on 7 Jul 2025 and was reviewed by Serguei Spitsyn, Alex Menkov and Chris Plummer.
> 
> This patch adds an assert that demonstrates that NULL cannot be passed to this function. This change will simplify code analysis during bug hunting and investigation.
> 
>     Thanks!

I don't see why we would want to have this in 21. 
It removes a null check in the product build, creating risk of crash.
If we push this now, it goes live in the October update before it's released in 25 in January.
Let's at least defer this.

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1982#issuecomment-3152219602


More information about the jdk-updates-dev mailing list