1 Star 0 Fork 25

莫比乌斯/openjdk-17

forked from src-openEuler/openjdk-17 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Add-prefetch-before-copy-in-PSPromotionManager-copy_.patch 963 Bytes
一键复制 编辑 原始数据 按行查看 历史
kuen 提交于 2022-04-26 10:42 . I54NOQ: init jdk17.0.3-ga
From 02cc67fd514c34cffc61bc89da39a9ff8a05ae69 Mon Sep 17 00:00:00 2001
Date: Wed, 8 Dec 2021 09:59:36 +0800
Subject: [PATCH] Add prefetch before copy in
PSPromotionManager::copy_to_survivor_space
---
src/hotspot/share/gc/parallel/psPromotionManager.inline.hpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/hotspot/share/gc/parallel/psPromotionManager.inline.hpp b/src/hotspot/share/gc/parallel/psPromotionManager.inline.hpp
index 5eb6a20b0..a0149e447 100644
--- a/src/hotspot/share/gc/parallel/psPromotionManager.inline.hpp
+++ b/src/hotspot/share/gc/parallel/psPromotionManager.inline.hpp
@@ -248,6 +248,8 @@ inline oop PSPromotionManager::copy_unmarked_to_survivor_space(oop o,
assert(new_obj != NULL, "allocation should have succeeded");
+ Prefetch::write(new_obj, PrefetchCopyIntervalInBytes);
+
// Copy obj
Copy::aligned_disjoint_words(cast_from_oop<HeapWord*>(o), cast_from_oop<HeapWord*>(new_obj), new_obj_size);
--
2.19.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/neu-mobi/openjdk-17.git
git@gitee.com:neu-mobi/openjdk-17.git
neu-mobi
openjdk-17
openjdk-17
master

搜索帮助