RFR: 8318127: align_up has potential overflow [v8]

Casper Norrbin cnorrbin at openjdk.org
Thu Oct 10 15:12:57 UTC 2024


> Hi everyone,
> 
> The `align_up` function contained code which could potentially overflow and produce an incorrect result. This PR adds an assert to check for such.
> 
> Additionally, two test case that previously caused an overflow have been updated to use the highest possible values that do not trigger an overflow.

Casper Norrbin has updated the pull request incrementally with one additional commit since the last revision:

  newline at eof

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20808/files
  - new: https://git.openjdk.org/jdk/pull/20808/files/67705973..0b418a4c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20808&range=07
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20808&range=06-07

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/20808.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20808/head:pull/20808

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


More information about the hotspot-dev mailing list