Cross-ISA Testing of the Pharo VM: Lessons Learned While Porting to ARMv8 - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2021

Cross-ISA Testing of the Pharo VM: Lessons Learned While Porting to ARMv8

Abstract

Testing and debugging a Virtual Machine is a laborious task without the proper tooling. This is particularly true for VMs with JIT compilation and dynamic code patching for techniques such as inline caching. In addition, this situation is getting worse when the VM builds and runs on multiple target architectures. In this paper, we report on several lessons we learned while testing the Pharo VM, particularly during the port of its Cogit JIT compiler to the AArch64 architecture. The Pharo VM presented already a simulation environment that is very handy to simulate full executions and live-develop the VM. However, this full simulation environment makes it difficult to reproduce short and simple testing scenarios. We extended the pre-existing simulation environment with a testing infrastructure and a methodology that allow us to have fine-grained control of testing scenarios, making tests small, fast, reproducible, and cross-ISA. We report on how this testing infrastructure allowed us to cope with two different development scenarios: (1) porting the Cogit JIT compiler to AArch64 without early access to real hardware and (2) debugging memory corruptions due to GC bugs. CCS Concepts: • Software and its engineering → Runtime environments.
Fichier principal
Vignette du fichier
main.pdf (440.61 Ko) Télécharger le fichier
Origin Files produced by the author(s)

Dates and versions

hal-03332033 , version 1 (03-09-2021)

Identifiers

Cite

Guillermo Polito, Pablo Tesone, Stéphane Ducasse, Luc Fabresse, Théo Rogliano, et al.. Cross-ISA Testing of the Pharo VM: Lessons Learned While Porting to ARMv8. MPLR ’21, Germany, Sep 2021, Münster, Germany. ⟨10.1145/3475738.3480715⟩. ⟨hal-03332033⟩
203 View
232 Download

Altmetric

Share

Gmail Mastodon Facebook X LinkedIn More