39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
From a9c12b1881b227e537089c14bfcc3a00cfc7c1ac Mon Sep 17 00:00:00 2001
|
|
From: eapen <zhangyipeng7@huawei.com>
|
|
Date: Mon, 19 Dec 2022 21:12:55 +0800
|
|
Subject: [PATCH 33/33] I68TO2: Fix AsyncGCLog's content consistent bug
|
|
---
|
|
hotspot/src/share/vm/runtime/java.cpp | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/hotspot/src/share/vm/runtime/java.cpp b/hotspot/src/share/vm/runtime/java.cpp
|
|
index e2194dd..5b82a7a 100644
|
|
--- a/hotspot/src/share/vm/runtime/java.cpp
|
|
+++ b/hotspot/src/share/vm/runtime/java.cpp
|
|
@@ -516,11 +516,6 @@ void before_exit(JavaThread * thread) {
|
|
// Stop concurrent GC threads
|
|
Universe::heap()->stop();
|
|
|
|
- // Stop async log writer thread
|
|
- if (UseAsyncGCLog) {
|
|
- AsyncLogWriter::instance()->stop();
|
|
- }
|
|
-
|
|
// Print GC/heap related information.
|
|
if (PrintGCDetails) {
|
|
Universe::print();
|
|
@@ -584,6 +579,11 @@ void before_exit(JavaThread * thread) {
|
|
}
|
|
}
|
|
|
|
+ // Stop async log writer thread
|
|
+ if (UseAsyncGCLog) {
|
|
+ AsyncLogWriter::instance()->stop();
|
|
+ }
|
|
+
|
|
#undef BEFORE_EXIT_NOT_RUN
|
|
#undef BEFORE_EXIT_RUNNING
|
|
#undef BEFORE_EXIT_DONE
|
|
--
|
|
1.8.3.1
|