RFR: 8318127: align_up has potential overflow [v8]

duke duke at openjdk.org
Wed Nov 27 09:57:45 UTC 2024


On Thu, 10 Oct 2024 15:12:57 GMT, Casper Norrbin <cnorrbin at openjdk.org> wrote:

>> 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

@caspernorrbin 
Your change (at version 0b418a4c6afa3a5dbb3a51a76799985e0e8c1775) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk/pull/20808#issuecomment-2503426096


More information about the hotspot-dev mailing list