8252545: runtime/ErrorHandling/TestHeapDumpOnOutOfMemoryError.java timed out
Reviewed-by: stuefe, coleenp
This commit is contained in:
parent
edd27074af
commit
e080ce9212
test/hotspot/jtreg
@ -277,7 +277,6 @@ tier1_runtime = \
|
||||
-runtime/ConstantPool/IntfMethod.java \
|
||||
-runtime/ErrorHandling/CreateCoredumpOnCrash.java \
|
||||
-runtime/ErrorHandling/TestHeapDumpOnOutOfMemoryError.java \
|
||||
-runtime/ErrorHandling/TestHeapDumpOnOutOfMemoryErrorInMetaspace.java \
|
||||
-runtime/ErrorHandling/TimeoutInErrorHandlingTest.java \
|
||||
-runtime/InvocationTests \
|
||||
-runtime/logging/MonitorMismatchTest.java \
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2021, 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
|
||||
@ -23,9 +23,11 @@
|
||||
|
||||
/*
|
||||
* @test TestHeapDumpOnOutOfMemoryError
|
||||
* @summary Test verifies that -XX:HeapDumpOnOutOfMemoryError dump heap when OutOfMemory is thrown in heap
|
||||
* @summary Test verifies that -XX:HeapDumpOnOutOfMemoryError dumps heap when OutOfMemory is thrown in heap
|
||||
* and when OutOfMemory is thrown in metaspace.
|
||||
* @library /test/lib
|
||||
* @run driver TestHeapDumpOnOutOfMemoryError run heap
|
||||
* @run driver/timeout=240 TestHeapDumpOnOutOfMemoryError run metaspace
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Asserts;
|
||||
@ -44,7 +46,7 @@ public class TestHeapDumpOnOutOfMemoryError {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
if (args.length == 1) {
|
||||
try {
|
||||
try {
|
||||
if (args[0].equals(HEAP_OOME)) {
|
||||
Object[] oa = new Object[Integer.MAX_VALUE];
|
||||
for(int i = 0; i < oa.length; i++) {
|
||||
@ -79,6 +81,7 @@ public class TestHeapDumpOnOutOfMemoryError {
|
||||
// MaxMetaspaceSize=16M - ~12-15K classes - ~12sec runtime with all verifications
|
||||
// MaxMetaspaceSize=16M - ~12-15K classes - VerifyDependencies off - ~3seconds on ppc
|
||||
"-XX:MaxMetaspaceSize=16m",
|
||||
"-Xmx128m",
|
||||
Platform.isDebugBuild() ? "-XX:-VerifyDependencies" : "-Dx",
|
||||
TestHeapDumpOnOutOfMemoryError.class.getName(), type);
|
||||
|
||||
|
@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018, 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
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @test TestHeapDumpOnOutOfMemoryErrorInMetaspace
|
||||
* @summary Test verifies that -XX:HeapDumpOnOutOfMemoryError dump heap when OutOfMemory is thrown in metaspace
|
||||
* @library /test/lib
|
||||
* @run driver/timeout=240 TestHeapDumpOnOutOfMemoryError run metaspace
|
||||
*/
|
Loading…
x
Reference in New Issue
Block a user