1 Star 0 Fork 13

aoqi/openjdk-21

forked from src-openEuler/openjdk-21 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Backport-of-JDK-8316895-SeenThread::print_action_que.patch 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
wuyafang 提交于 2024-10-14 11:38 . sync bishengjdk21 patches
Subject: Backport of JDK-8316895 SeenThread::print_action_queue called on a null pointer
---
src/hotspot/share/classfile/placeholders.cpp | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/hotspot/share/classfile/placeholders.cpp b/src/hotspot/share/classfile/placeholders.cpp
index 0f08e80dd..555317f63 100644
--- a/src/hotspot/share/classfile/placeholders.cpp
+++ b/src/hotspot/share/classfile/placeholders.cpp
@@ -80,8 +80,7 @@ public:
void set_next(SeenThread* seen) { _stnext = seen; }
void set_prev(SeenThread* seen) { _stprev = seen; }
- void print_action_queue(outputStream* st) {
- SeenThread* seen = this;
+ static void print_action_queue(SeenThread* seen, outputStream* st) {
while (seen != nullptr) {
seen->thread()->print_value_on(st);
st->print(", ");
@@ -327,13 +326,13 @@ void PlaceholderEntry::print_on(outputStream* st) const {
}
st->cr();
st->print("loadInstanceThreadQ threads:");
- loadInstanceThreadQ()->print_action_queue(st);
+ SeenThread::print_action_queue(loadInstanceThreadQ(), st);
st->cr();
st->print("superThreadQ threads:");
- superThreadQ()->print_action_queue(st);
+ SeenThread::print_action_queue(loadInstanceThreadQ(), st);
st->cr();
st->print("defineThreadQ threads:");
- defineThreadQ()->print_action_queue(st);
+ SeenThread::print_action_queue(loadInstanceThreadQ(), st);
st->cr();
}
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/theaoqi/openjdk-21.git
[email protected]:theaoqi/openjdk-21.git
theaoqi
openjdk-21
openjdk-21
master

搜索帮助