Integrated: 8357919: Arena::allocate returns segments with address zero if the segment length is zero after JDK-8345687

Per Minborg pminborg at openjdk.org
Wed May 28 11:00:55 UTC 2025


On Wed, 28 May 2025 09:06:57 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> After https://bugs.openjdk.org/browse/JDK-8345687 was integrated, zero-length segments always have an address of zero. This may cause problems in certain native methods that can receive segments and/or buffers derived from segments.
> 
> This PR also guards for overflow for extremely large allocation requests.

This pull request has now been integrated.

Changeset: 0671309d
Author:    Per Minborg <pminborg at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0671309de530822cc261e8251fc425c8aa3cc487
Stats:     28 lines in 2 files changed: 28 ins; 0 del; 0 mod

8357919: Arena::allocate returns segments with address zero if the segment length is zero after JDK-8345687

Reviewed-by: mcimadamore

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

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


More information about the core-libs-dev mailing list