1 Star 0 Fork 81

胡波道/openjdk-1.8.0

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
8141356.patch 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
jdkboy 提交于 2020-03-21 11:30 . delete redundant info
From 81c4aa5c13e38b701a0ace0765ab153b750a1e7e Mon Sep 17 00:00:00 2001
Date: Tue, 25 Jun 2019 10:06:19 +0000
Subject: [PATCH] backport of JDK-8141356
Summary: Explicitly stop CMS threads during VM termination
LLT:
Bug url: https://bugs.openjdk.java.net/browse/JDK-8141356
---
hotspot/src/share/vm/memory/genCollectedHeap.cpp | 8 ++++++++
hotspot/src/share/vm/memory/genCollectedHeap.hpp | 3 +++
2 files changed, 11 insertions(+)
diff --git a/hotspot/src/share/vm/memory/genCollectedHeap.cpp b/hotspot/src/share/vm/memory/genCollectedHeap.cpp
index f7c9591d90..eeb56f02a1 100644
--- a/hotspot/src/share/vm/memory/genCollectedHeap.cpp
+++ b/hotspot/src/share/vm/memory/genCollectedHeap.cpp
@@ -1408,3 +1408,11 @@ jlong GenCollectedHeap::millis_since_last_gc() {
}
return retVal;
}
+
+void GenCollectedHeap::stop() {
+#if INCLUDE_ALL_GCS
+ if (UseConcMarkSweepGC) {
+ ConcurrentMarkSweepThread::stop();
+ }
+#endif
+}
diff --git a/hotspot/src/share/vm/memory/genCollectedHeap.hpp b/hotspot/src/share/vm/memory/genCollectedHeap.hpp
index 58786eded2..c3eb0db064 100644
--- a/hotspot/src/share/vm/memory/genCollectedHeap.hpp
+++ b/hotspot/src/share/vm/memory/genCollectedHeap.hpp
@@ -538,6 +538,9 @@ private:
protected:
virtual void gc_prologue(bool full);
virtual void gc_epilogue(bool full);
+
+public:
+ void stop();
};
#endif // SHARE_VM_MEMORY_GENCOLLECTEDHEAP_HPP
--
2.19.0-rc1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hu_bo_dao/openjdk-1.8.0.git
git@gitee.com:hu_bo_dao/openjdk-1.8.0.git
hu_bo_dao
openjdk-1.8.0
openjdk-1.8.0
master

搜索帮助