Integrated: 8256435: [TESTBUG] java/foreign/TestHandshake.java fails with direct buffer memory OOM
Nick Gasson
ngasson at openjdk.java.net
Wed Nov 18 02:11:07 UTC 2020
On Tue, 17 Nov 2020 09:07:03 GMT, Nick Gasson <ngasson at openjdk.org> wrote:
> I ran this test on a machine with 224 logical CPUs and it fails with:
>
> ITERATION 3
> test TestHandshake.testHandshake("SegmentMismatchAccessor", TestHandshake$$Lambda$57/0x00000001000e7968 at 37c4b344): failure
> java.lang.OutOfMemoryError: Cannot reserve 1000000 bytes of direct buffer memory (allocated: 536008192, limit: 536870912)
>
> SegmentMismatchAccessor allocates a 1MB native segment for each CPU on
> each iteration. This can quickly reach the allocation limit if there is
> no intervening GC. Explicitly close the segment after each iteration to
> release the memory.
This pull request has now been integrated.
Changeset: 26a1ec1b
Author: Nick Gasson <ngasson at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/26a1ec1b
Stats: 9 lines in 1 file changed: 8 ins; 0 del; 1 mod
8256435: [TESTBUG] java/foreign/TestHandshake.java fails with direct buffer memory OOM
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.java.net/jdk/pull/1254
More information about the core-libs-dev
mailing list