openjdk-1.8.0/print-more-information-when-AbortVMOnException.patch

25 lines
961 B
Diff
Raw Normal View History

2023-08-01 15:30:06 +08:00
From e6def0e384c2d21b2b153250153c47780fd640e4 Mon Sep 17 00:00:00 2001
Date: Wed, 5 Jul 2023 16:36:11 +0800
Subject: [PATCH] [Huawei]Print more information when AbortVMOnException
---
hotspot/src/share/vm/utilities/exceptions.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hotspot/src/share/vm/utilities/exceptions.cpp b/hotspot/src/share/vm/utilities/exceptions.cpp
index 8b25cf8c4..eabe3b9ee 100644
--- a/hotspot/src/share/vm/utilities/exceptions.cpp
+++ b/hotspot/src/share/vm/utilities/exceptions.cpp
@@ -483,7 +483,7 @@ void Exceptions::debug_check_abort(const char *value_string, const char* message
strstr(AbortVMOnException, value_string)) {
if (AbortVMOnExceptionMessage == NULL || (message != NULL &&
strstr(message, AbortVMOnExceptionMessage))) {
- fatal(err_msg("Saw %s, aborting", value_string));
+ fatal(err_msg("Saw %s : %s, aborting", value_string, message));
}
}
}
--
2.12.3