Integrated: 8288761: SegmentAllocator:allocate(long bytesSize) not throwing IAEx when bytesSize < 0
Maurizio Cimadamore
mcimadamore at openjdk.org
Tue Jun 21 21:03:34 UTC 2022
On Mon, 20 Jun 2022 21:22:42 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> The various SegmentAllocator subclasses do not check for the constraints mentioned in the javadoc.
> This patch pulls the checks into a common routine in the Utils class, and then call that check routine from all the `allocate` implementations.
This pull request has now been integrated.
Changeset: d7b43af5
Author: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.org/jdk19/commit/d7b43af5914d88e5410f33db8b56f4dabdfec25d
Stats: 59 lines in 5 files changed: 43 ins; 13 del; 3 mod
8288761: SegmentAllocator:allocate(long bytesSize) not throwing IAEx when bytesSize < 0
Reviewed-by: psandoz
-------------
PR: https://git.openjdk.org/jdk19/pull/50
More information about the core-libs-dev
mailing list