27 Star 19 Fork 84

src-openEuler/openjdk-1.8.0

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
add-Do-not-collect_class-when-DynamicCDS-dump.patch 907 Bytes
一键复制 编辑 原始数据 按行查看 历史
DXwangg 提交于 2023-09-26 09:10 +08:00 . Add feature and bug fix for 8u382
From 32657f9ef4e781254fb918adef8802d9998ef083 Mon Sep 17 00:00:00 2001
Date: Fri, 22 Sep 2023 14:44:01 +0800
Subject: add Do-not-collect_class-when-DynamicCDS-dump
---
hotspot/src/share/vm/classfile/dictionary.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hotspot/src/share/vm/classfile/dictionary.cpp b/hotspot/src/share/vm/classfile/dictionary.cpp
index 530c3fdfb..79aaa99e5 100644
--- a/hotspot/src/share/vm/classfile/dictionary.cpp
+++ b/hotspot/src/share/vm/classfile/dictionary.cpp
@@ -209,7 +209,9 @@ void Dictionary::remove_classes_in_error_state(void f(Klass*)) {
_current_class_entry = NULL;
}
free_entry(probe);
- f(ik);
+ if (DumpSharedSpaces) {
+ f(ik);
+ }
ResourceMark rm;
tty->print_cr("Preload Warning: Removed error class: %s", ik->external_name());
continue;
--
2.22.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/openjdk-1.8.0.git
git@gitee.com:src-openeuler/openjdk-1.8.0.git
src-openeuler
openjdk-1.8.0
openjdk-1.8.0
master

搜索帮助