1 Star 0 Fork 13

莫比乌斯/openjdk-21

forked from src-openEuler/openjdk-21 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Backport-JDK-8329174-update-CodeBuffer-layout-in-com.patch 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
wuyafang 提交于 2024-10-14 11:38 . sync bishengjdk21 patches
Subject: Backport JDK-8329174 update CodeBuffer layout in comment after constants section moved
---
src/hotspot/share/asm/codeBuffer.cpp | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/src/hotspot/share/asm/codeBuffer.cpp b/src/hotspot/share/asm/codeBuffer.cpp
index ab8aed1cb..4bc33cc89 100644
--- a/src/hotspot/share/asm/codeBuffer.cpp
+++ b/src/hotspot/share/asm/codeBuffer.cpp
@@ -24,6 +24,7 @@
#include "precompiled.hpp"
#include "asm/codeBuffer.hpp"
+#include "code/compiledIC.hpp"
#include "code/oopRecorder.inline.hpp"
#include "compiler/disassembler.hpp"
#include "logging/log.hpp"
@@ -65,7 +66,11 @@
// The structure of the CodeBuffer while code is being accumulated:
//
// _total_start -> \
-// _insts._start -> +----------------+
+// _consts._start -> +----------------+
+// | |
+// | Constants |
+// | |
+// _insts._start -> |----------------|
// | |
// | Code |
// | |
@@ -73,10 +78,6 @@
// | |
// | Stubs | (also handlers for deopt/exception)
// | |
-// _consts._start -> |----------------|
-// | |
-// | Constants |
-// | |
// +----------------+
// + _total_size -> | |
//
@@ -1061,11 +1062,6 @@ void CodeSection::print(const char* name) {
}
void CodeBuffer::print() {
- if (this == nullptr) {
- tty->print_cr("null CodeBuffer pointer");
- return;
- }
-
tty->print_cr("CodeBuffer:");
for (int n = 0; n < (int)SECT_LIMIT; n++) {
// print each section
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/neu-mobi/openjdk-21.git
[email protected]:neu-mobi/openjdk-21.git
neu-mobi
openjdk-21
openjdk-21
master

搜索帮助