1 Star 0 Fork 105

misaka00251/bishengjdk-11

forked from openEuler/bishengjdk-11 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
8247691-Incorrect-handling-of-VM-exceptions-in-C1-deopt-stub.patch 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
misaka00251 提交于 2023-05-15 16:04 . Initial commit
From 6b8c5be412b9ae27ef3ea85b3b5dc4e58c82c3cf Mon Sep 17 00:00:00 2001
From: miaozhuojun <mouzhuojun@huawei.com>
Date: Tue, 11 May 2021 11:03:26 +0800
Subject: [PATCH] Incorrect handling of VM exceptions in C1 deopt stub/traps
Bug url: https://bugs.openjdk.java.net/browse/JDK-8247691
---
src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp b/src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp
index adaa0f1..b1daeac 100644
--- a/src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp
+++ b/src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp
@@ -577,7 +577,8 @@ OopMapSet* Runtime1::generate_patching(StubAssembler* sasm, address target) {
__ verify_not_null_oop(r0);
// load throwing pc: this is the return address of the stub
- __ mov(r3, lr);
+ // Note that lr register has been destroyed by the call.
+ __ ldr(r3, Address(rfp, wordSize));
#ifdef ASSERT
// check that fields in JavaThread for exception oop and issuing pc are empty
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/misaka00251/bishengjdk-11.git
git@gitee.com:misaka00251/bishengjdk-11.git
misaka00251
bishengjdk-11
bishengjdk-11
master

搜索帮助