1 Star 0 Fork 80

xuyuchao/openjdk-1.8.0

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Fix-AsyncGCLog-s-content-consistent-bug.patch 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
eapen 提交于 2023-01-11 10:00 . I69W1Y: Add feature and bug fix for 8u352
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuyuchao/openjdk-1.8.0.git
git@gitee.com:xuyuchao/openjdk-1.8.0.git
xuyuchao
openjdk-1.8.0
openjdk-1.8.0
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891