[TESTBUG] Testing of Unsafe native (re)allocation is sensitive to current JDK native memory use

XMLWordPrintable

      The AllocateMemory and Reallocat tests are both started with XX:MallocLimit=other:100m:oom.

      These tests then expect OOM when allocating (or reallocating) 1000 * 1024 * 1024 bytes.

      However, if the native memory used by the JVM for some reason is reduced, the allocations will succeed and the tests starts failing.

      This seems brittle, it would be better to attempt allocating 101m of memory if the limit is 100m.

            Assignee:
            Eirik Bjørsnøs
            Reporter:
            Eirik Bjørsnøs
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: