Evaluating Finalization-Based Object Lifetime Profiling - Pharo
Conference Papers Year : 2024

Evaluating Finalization-Based Object Lifetime Profiling

Abstract

Using object lifetime information enables performance im- provement through memory optimizations such as pretenur- ing and tuning garbage collector parameters. However, pro- filing object lifetimes is nontrivial and often requires a spe- cialized virtual machine to instrument object allocations and dereferences. Alternative lifetime profiling could be done with less implementation effort using available finalization mechanisms such as weak references. In this paper, we study the impact of finalization on object lifetime profiling. We built an actionable lifetime profiler using the ephemeron finalization mechanism named FiLiP. FiLiP instruments object allocations to exactly record an object’s allocation time and it attaches an ephemeron to each allocated object to capture its finalization time. We show that FiLiP can be used in practice and achieves a significant overhead reduction by pretenuring the ephemeron objects. We further experiment with the impact of sampling allocations, showing that sampling reduces profiling overhead while maintaining actionable lifetime measurements.
Fichier principal
Vignette du fichier
conf.pdf (710.69 Ko) Télécharger le fichier
Origin Publisher files allowed on an open archive

Dates and versions

hal-04581342 , version 1 (22-05-2024)

Identifiers

Cite

Sebastian Jordan Montaño, Guillermo Polito, Stephane Ducasse, Pablo Tesone. Evaluating Finalization-Based Object Lifetime Profiling. International Symposium on Memory Management, Jun 2024, Copenhagen, Denmark. ⟨10.1145/3652024.3665514⟩. ⟨hal-04581342⟩
96 View
72 Download

Altmetric

Share

More