Integrated: 8358957: [ubsan]: The assert in layout_helper_boolean_diffbit() in klass.hpp needs UB to fail

Afshin Zafari azafari at openjdk.org
Tue Jan 27 11:58:33 UTC 2026


On Mon, 15 Sep 2025 09:01:56 GMT, Afshin Zafari <azafari at openjdk.org> wrote:

> Avoid using loop and UB in left-shift operation as suggested by Kim's comment in the JBS-issue.
> 
> Tests:
>  mach5 tiers 1-5 {macosx-aarch64, linux-x64, windows-x64} x {debug, product}

This pull request has now been integrated.

Changeset: 5990165d
Author:    Afshin Zafari <azafari at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/5990165d8257f39595b4c38f4e3e8d6ebb3393e8
Stats:     13 lines in 1 file changed: 2 ins; 0 del; 11 mod

8358957: [ubsan]: The assert in layout_helper_boolean_diffbit() in klass.hpp needs UB to fail

Reviewed-by: dlong, jsjolen

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

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


More information about the hotspot-dev mailing list