changeset 56047:948644e20013

8223254: DataOutputStream/WriteUTF.java fails due to "OutOfMemoryError: Java heap space" Reviewed-by: lancea, rriggs
author bpb
date Thu, 02 May 2019 14:15:09 -0700
parents d890ba18f64b
children 0bbac18e3959
files test/jdk/java/io/DataOutputStream/WriteUTF.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/java/io/DataOutputStream/WriteUTF.java	Thu May 02 17:08:03 2019 -0400
+++ b/test/jdk/java/io/DataOutputStream/WriteUTF.java	Thu May 02 14:15:09 2019 -0700
@@ -22,10 +22,10 @@
  */
 
 /* @test
- * @bug 4260284 8219196
+ * @bug 4260284 8219196 8223254
  * @summary Test if DataOutputStream will overcount written field.
- * @requires (sun.arch.data.model == "64" & os.maxMemory >= 3g)
- * @run testng/othervm -Xmx3g WriteUTF
+ * @requires (sun.arch.data.model == "64" & os.maxMemory >= 4g)
+ * @run testng/othervm -Xmx4g WriteUTF
  */
 
 import java.io.ByteArrayOutputStream;
@@ -60,7 +60,7 @@
     }
 
     // Without 8219196 fix, throws ArrayIndexOutOfBoundsException instead of
-    // expected UTFDataFormatException. Requires 3GB of heap (-Xmx3g) to run
+    // expected UTFDataFormatException. Requires 4GB of heap (-Xmx4g) to run
     // without throwing an OutOfMemoryError.
     @Test(expectedExceptions = UTFDataFormatException.class)
     public void arrayIndexOutOfBoundsException() throws IOException {