RFR: 8340728: Test vmTestbase/gc/memory/Nio/Nio.java is failing to allocate all direct buffer memory [v2]
Brian Burkhalter
bpb at openjdk.org
Mon Oct 28 22:09:14 UTC 2024
On Tue, 22 Oct 2024 19:15:51 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> First attempt to allocate `VM.maxDirectMemory()` bytes of direct buffer memory, decreasing by 1024 bytes for each `OutOfMemoryError` until allocation succeeds.
>
> Brian Burkhalter has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:
>
> - Merge
> - 8340728: Test vmTestbase/gc/memory/Nio/Nio.java is failing to allocate all direct buffer memory
ee76ec1 changes the test to fail if the amount of memory able to be allocated is less than a threshold, in this case,`MAX_VM_SIZE - 8*1024`. This change passed 30 repeats on all test platforms.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21623#issuecomment-2442739459
More information about the hotspot-gc-dev
mailing list