Skip to content

Commit 24765e4

Browse files
Andrew LeonardRoger Riggs
authored andcommitted
8253285: Some java/util/StringJoiner tests do not explicitly specify required -XX:+CompactStrings
Reviewed-by: rriggs, jlaskey
1 parent 81e2cf8 commit 24765e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/jdk/java/util/StringJoiner/MergeTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -27,7 +27,7 @@
2727
* @summary test StringJoiner::merge
2828
* @modules java.base/jdk.internal.util
2929
* @requires os.maxMemory > 4G
30-
* @run testng/othervm -Xmx4g MergeTest
30+
* @run testng/othervm -Xmx4g -XX:+CompactStrings MergeTest
3131
*/
3232

3333
import java.util.StringJoiner;

test/jdk/java/util/StringJoiner/StringJoinerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @summary tests StringJoinerTest
2727
* @modules java.base/jdk.internal.util
2828
* @requires os.maxMemory > 4G
29-
* @run testng/othervm -Xmx4g StringJoinerTest
29+
* @run testng/othervm -Xmx4g -XX:+CompactStrings StringJoinerTest
3030
* @author Jim Gish
3131
*/
3232
import java.util.ArrayList;

0 commit comments

Comments
 (0)