changeset 11245:e214dfeba0ff

8066122: CollectionUsageThreshold.java times out when run with -XX:+ExplicitGCInvokesConcurrent Summary: CollectionUsageThreshold.java hangs due to VM performs concurrent GC with -XX:+ExplicitGCInvokesConcurrent flag, as result - notification is not received. Excluded test execution with -XX:+ExplicitGCInvokesConcurrent. Reviewed-by: dfazunen, tschatzl Contributed-by: Michail Chernov <michail.chernov@oracle.com>
author vlivanov
date Thu, 15 Jan 2015 19:16:17 +0400
parents 803d8d4d7595
children feac2f926a20
files test/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java test/java/lang/management/MemoryMXBean/LowMemoryTest.java
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java	Thu Jan 15 10:56:24 2015 +0000
+++ b/test/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java	Thu Jan 15 19:16:17 2015 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2014, 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
@@ -32,6 +32,7 @@
  *
  * @library /lib/testlibrary/
  * @build jdk.testlibrary.* CollectionUsageThreshold MemoryUtil RunUtil
+ * @requires vm.opt.ExplicitGCInvokesConcurrent == "false" | vm.opt.ExplicitGCInvokesConcurrent == "null"
  * @run main/timeout=300 CollectionUsageThreshold
  */
 
--- a/test/java/lang/management/MemoryMXBean/LowMemoryTest.java	Thu Jan 15 10:56:24 2015 +0000
+++ b/test/java/lang/management/MemoryMXBean/LowMemoryTest.java	Thu Jan 15 19:16:17 2015 +0400
@@ -32,6 +32,7 @@
  *
  * @library /lib/testlibrary/
  * @build jdk.testlibrary.* LowMemoryTest MemoryUtil RunUtil
+ * @requires vm.opt.ExplicitGCInvokesConcurrent == "false" | vm.opt.ExplicitGCInvokesConcurrent == "null"
  * @run main/timeout=600 LowMemoryTest
  */