RFR: 8374448: SIGSEGV in ConstantPool::print_value_on with -XX:CompileCommand=print [v3]
Kerem Kat
krk at openjdk.org
Thu Feb 12 11:32:19 UTC 2026
> `BSMAttributeEntries::is_empty()` used AND, so `!is_empty()` was true when only one of `_offsets`/`_bootstrap_methods` was non-null. Callers then dereferenced the null pointer.
>
> Changed to OR so `!is_empty()` guarantees both are non-null. Added asserts at the two assignment sites to check for consistency.
>
> Please note that I could not reproduce this in fastdebug or slowdebug builds on x86_64 Linux.
Kerem Kat has updated the pull request incrementally with one additional commit since the last revision:
update copyright year
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29611/files
- new: https://git.openjdk.org/jdk/pull/29611/files/15ac643a..b44e997d
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29611&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29611&range=01-02
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/29611.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29611/head:pull/29611
PR: https://git.openjdk.org/jdk/pull/29611
More information about the hotspot-dev
mailing list