--- old/test/java/lang/management/MemoryMXBean/LowMemoryTest.java 2014-12-18 17:16:44.494196348 +0400 +++ new/test/java/lang/management/MemoryMXBean/LowMemoryTest.java 2014-12-18 17:16:44.322196353 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2010, 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 @@ -69,10 +69,13 @@ // Prevent G1 from selecting a large heap region size, // since that would change the young gen size. final String g1Flag = "-XX:G1HeapRegionSize=1m"; - RunUtil.runTestClearGcOpts(main, nmFlag, lpFlag, "-XX:+UseSerialGC"); - RunUtil.runTestClearGcOpts(main, nmFlag, lpFlag, "-XX:+UseParallelGC"); - RunUtil.runTestClearGcOpts(main, nmFlag, lpFlag, "-XX:+UseG1GC", g1Flag); - RunUtil.runTestClearGcOpts(main, nmFlag, lpFlag, "-XX:+UseConcMarkSweepGC"); + // Start test execution with -XX:-ExplicitGCInvokesConcurrent + // Test is not targeted to work with -XX:+ExplicitGCInvokesConcurrent + final String noExplictGC = "-XX:-ExplicitGCInvokesConcurrent"; + RunUtil.runTestClearGcOpts(main, nmFlag, lpFlag, "-XX:+UseSerialGC", noExplictGC); + RunUtil.runTestClearGcOpts(main, nmFlag, lpFlag, "-XX:+UseParallelGC", noExplictGC); + RunUtil.runTestClearGcOpts(main, nmFlag, lpFlag, "-XX:+UseG1GC", g1Flag, noExplictGC); + RunUtil.runTestClearGcOpts(main, nmFlag, lpFlag, "-XX:+UseConcMarkSweepGC", noExplictGC); } private static volatile boolean listenerInvoked = false;