How Weak Reference is Used in Java']Java Projects?

被引:0
|
作者
Higo, Yoshiki [1 ]
Matsumoto, Shinsuke [1 ]
Kim, Taeyoung [1 ]
Kusumoto, Shinji [1 ]
机构
[1] Osaka Univ, Grad Sch Informat Sci & Technol, Suita, Osaka, Japan
关键词
Weak reference; Garbage collection; !text type='Java']Java[!/text; GitHub;
D O I
10.1109/APSEC51365.2020.00053
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Many programming languages have a system of garbage collection to automate memory management. Problems such as unexpected memory leak still may occur due to the automation of memory management. Weak reference has been proposed as a solution to such problems. However, the use of weak reference often requires consideration of memory release timing, which is difficult for developers. In this study, we investigate the use of weak reference on open source projects. More concretely, we investigated the domain of software projects where the weak reference was used, the timing of the introduction of the weak reference, the usage method, the presence or absence of the test code for weak reference, and the case of failure to introduce weak reference in the Java language. The survey showed that weak references were used in 73 repositories, about one-third of the total 202 repositories, and that weak references were most common in test code.
引用
收藏
页码:445 / 449
页数:5
相关论文
共 50 条
  • [1] How Fields are Used in Java']Java: An Empirical Study
    Tempero, Ewan
    ASWEC 2009: 20TH AUSTRALIAN SOFTWARE ENGINEERING CONFERENCE, PROCEEDINGS, 2009, : 91 - 100
  • [2] How README files are structured in open source Java']Java projects
    Liu, Yuyang
    Noei, Ehsan
    Lyons, Kelly
    INFORMATION AND SOFTWARE TECHNOLOGY, 2022, 148
  • [3] Not whether Java']Java but how Java']Java
    Wallace, C
    Martin, P
    ASIA PACIFIC SOFTWARE ENGINEERING CONFERENCE AND INTERNATIONAL COMPUTER SCIENCE CONFERENCE, PROCEEDINGS, 1997, : 517 - 518
  • [4] Java']Java Power Reference
    Flanagan, D
    IEEE MICRO, 1999, 19 (05) : 10 - 11
  • [5] Characterizing refactoring graphs in Java']Java and Java']JavaScript projects
    Brito, Aline
    Hora, Andre
    Valente, Marco Tulio
    EMPIRICAL SOFTWARE ENGINEERING, 2021, 26 (06)
  • [6] Java']Javari: Adding reference immutability to Java']Java
    Tschantz, MS
    Ernst, MD
    ACM SIGPLAN NOTICES, 2005, 40 (10) : 211 - 230
  • [7] On the Evolution of Exception Usage in Java']Java Projects
    Osman, Haidar
    Chis, Andrei
    Schaerer, Jakob
    Ghafari, Mohammad
    Nierstrasz, Oscar
    2017 IEEE 24TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), 2017, : 422 - 426
  • [8] Java']Java software projects for the HP iPAQ
    Tosten, RS
    Al Baqui, D
    Royes, D
    PDPTA '04: PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED PROCESSING TECHNIQUES AND APPLICATIONS, VOLS 1-3, 2004, : 1001 - 1005
  • [9] JaMaBuild: Mass Building of Java']Java Projects
    Sulir, Matus
    Nosal, Milan
    COMPANION PROCEEDINGS OF THE 2023 ACM SIGPLAN INTERNATIONAL CONFERENCE ON SYSTEMS, PROGRAMMING, LANGUAGES, AND APPLICATIONS: SOFTWARE FOR HUMANITY, SPLASH COMPANION 2023, 2023, : 56 - 57
  • [10] How fields are used in java: An empirical study
    Department of Computer Science, University of Auckland, Auckland, New Zealand
    Proc Aust Software Eng Conf ASWEC, (91-100):