--- old/test/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java 2014-12-17 19:31:29.235244450 +0400 +++ new/test/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java 2014-12-17 19:31:29.071244456 +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 @@ -66,11 +66,13 @@ */ public static void main(String a[]) throws Throwable { final String main = "CollectionUsageThreshold$TestMain"; - RunUtil.runTestKeepGcOpts(main); - RunUtil.runTestClearGcOpts(main, "-XX:+UseSerialGC"); - RunUtil.runTestClearGcOpts(main, "-XX:+UseParallelGC"); - RunUtil.runTestClearGcOpts(main, "-XX:+UseG1GC"); - RunUtil.runTestClearGcOpts(main, "-XX:+UseConcMarkSweepGC"); + String[] filterExplicitGCOptions = new String[]{"-XX:\\+ExplicitGCInvokesConcurrent"}; + + RunUtil.runTestKeepGcOpts(filterExplicitGCOptions, main); + RunUtil.runTestClearGcOpts(filterExplicitGCOptions, main, "-XX:+UseSerialGC"); + RunUtil.runTestClearGcOpts(filterExplicitGCOptions, main, "-XX:+UseParallelGC"); + RunUtil.runTestClearGcOpts(filterExplicitGCOptions, main, "-XX:+UseG1GC"); + RunUtil.runTestClearGcOpts(filterExplicitGCOptions, main, "-XX:+UseConcMarkSweepGC"); } static class PoolRecord {