Skip to content

Commit 6d4bd6c

Browse files
committed
8339835: Replace usages of -mx and -ms in some client-libs tests
Reviewed-by: azvegint, prr
1 parent 1d39249 commit 6d4bd6c

File tree

11 files changed

+21
-21
lines changed

11 files changed

+21
-21
lines changed

test/jdk/java/awt/Window/OwnedWindowsLeak/OwnedWindowsLeak.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2008, 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
@@ -28,7 +28,7 @@
2828
@summary Tests that windows are removed from owner's child windows list
2929
@modules java.desktop/java.awt:open
3030
@author art: area=awt.toplevel
31-
@run main/othervm -mx128m OwnedWindowsLeak
31+
@run main/othervm -Xmx128m OwnedWindowsLeak
3232
*/
3333

3434
import java.awt.Frame;

test/jdk/javax/print/PrintServiceLookup/FlushCustomClassLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* @summary Tests custom class loader cleanup
3737
* @library /javax/swing/regtesthelpers
3838
* @build Util
39-
* @run main/timeout=60/othervm -mx32m FlushCustomClassLoader
39+
* @run main/timeout=60/othervm -Xmx32m FlushCustomClassLoader
4040
*/
4141
public final class FlushCustomClassLoader {
4242

test/jdk/javax/sound/sampled/Clip/AudioContentHandlers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 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
@@ -46,7 +46,7 @@
4646
* @test
4747
* @bug 8204454
4848
* @summary URL.getContent() should return AudioClip for supported formats
49-
* @run main/othervm -mx128m AudioContentHandlers
49+
* @run main/othervm -Xmx128m AudioContentHandlers
5050
*/
5151
public final class AudioContentHandlers {
5252

test/jdk/javax/swing/JFileChooser/6396844/TwentyThousandTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 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
@@ -30,7 +30,7 @@
3030
* @library ../../regtesthelpers
3131
* @modules java.desktop/sun.java2d
3232
* @build Util
33-
* @run main/othervm/timeout=1000 -mx128m TwentyThousandTest
33+
* @run main/othervm/timeout=1000 -Xmx128m TwentyThousandTest
3434
*/
3535

3636
import sun.java2d.Disposer;

test/jdk/javax/swing/JOptionPane/6464022/bug6464022.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 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
@@ -29,7 +29,7 @@
2929
* @author Pavel Porvatov
3030
* @library ../../regtesthelpers
3131
* @build Util
32-
* @run main/othervm -mx128m bug6464022
32+
* @run main/othervm -Xmx128m bug6464022
3333
*/
3434

3535
import javax.swing.*;

test/jdk/javax/swing/UIDefaults/6795356/bug6795356.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2009, 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
@@ -28,7 +28,7 @@
2828
* @author Alexander Potochkin
2929
* @library ../../regtesthelpers
3030
* @build Util
31-
* @run main/othervm -mx128m bug6795356
31+
* @run main/othervm -Xmx128m bug6795356
3232
*/
3333

3434
import java.lang.ref.WeakReference;

test/jdk/javax/swing/border/TestTitledBorderLeak.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 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
@@ -32,7 +32,7 @@
3232
* @summary Verifies TitledBorder's memory leak
3333
* @library /javax/swing/regtesthelpers
3434
* @build Util
35-
* @run main/timeout=60/othervm -mx32m TestTitledBorderLeak
35+
* @run main/timeout=60/othervm -Xmx32m TestTitledBorderLeak
3636
*/
3737
public final class TestTitledBorderLeak {
3838

test/jdk/javax/swing/regtesthelpers/Util.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 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
@@ -82,7 +82,7 @@ public static boolean compareBufferedImages(BufferedImage bufferedImage0, Buffer
8282
/**
8383
* Fills the heap until OutOfMemoryError occurs. This method is useful for
8484
* WeakReferences removing. To minimize the amount of filled memory the
85-
* test should provide reasonable heap size via -mx option.
85+
* test should provide reasonable heap size via -Xmx option.
8686
*/
8787
public static void generateOOME() {
8888
List<Object> bigLeak = new LinkedList<Object>();

test/jdk/sun/java2d/Disposer/TestDisposerLeak.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 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
@@ -31,7 +31,7 @@
3131
* @test
3232
* @bug 8129457
3333
* @summary Check Disposer disposes all objects without any memory leaks
34-
* @run main/othervm -mx128m TestDisposerLeak
34+
* @run main/othervm -Xmx128m TestDisposerLeak
3535
* @modules java.desktop/sun.java2d
3636
*/
3737
public final class TestDisposerLeak {

test/jdk/sun/java2d/Disposer/TestDisposerRace.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @test
3434
* @bug 8289208
3535
* @summary Verifies Disposer robustness in a multi-threaded environment.
36-
* @run main/othervm -mx128m TestDisposerRace
36+
* @run main/othervm -Xmx128m TestDisposerRace
3737
* @modules java.desktop/sun.java2d
3838
*/
3939
public final class TestDisposerRace {

0 commit comments

Comments
 (0)