Write barrier removal by static analysis

被引:5
|
作者
Zee, K [1 ]
Rinard, M [1 ]
机构
[1] MIT, Comp Sci Lab, Cambridge, MA 02139 USA
基金
美国国家科学基金会;
关键词
algorithms; performance; experimentation; program analysis; pointer analysis; generational garbage collection; write barriers;
D O I
10.1145/583854.582439
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present a new analysis for removing unnecessary write barriers in programs that use generational garbage collection. To our knowledge, this is the first static program analysis for this purpose. Our algorithm uses a pointer analysis to locate assignments that always create a reference from a younger object to an older object, then transforms the program to remove the write barriers normally associated with such assignments. We have implemented two transformations that reorder object allocations; these transformations can significantly increase the effectiveness of our write barrier removal algorithm. Our base technique assumes that the collector promotes objects in age order. We have developed an extension that enables the optimistic removal of write barriers, with the collector lazily adding each newly promoted object into a remembered set of objects whenever the compiler may have removed write barriers involving the object at statements that have yet to execute. This mechanism enables the application of our technique to virtually any memory management system that uses write barriers to enable generational garbage collection. Results from our implemented system show that our technique can remove substantial numbers of write barriers from the majority of the programs in our benchmark set, producing modest performance improvements of up to 6% of the overall execution time. Moreover, by dynamically instrumenting the executable, we are able to show that for six of our nine benchmark programs, our analysis is close to optimal in the sense that it removes the write barriers for almost all assignments that do not, in the observed execution, create a reference from an older object to a younger object. Finally, our results show that the overhead of our optimistic extension is negligible.
引用
收藏
页码:191 / 210
页数:20
相关论文
共 50 条
  • [21] JOLT: Lightweight Dynamic Analysis and Removal of Object Churn
    Shankar, Ajeet
    Arnold, Matthew
    Bodik, Rastislav
    ACM SIGPLAN NOTICES, 2008, 43 (10) : 127 - 141
  • [22] Analysis and Optimization of Persistent Memory Index Structures' Write Amplification
    Woo, Youngjoo
    Kim, Taesoo
    Jung, Sungin
    Seo, Euiseong
    IEEE ACCESS, 2021, 9 : 167687 - 167698
  • [23] Refined statistical static timing analysis through learning spatial delay correlations
    Lee, Benjamin N.
    Wang, Li-C
    Abadir, Magdy S.
    43RD DESIGN AUTOMATION CONFERENCE, PROCEEDINGS 2006, 2006, : 149 - +
  • [24] An algorithm for the analysis of static hanging drape
    Indrie, Liliana
    Zlatev, Zlatin
    Ilieva, Julieta
    Oana, Ioan Pavel
    INDUSTRIA TEXTILA, 2023, 74 (02): : 154 - 162
  • [25] Static Program Analysis as a Fuzzing Aid
    Shastry, Bhargava
    Leutner, Markus
    Fiebig, Tobias
    Thimmaraju, Kashyap
    Yamaguchi, Fabian
    Rieck, Konrad
    Schmid, Stefan
    Seifert, Jean-Pierre
    Feldmann, Anja
    RESEARCH IN ATTACKS, INTRUSIONS, AND DEFENSES (RAID 2017), 2017, 10453 : 26 - 47
  • [26] Explaining Static Analysis With Rule Graphs
    Do, Lisa Nguyen Quang
    Bodden, Eric
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (02) : 678 - 690
  • [27] Mira: A Framework for Static Performance Analysis
    Meng, Kewen
    Norris, Boyana
    2017 IEEE INTERNATIONAL CONFERENCE ON CLUSTER COMPUTING (CLUSTER), 2017, : 103 - 113
  • [28] A Physics-Based Compact Model for the Static Drain Current in Heterojunction Barrier CNTFETs-Part I: Barrier-Related Current
    Annamalai, Manojkumar
    Schroeter, Michael
    IEEE TRANSACTIONS ON ELECTRON DEVICES, 2024, 71 (01) : 23 - 29
  • [29] Carbon template removal by dielectric-barrier discharge plasma for the preparation of zirconia
    Guo, Qiuting
    With, Patrick
    Liu, Yuan
    Glaeser, Roger
    Liu, Chang-jun
    CATALYSIS TODAY, 2013, 211 : 156 - 161
  • [30] Substrate-lossless Removal Approach of Environmental Barrier Coatings on SiCf/SiC
    Ma Shuai
    Li Guangrong
    Liu Meijun
    Li Changjiu
    Li Chengxin
    Yang Guanjun
    CHINA SURFACE ENGINEERING, 2019, 32 (04) : 123 - 132