mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-05 21:50:20 +00:00
8159899: [TEST_BUG] Timeout in tests when OOM should be generated
Reviewed-by: yan, ssadetsky
This commit is contained in:
parent
964fd1e4e9
commit
c322804814
@ -29,7 +29,7 @@
|
||||
* @author Pavel Porvatov
|
||||
* @library ../../regtesthelpers
|
||||
* @build Util
|
||||
* @run main bug6464022
|
||||
* @run main/othervm -mx128m bug6464022
|
||||
*/
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
* @author Alexander Potochkin
|
||||
* @library ../../regtesthelpers
|
||||
* @build Util
|
||||
* @run main bug6795356
|
||||
* @run main/othervm -mx128m bug6795356
|
||||
*/
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
@ -81,7 +81,8 @@ public class Util {
|
||||
|
||||
/**
|
||||
* Fills the heap until OutOfMemoryError occurs. This method is useful for
|
||||
* WeakReferences removing.
|
||||
* WeakReferences removing. To minimize the amount of filled memory the
|
||||
* test should provide reasonable heap size via -mx option.
|
||||
*/
|
||||
public static void generateOOME() {
|
||||
List<Object> bigLeak = new LinkedList<Object>();
|
||||
|
||||
@ -31,7 +31,7 @@ import sun.java2d.DisposerRecord;
|
||||
* @test
|
||||
* @bug 8129457
|
||||
* @summary Check Disposer disposes all objects without any memory leaks
|
||||
* @run main/othervm TestDisposerLeak
|
||||
* @run main/othervm -mx128m TestDisposerLeak
|
||||
* @modules java.desktop/sun.java2d
|
||||
*/
|
||||
public final class TestDisposerLeak {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user