RFR: 8288761: SegmentAllocator:allocate(long bytesSize) not throwing IAEx when bytesSize < 0
Paul Sandoz
psandoz at openjdk.org
Tue Jun 21 16:18:16 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.
Marked as reviewed by psandoz (Reviewer).
-------------
PR: https://git.openjdk.org/jdk19/pull/50
More information about the core-libs-dev
mailing list