Exploiting array manipulation habits to optimize garbage collection and type flow analysis - Archive ouverte HAL
Article Dans Une Revue (Article De Synthèse) Software: Practice and Experience Année : 2015

Exploiting array manipulation habits to optimize garbage collection and type flow analysis

Résumé

SUMMARY A widespread practice to implement a flexible array is to consider the storage area into two parts: the used area, which is already available for read/write operations, and the supply area, which is used in case of enlargement of the array. The main purpose of the supply area is to avoid as much as possible the reallocation of the whole storage area in case of enlargement. As the supply area is not used by the application, the main idea of the paper is to convey the information to the garbage collector, making it possible to avoid completely the marking of the supply area. We also present a simple method to analyze the types of objects, which are stored in an array as well as the possible presence of NULL values within the array. This allows us to better specialize the work of the garbage collector when marking the used area, and also, by transitivity, to improve overall results for type analysis of all expressions of the source code. After introducing several abstract data types, which represent the main arrays concerned by our technique (i.e., zero or variable indexing, circular arrays and hash maps), we measure its impact during the bootstrap of two compilers whose libraries are equipped with these abstract data types. We then measure, on various software products we have not written, the frequency of certain habits of manipulation of arrays, to assess the validity of our approach. Copyright © 2014 John Wiley & Sons, Ltd.
Fichier principal
Vignette du fichier
ArrayTypeFlow.pdf (237.2 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-04236594 , version 1 (11-10-2023)

Identifiants

Citer

Dominique Colnet, Benoît Sonntag. Exploiting array manipulation habits to optimize garbage collection and type flow analysis. Software: Practice and Experience, 2015, 45 (12), pp.1639-1657. ⟨10.1002/spe.2300⟩. ⟨hal-04236594⟩
27 Consultations
66 Téléchargements

Altmetric

Partager

More