Skip to content

Commit 1d39249

Browse files
committed
8339834: Replace usages of -mx and -ms in some tests
Reviewed-by: aivanov, ascarpino, prr, dholmes
1 parent c3711dc commit 1d39249

File tree

9 files changed

+17
-22
lines changed

9 files changed

+17
-22
lines changed

src/java.base/share/classes/sun/security/util/Cache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* However, note that because of the way SoftReferences are implemented in
6060
* HotSpot at the moment, this may not work perfectly as it clears them fairly
6161
* eagerly. Performance may be improved if the Java heap size is set to larger
62-
* value using e.g. java -ms64M -mx128M foo.Test
62+
* value using e.g. java -Xms64M -Xmx128M foo.Test
6363
*
6464
* Cache sizing: the memory cache is implemented on top of a LinkedHashMap.
6565
* In its current implementation, the number of buckets (NOT entries) in

test/hotspot/jtreg/resourcehogs/compiler/intrinsics/string/TestStringIntrinsics2LargeArray.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2016 SAP SE. All rights reserved.
44
* Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
55
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -35,7 +35,7 @@
3535
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
3636
*
3737
* @run main/othervm
38-
* -mx8G
38+
* -Xmx8G
3939
* -Xbootclasspath/a:.
4040
* -Xmixed
4141
* -XX:+UnlockDiagnosticVMOptions

test/jdk/java/beans/Introspector/8159696/UnloadClassBeanInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2024, 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
@@ -38,7 +38,7 @@
3838
* @bug 8159696
3939
* @library /javax/swing/regtesthelpers
4040
* @compile ./stub/Stub.java
41-
* @run main/othervm -mx32M UnloadClassBeanInfo
41+
* @run main/othervm -Xmx32M UnloadClassBeanInfo
4242
*/
4343
public class UnloadClassBeanInfo {
4444

test/jdk/java/beans/Introspector/Test5102804.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2010, 2024, 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
@@ -25,8 +25,7 @@
2525
* @test
2626
* @bug 5102804
2727
* @summary Tests memory leak
28-
* @author Sergey Malenkov
29-
* @run main/othervm -ms16m -mx16m Test5102804
28+
* @run main/othervm -Xms16m -Xmx16m Test5102804
3029
*/
3130

3231
import java.beans.BeanInfo;

test/jdk/java/beans/Introspector/Test8027905.java

Lines changed: 2 additions & 3 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, 2024, 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,8 +27,7 @@
2727
* @test
2828
* @bug 8027905
2929
* @summary Tests that GC does not affect a property type
30-
* @author Sergey Malenkov
31-
* @run main/othervm -mx16m Test8027905
30+
* @run main/othervm -Xmx16m Test8027905
3231
*/
3332

3433
public class Test8027905 {

test/jdk/java/beans/XMLEncoder/Test4646747.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2024, 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
@@ -25,8 +25,7 @@
2525
* @test
2626
* @bug 4646747
2727
* @summary Tests that persistence delegate is correct after memory stress
28-
* @author Mark Davidson
29-
* @run main/othervm -ms16m -mx16m Test4646747
28+
* @run main/othervm -Xms16m -Xmx16m Test4646747
3029
*/
3130

3231
import java.beans.DefaultPersistenceDelegate;

test/jdk/java/lang/ref/SoftReference/Pin.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2024, 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
@@ -24,9 +24,7 @@
2424
/* @test
2525
* @bug 4076287
2626
* @summary Invoking get on a SoftReference shouldn't pin the referent
27-
* @run main/othervm -ms16m -mx16m Pin
28-
* @author Peter Jones
29-
* @author Mark Reinhold
27+
* @run main/othervm -Xms16m -Xmx16m Pin
3028
*/
3129

3230

test/jdk/java/nio/Buffer/Chew.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2024, 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
@@ -26,7 +26,7 @@
2626
* @summary Ensure that direct memory can be unreserved
2727
* as the reserving thread sleeps
2828
*
29-
* @run main/othervm -mx16M Chew
29+
* @run main/othervm -Xmx16M Chew
3030
*/
3131

3232
import java.nio.*;

test/jdk/tools/jimage/JImageToolTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2024, 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
@@ -42,7 +42,7 @@
4242
public class JImageToolTest {
4343
private static void jimage(String... jimageArgs) throws Exception {
4444
ArrayList<String> args = new ArrayList<>();
45-
args.add("-ms64m");
45+
args.add("-Xms64m");
4646
args.add("jdk.tools.jimage.Main");
4747
args.addAll(Arrays.asList(jimageArgs));
4848

0 commit comments

Comments
 (0)