A Partial Read Barrier for Efficient Support of Live Object-oriented Programming - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2015

A Partial Read Barrier for Efficient Support of Live Object-oriented Programming

Résumé

Live programming, originally introduced by Smalltalk and Lisp, and now gaining popularity in contemporary systems such as Swift, requires on-the-fly support for object schema migration, such that the layout of objects may be changed while the program is at one and the same time being run and developed. In Smalltalk schema migration is supported by two primitives, one that answers a collection of all instances of a class, and one that exchanges the identities of pairs of objects, called the become primitive. Existing instances are collected, copies using the new schema created, state copied from old to new, and the two exchanged with become, effecting the schema migration. Historically the implementation of become has either required an extra level of indirection between an object's address and its body, slowing down slot access, or has required a sweep of all objects, a very slow operation on large heaps. Spur, a new object representation and memory manager for Smalltalk-like languages, has neither of these deficiencies. It uses direct pointers but still provides a fast become operation in large heaps, thanks to forwarding objects that when read conceptually answer another object and a partial read barrier that avoids the cost of explicitly checking for forwarding objects on the vast majority of object accesses.
Fichier principal
Vignette du fichier
partialReadBarrier.pdf (192.51 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01152610 , version 1 (26-05-2015)

Identifiants

Citer

Eliot Miranda, Clément Béra. A Partial Read Barrier for Efficient Support of Live Object-oriented Programming. International Symposium on Memory Management, Jun 2015, Portland, United States. pp.93-104 ⟨10.1145/2754169.2754186⟩. ⟨hal-01152610⟩
375 Consultations
797 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More