RFR: 8286876: NMT.test_unaliged_block_address_vm_assert fails if using clang toolchain

Johan Sjölen jsjolen at openjdk.org
Tue Dec 6 09:35:07 UTC 2022


On Fri, 2 Dec 2022 09:27:37 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

> Is it allowed to do that? This surprises me. We use is_aligned(this) in other places too, e.g. in oopStorage. So maybe this needs a more general solution. @kimbarrett?

Hi, I talked to Kim. He referred me to these links:
- https://mail.openjdk.org/pipermail/hotspot-dev/2022-December/067595.html
- https://github.com/openjdk/jdk/pull/10920

In short: Yes, this optimization is allowed and what we're doing is UB. We should definitely look into this.

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

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


More information about the hotspot-runtime-dev mailing list