Abstract
Several programming languages use garbage collectors (GCs) to automatically manage memory for the programmer. Such collectors must decide when to look for unreachable objects to free, which can have a large performance impact on some applications. In this preliminary work, we propose a design for a learned garbage collector that autonomously learns over time when to perform collections. By using reinforcement learning, our design can incorporate user-defined reward functions, allowing an autonomous garbage collector to learn to optimize the exact metric the user desires (e.g., request latency or queries per second). We conduct an initial experimental study on a prototype, demonstrating that an approach based on tabular Q learning may be promising.
Author supplied keywords
Cite
CITATION STYLE
Cen, L., Marcus, R., Mao, H., Gottschlich, J., Alizadeh, M., & Kraska, T. (2020). Learned garbage collection. In MAPL 2020 - Proceedings of the 4th ACM SIGPLAN International Workshop on Machine Learning and Programming Languages, co-located with PLDI 2020 (pp. 38–44). Association for Computing Machinery. https://doi.org/10.1145/3394450.3397469
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.