高技术通讯2025,Vol.35Issue(7):687-697,11.DOI:10.3772/j.issn.1002-0470.2025.07.002
基于紧耦合内存复制加速器的Java垃圾收集优化方法
An optimization method for Java garbage collection based on tightly coupled memory copy accelerator
摘要
Abstract
Garbage collection(GC)is a crucial component of the Java virtual machine(JVM).It ensures memory safety while enhancing the efficiency of application development.However,garbage collection often leads to reduced ap-plication throughput or prolonged pauses.A common challenge affecting the effectiveness of mainstream garbage collectors is the significant overhead associated with object movement.This paper proposes an optimization method for Java garbage collection.The method employs a tightly coupled memory copy accelerator to expedite the time-consuming object movement during garbage collection.It achieves fine-grained parallel execution of object copy and traversal tasks,fully capitalizing on the performance benefits of offloading object copy tasks to the accelerator.Ex-perimental results demonstrate that this method effectively improves garbage collection efficiency and reduces appli-cation pause times.Compared with the default G1 GC,the garbage collection throughput of this method for the Da-Capo and SPECjvm2008 benchmark suites is increased by an average of 8.59%and 8.81%,respectively,with a maximum improvement of up to 74.69%.Additionally,its pause time is decreased by an average of 5.08%and 5.96%respectively,with a maximum reduction of 40.44%.关键词
垃圾收集/对象移动/紧耦合内存复制加速器/细粒度并行/Java虚拟机Key words
garbage collection/object movement/tightly coupled memory copy accelerator/fine-grained paral-lelism/Java virtual machine引用本文复制引用
王雪,李文青,张福新,王剑,敖琪..基于紧耦合内存复制加速器的Java垃圾收集优化方法[J].高技术通讯,2025,35(7):687-697,11.基金项目
国家重点研发计划(2022YFB3105103)资助项目. (2022YFB3105103)