-
Bug
-
Resolution: Fixed
-
P4
-
11, 12, 13
-
b14
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8221774 | 12.0.2 | Aleksey Shipilev | P4 | Resolved | Fixed | b02 |
JDK-8235283 | 11.0.7-oracle | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
JDK-8221832 | 11.0.4 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
Current jdk/java/lang/String/StringRepeat.java test requests -Xmx4G. This is excessive, as test needs only 700M on default x86_64, and 1400M with -XX:-CompactStrings and -XX:-UseCompressedOops.
Requesting 4G makes test fail on x86_32, which is very unfortunate.
Reducing -Xmx2g makes test pass on x86_32 without breaking x86_64:
diff -r d25b24c70126 test/jdk/java/lang/String/StringRepeat.java
--- a/test/jdk/java/lang/String/StringRepeat.java Mon Mar 25 00:57:03 2019 -0400
+++ b/test/jdk/java/lang/String/StringRepeat.java Mon Mar 25 12:24:08 2019 +0100
@@ -22,11 +22,11 @@
*/
/*
* @test
* @summary This exercises String#repeat patterns and limits.
- * @run main/othervm -Xmx4G StringRepeat
+ * @run main/othervm -Xmx2g StringRepeat
*/
import java.nio.CharBuffer;
public class StringRepeat {
Requesting 4G makes test fail on x86_32, which is very unfortunate.
Reducing -Xmx2g makes test pass on x86_32 without breaking x86_64:
diff -r d25b24c70126 test/jdk/java/lang/String/StringRepeat.java
--- a/test/jdk/java/lang/String/StringRepeat.java Mon Mar 25 00:57:03 2019 -0400
+++ b/test/jdk/java/lang/String/StringRepeat.java Mon Mar 25 12:24:08 2019 +0100
@@ -22,11 +22,11 @@
*/
/*
* @test
* @summary This exercises String#repeat patterns and limits.
- * @run main/othervm -Xmx4G StringRepeat
+ * @run main/othervm -Xmx2g StringRepeat
*/
import java.nio.CharBuffer;
public class StringRepeat {
- backported by
-
JDK-8221774 java/lang/String/StringRepeat.java test requests too much heap
- Resolved
-
JDK-8221832 java/lang/String/StringRepeat.java test requests too much heap
- Resolved
-
JDK-8235283 java/lang/String/StringRepeat.java test requests too much heap
- Resolved
- relates to
-
JDK-8265421 java/lang/String/StringRepeat.java test is missing a memory requirement
- Resolved
-
JDK-8197594 String#repeat
- Resolved