Skip to content

Commit faa45e8

Browse files
author
Satyen Subramaniam
committed
8331389: runtime/ErrorHandling/TestDwarf.java fails with "Crash JVM should not exit gracefully"
Backport-of: a8e62af733cb1acc1370561c9dd374b3f9c2c294
1 parent 52a0b11 commit faa45e8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/hotspot/jtreg/runtime/ErrorHandling/TestDwarf.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -108,13 +108,12 @@ public static void main(String[] args) throws Exception {
108108
// Crash the VM in different ways in order to verify that DWARF parsing is able to print the source information
109109
// in the hs_err_files for each VM and C stack frame.
110110
private static void test() throws Exception {
111-
runAndCheck(new Flags("-Xcomp", "-XX:CICrashAt=1", "--version"));
111+
runAndCheck(new Flags("-Xcomp", "-XX:+CICountNative", "-XX:CICrashAt=1", "--version"));
112112
runAndCheck(new Flags("-Xmx100M", "-XX:ErrorHandlerTest=15", "-XX:TestCrashInErrorHandler=14", "--version"));
113113
runAndCheck(new Flags("-XX:+CrashGCForDumpingJavaThread", "--version"));
114114
runAndCheck(new Flags("-Xmx10m", "-XX:+CrashOnOutOfMemoryError", TestDwarf.class.getCanonicalName(), "outOfMemory"));
115-
// Use -XX:-TieredCompilation as C1 is currently not aborting the VM (JDK-8264899).
116115
runAndCheck(new Flags(TestDwarf.class.getCanonicalName(), "unsafeAccess"));
117-
runAndCheck(new Flags("-XX:-TieredCompilation", "-XX:+UnlockDiagnosticVMOptions", "-XX:AbortVMOnException=MyException",
116+
runAndCheck(new Flags("-XX:+UnlockDiagnosticVMOptions", "-XX:AbortVMOnException=MyException",
118117
TestDwarf.class.getCanonicalName(), "abortVMOnException"));
119118
if (Platform.isX64() || Platform.isX86()) {
120119
// Not all platforms raise SIGFPE but x86_32 and x86_64 do.

0 commit comments

Comments
 (0)