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 条
  • [31] A development in energy flow/barrier analysis
    Shahrokhi, Mahmoud
    Bernard, Alain
    SAFETY SCIENCE, 2010, 48 (05) : 598 - 606
  • [32] Maximum Lifetime Combined Barrier-Coverage of Weak Static Sensors and Strong Mobile Sensors
    Kim, Donghyun
    Wang, Wei
    Son, Junggab
    Wu, Weili
    Lee, Wonjun
    Tokuta, Alade O.
    IEEE TRANSACTIONS ON MOBILE COMPUTING, 2017, 16 (07) : 1956 - 1966
  • [33] Masking Soft Errors with Static Bitwise Analysis
    Xu, Jianjun
    Meng, Xiankai
    Tan, Qingping
    Xue, Jingling
    2016 23RD ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2016), 2016, : 281 - 288
  • [34] Static Analysis of Data-Intensive Applications
    Nagy, Csaba
    PROCEEDINGS OF THE 17TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING (CSMR 2013), 2013, : 435 - 438
  • [35] Extracting queries by static analysis of transparent persistence
    Wiedermann, Ben
    Cook, William R.
    ACM SIGPLAN NOTICES, 2007, 42 (01) : 199 - 210
  • [36] Theories, Solvers and Static Analysis by Abstract Interpretation
    Cousot, Patrick
    Cousot, Radhia
    Mauborgne, Laurent
    JOURNAL OF THE ACM, 2012, 59 (06)
  • [37] Reducing Static Analysis Unsoundness with Approximate Interpretation
    Laursen, Mathias Rud
    Xu, Wenyuan
    Moller, Anders
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (PLDI): : 1165 - 1188
  • [38] Hierarchical Read/Write Analysis for Pointer-Based OpenCL Programs on RRAM
    Yu, Lin-Ya
    Wang, Shao-Chung
    Lee, Jenq-Kuen
    2017 46TH INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING WORKSHOPS (ICPPW), 2017, : 45 - 52
  • [39] Effects of background gas on sulfur hexafluoride removal by atmospheric dielectric barrier discharge plasma
    Zhang, Xiaoxing
    Xiao, Hanyan
    Hu, Xiongxiong
    Gui, Yingang
    AIP ADVANCES, 2016, 6 (11):
  • [40] Process enhancement of organic pollutant removal by micro channel excited dielectric barrier discharge
    Wang, Xiaoping
    Luo, Jihang
    Mei, Jie
    Huang, Yunzhu
    Gong, Yunjiang
    JOURNAL OF WATER PROCESS ENGINEERING, 2021, 42