Back to overview

Suicide Objects

Type of publication Peer-reviewed
Publikationsform Proceedings (peer-reviewed)
Publication date 2012
Author Ressia Jorge, Perin Fabrizio, Renggli Lukas,
Project Synchronizing Models and Code
Show all

Proceedings (peer-reviewed)

Title of proceedings Dynamic Languages and Applications, DYLA '12
DOI 10.1145/2307196.2307197

Open Access


The way programming languages manage memory has been a hot topic for many years. Languages with garbage collection (GC) removed the burden of memory management from developers. Typically the garbage collection infrastructure is a black box that developers have no control over. This is particularly striking in object-oriented systems, where objects themselves have no way to control their life and death. Instead an external process (the GC) decides if an object is still needed or not. In this paper we propose suicide objects, objects that make their own decisions about their life and death. With two examples we demonstrate how the traditional garbage collector can be replaced, and how developers can benefit from an object-centric memory management.