From 3c67feffb6562a1d7c0dd0a73b04c7f723b52a38 Mon Sep 17 00:00:00 2001 From: ctornqvi Date: Fri, 9 Jan 2015 08:34:32 -0800 Subject: [PATCH] 8068733: [TESTBUG] runtime/Unsafe/Reallocate.java sometimes fails when running with -Xcomp Reviewed-by: coleenp, gtriantafill --- hotspot/test/runtime/Unsafe/Reallocate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hotspot/test/runtime/Unsafe/Reallocate.java b/hotspot/test/runtime/Unsafe/Reallocate.java index e5abe9aa9a..1944203837 100644 --- a/hotspot/test/runtime/Unsafe/Reallocate.java +++ b/hotspot/test/runtime/Unsafe/Reallocate.java @@ -25,7 +25,7 @@ * @test * @bug 8058897 * @library /testlibrary - * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:MallocMaxTestWords=20m Reallocate + * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:MallocMaxTestWords=100m Reallocate */ import com.oracle.java.testlibrary.*; @@ -57,7 +57,7 @@ public class Reallocate { // Make sure we can throw an OOME when we fail to reallocate due to OOM try { - unsafe.reallocateMemory(address, 20 * 1024 * 1024 * 8); + unsafe.reallocateMemory(address, 100 * 1024 * 1024 * 8); } catch (OutOfMemoryError e) { // Expected return; -- GitLab