8339835: Replace usages of -mx and -ms in some client-libs tests

Reviewed-by: azvegint, prr
This commit is contained in:
Jaikiran Pai 2024-09-12 02:06:09 +00:00
parent 1d39249231
commit 6d4bd6c6b6
11 changed files with 21 additions and 21 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2008, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
@summary Tests that windows are removed from owner's child windows list @summary Tests that windows are removed from owner's child windows list
@modules java.desktop/java.awt:open @modules java.desktop/java.awt:open
@author art: area=awt.toplevel @author art: area=awt.toplevel
@run main/othervm -mx128m OwnedWindowsLeak @run main/othervm -Xmx128m OwnedWindowsLeak
*/ */
import java.awt.Frame; import java.awt.Frame;

View File

@ -36,7 +36,7 @@ import javax.print.PrintServiceLookup;
* @summary Tests custom class loader cleanup * @summary Tests custom class loader cleanup
* @library /javax/swing/regtesthelpers * @library /javax/swing/regtesthelpers
* @build Util * @build Util
* @run main/timeout=60/othervm -mx32m FlushCustomClassLoader * @run main/timeout=60/othervm -Xmx32m FlushCustomClassLoader
*/ */
public final class FlushCustomClassLoader { public final class FlushCustomClassLoader {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -46,7 +46,7 @@ import static javax.sound.sampled.AudioFileFormat.Type.WAVE;
* @test * @test
* @bug 8204454 * @bug 8204454
* @summary URL.getContent() should return AudioClip for supported formats * @summary URL.getContent() should return AudioClip for supported formats
* @run main/othervm -mx128m AudioContentHandlers * @run main/othervm -Xmx128m AudioContentHandlers
*/ */
public final class AudioContentHandlers { public final class AudioContentHandlers {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@
* @library ../../regtesthelpers * @library ../../regtesthelpers
* @modules java.desktop/sun.java2d * @modules java.desktop/sun.java2d
* @build Util * @build Util
* @run main/othervm/timeout=1000 -mx128m TwentyThousandTest * @run main/othervm/timeout=1000 -Xmx128m TwentyThousandTest
*/ */
import sun.java2d.Disposer; import sun.java2d.Disposer;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,7 +29,7 @@
* @author Pavel Porvatov * @author Pavel Porvatov
* @library ../../regtesthelpers * @library ../../regtesthelpers
* @build Util * @build Util
* @run main/othervm -mx128m bug6464022 * @run main/othervm -Xmx128m bug6464022
*/ */
import javax.swing.*; import javax.swing.*;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2009, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @author Alexander Potochkin * @author Alexander Potochkin
* @library ../../regtesthelpers * @library ../../regtesthelpers
* @build Util * @build Util
* @run main/othervm -mx128m bug6795356 * @run main/othervm -Xmx128m bug6795356
*/ */
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -32,7 +32,7 @@ import javax.swing.border.TitledBorder;
* @summary Verifies TitledBorder's memory leak * @summary Verifies TitledBorder's memory leak
* @library /javax/swing/regtesthelpers * @library /javax/swing/regtesthelpers
* @build Util * @build Util
* @run main/timeout=60/othervm -mx32m TestTitledBorderLeak * @run main/timeout=60/othervm -Xmx32m TestTitledBorderLeak
*/ */
public final class TestTitledBorderLeak { public final class TestTitledBorderLeak {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -82,7 +82,7 @@ public class Util {
/** /**
* Fills the heap until OutOfMemoryError occurs. This method is useful for * Fills the heap until OutOfMemoryError occurs. This method is useful for
* WeakReferences removing. To minimize the amount of filled memory the * WeakReferences removing. To minimize the amount of filled memory the
* test should provide reasonable heap size via -mx option. * test should provide reasonable heap size via -Xmx option.
*/ */
public static void generateOOME() { public static void generateOOME() {
List<Object> bigLeak = new LinkedList<Object>(); List<Object> bigLeak = new LinkedList<Object>();

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -31,7 +31,7 @@ import sun.java2d.DisposerRecord;
* @test * @test
* @bug 8129457 * @bug 8129457
* @summary Check Disposer disposes all objects without any memory leaks * @summary Check Disposer disposes all objects without any memory leaks
* @run main/othervm -mx128m TestDisposerLeak * @run main/othervm -Xmx128m TestDisposerLeak
* @modules java.desktop/sun.java2d * @modules java.desktop/sun.java2d
*/ */
public final class TestDisposerLeak { public final class TestDisposerLeak {

View File

@ -33,7 +33,7 @@ import sun.java2d.DisposerRecord;
* @test * @test
* @bug 8289208 * @bug 8289208
* @summary Verifies Disposer robustness in a multi-threaded environment. * @summary Verifies Disposer robustness in a multi-threaded environment.
* @run main/othervm -mx128m TestDisposerRace * @run main/othervm -Xmx128m TestDisposerRace
* @modules java.desktop/sun.java2d * @modules java.desktop/sun.java2d
*/ */
public final class TestDisposerRace { public final class TestDisposerRace {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -35,9 +35,9 @@ import javax.imageio.ImageIO;
/** /**
* @test * @test
* @summary Simple crash rendering test using huge GeneralPaths with the Marlin renderer * @summary Simple crash rendering test using huge GeneralPaths with the Marlin renderer
* @run main/othervm -mx512m CrashTest * @run main/othervm -Xmx512m CrashTest
* @ignore tests that take a long time and consumes 5Gb memory * @ignore tests that take a long time and consumes 5Gb memory
* @run main/othervm -ms4g -mx4g CrashTest -slow * @run main/othervm -Xms4g -Xmx4g CrashTest -slow
*/ */
public class CrashTest { public class CrashTest {