Integrated: 8304836: Make MALLOC_MIN4 macro more robust

Naoto Sato naoto at openjdk.org
Mon Apr 24 15:41:06 UTC 2023


On Thu, 20 Apr 2023 18:39:29 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> The current macro assumes the argument is `jint` because all locations pass `jint`. However, this would not work if a wider type such as `jlong` is passed. Removing the `unsigned` cast and make the condition explicit would make the macro more robust.

This pull request has now been integrated.

Changeset: f32adaf8
Author:    Naoto Sato <naoto at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f32adaf89fede5262db2cb5517fc649a87e0714d
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8304836: Make MALLOC_MIN4 macro more robust

Reviewed-by: bchristi

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

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


More information about the core-libs-dev mailing list