Mercurial > hg > openjdk > aarch64-port > jdk
changeset 10735:0de95bec00f2
8062450: Timeout in LowMemoryTest.java
Reviewed-by: dholmes
author | jbachorik |
---|---|
date | Mon, 12 Jan 2015 11:01:23 +0100 |
parents | 1fb044a7906f |
children | d62043a2a8d3 |
files | test/java/lang/management/MemoryMXBean/LowMemoryTest.java |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/test/java/lang/management/MemoryMXBean/LowMemoryTest.java Thu Apr 09 17:43:36 2015 -0700 +++ b/test/java/lang/management/MemoryMXBean/LowMemoryTest.java Mon Jan 12 11:01:23 2015 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -33,15 +33,16 @@ * @library /lib/testlibrary/ * @build LowMemoryTest MemoryUtil RunUtil * @run main/timeout=600 LowMemoryTest + * @requires vm.opt.ExplicitGCInvokesConcurrent != "true" + * @requires vm.opt.ExplicitGCInvokesConcurrentAndUnloadsClasses != "true" + * @requires vm.opt.DisableExplicitGC != "true" */ -import com.sun.management.DiagnosticCommandMBean; import java.lang.management.*; import java.util.*; import java.util.concurrent.Phaser; import javax.management.*; import javax.management.openmbean.CompositeData; -import sun.management.ManagementFactoryHelper; public class LowMemoryTest { private static final MemoryMXBean mm = ManagementFactory.getMemoryMXBean();