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

Artem Semenov asemenov at openjdk.org
Tue Aug 5 07:24:08 UTC 2025


On Mon, 4 Aug 2025 20:17:38 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:

> 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.

In the original [pull request](https://git.openjdk.org/jdk/pull/26002), the developers insist that null can never occur here… It started with the possibility of dereferencing further in the code… But the developers convinced me that an assertion here is enough.
Otherwise, I don’t insist.

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

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


More information about the jdk-updates-dev mailing list