代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。