Integrated: 8365163: [ubsan] left-shift issue in globalDefinitions.hpp

Afshin Zafari azafari at openjdk.org
Tue Sep 2 09:11:50 UTC 2025


On Sun, 17 Aug 2025 06:49:47 GMT, Afshin Zafari <azafari at openjdk.org> wrote:

> There was a left-shift of negative value UB in `set_high` function where the high value sign bit is on and is left-shifted 32 bits to put it in high word of the destination address.
> To address it, first the left 32 bits of the provided `high` arg is cleared and then left-shifted 32 bits. 
> 
> Tests:
> mach5 tiers 1-5 {macosx-aarch64, linux-x64, windows-x64} x {debug, product}

This pull request has now been integrated.

Changeset: ef7872cc
Author:    Afshin Zafari <azafari at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ef7872cc31d4d7c0a9f311eafc28132ead3476b6
Stats:     39 lines in 2 files changed: 27 ins; 8 del; 4 mod

8365163: [ubsan] left-shift issue in globalDefinitions.hpp

Reviewed-by: kbarrett, stefank, aph

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

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


More information about the hotspot-dev mailing list