On the Effects of Integrating Region-Based Memory Management and Generational Garbage Collection in ML

被引:7
|
作者
Elsman, Martin [1 ]
Hallenberg, Niels [2 ]
机构
[1] Univ Copenhagen, Copenhagen, Denmark
[2] SimCorp AS, Copenhagen, Denmark
关键词
Region inference; Generational garbage collection;
D O I
10.1007/978-3-030-39197-3_7
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
We present a region-based memory management scheme with support for generational garbage collection. The scheme is implemented in the MLKit Standard ML compiler, which features a compile-time region inference algorithm. The compiler generates native x64 machine code and deploys region types at runtime to avoid write barrier problems and to support partly tag-free garbage collection. We measure the characteristics of the scheme, for a number of benchmarks, and compare it to the Mlton state-of-the-art Standard ML compiler and configurations of the MLKit with and without region inference and generational garbage collection enabled. Although region inference often serves the purpose of generations, we demonstrate that, in some cases, generational garbage collection combined with region inference is beneficial.
引用
收藏
页码:95 / 112
页数:18
相关论文
共 50 条
  • [1] Garbage collection safety for region-based memory management
    Elsman, M
    [J]. ACM SIGPLAN NOTICES, 2003, 38 (03) : 123 - 134
  • [2] Integrating region memory management and tag-free generational garbage collection
    Elsman, Martin
    Hallenberg, Niels
    [J]. JOURNAL OF FUNCTIONAL PROGRAMMING, 2021, 31
  • [3] Region-based memory management
    Tofte, M
    Talpin, JP
    [J]. INFORMATION AND COMPUTATION, 1997, 132 (02) : 109 - 176
  • [4] Region-based memory management in cyclone
    Grossman, D
    Morrisett, G
    Jim, T
    Hicks, M
    Wang, YL
    Cheney, J
    [J]. ACM SIGPLAN NOTICES, 2002, 37 (05) : 282 - 293
  • [5] Garbage-Collection Safety for Region-Based Type-Polymorphic Programs
    Elsman, Martin
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (PLDI):
  • [6] Region-based memory management for Mercury programs
    Phan, Quan
    Janssens, Gerda
    Somogyi, Zoltan
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2013, 13 : 959 - 1024
  • [7] Generational Garbage Collection Algorithm Based on Lifespan Prediction
    Xin Ren
    Ying Zhangxu
    [J]. 2016 IEEE 4TH INTERNATIONAL CONFERENCE ON FUTURE INTERNET OF THINGS AND CLOUD WORKSHOPS (FICLOUDW), 2016, : 183 - 187
  • [8] Generational garbage collection algorithm based on lifespan prediction
    Ren, Xin
    Zhangxu, Ying
    [J]. Proceedings - 2016 4th International Conference on Future Internet of Things and Cloud Workshops, W-FiCloud 2016, 2016, : 183 - 187
  • [9] Region-Based RTSJ Memory Management: State of the art
    Hamza, H.
    Counsell, S.
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2012, 77 (05) : 644 - 659
  • [10] Runtime Support for Region-Based Memory Management in Mercury
    Phan, Quan
    Somogyi, Zoltan
    Janssens, Gerda
    [J]. ISMM'08: PROCEEDINGS OF THE 2008 INTERNATIONAL SYMPOSIUM ON MEMORY MANAGEMENT, 2008, : 61 - +