changeset 7758:ca8dbfb7d8c7

8068733: [TESTBUG] runtime/Unsafe/Reallocate.java sometimes fails when running with -Xcomp Reviewed-by: coleenp, gtriantafill
author ctornqvi
date Fri, 09 Jan 2015 08:34:32 -0800
parents b32eb9966732
children c0c96d6b39da
files test/runtime/Unsafe/Reallocate.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/runtime/Unsafe/Reallocate.java	Fri Jan 09 09:26:58 2015 +0100
+++ b/test/runtime/Unsafe/Reallocate.java	Fri Jan 09 08:34:32 2015 -0800
@@ -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 @@
 
         // 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;