On Mon, 26 Jan 2026 18:22:30 GMT, Eirik Bjørsnøs <[email protected]> wrote:
> Please consider this PR which bumps the size of attempted allocations with 1m > such that the tests are less brittle to JDK-internal native memory use. > > These tests currently run with `XX:MallocLimit=other:100m:oom`, but also try > to allocate `100 * 1024 * 1024` bytes. > > With current JDK-internal native memory use, these allocation fail with OOM. > When the JDK itself uses less memory, these tests start failing because > allocation succeeds. > > I think we should simply try to allocate one more megabyte than the > configured limit, which should cause the allocation to fail regardless of > internal JVM native memory use. This pull request has now been integrated. Changeset: 08ff2bf4 Author: Eirik Bjørsnøs <[email protected]> URL: https://git.openjdk.org/jdk/commit/08ff2bf4d0541f7b3fd7c4a9c7f386cb710510af Stats: 4 lines in 2 files changed: 0 ins; 0 del; 4 mod 8376398: [TESTBUG] Testing of Unsafe native (re)allocation is sensitive to current JDK native memory use Reviewed-by: azafari ------------- PR: https://git.openjdk.org/jdk/pull/29429
