Interpreter-guided Differential JIT Compiler Unit Testing - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2022

Interpreter-guided Differential JIT Compiler Unit Testing

Résumé

Modern language implementations using Virtual Machines feature diverse execution engines such as byte-code interpreters and machine-code dynamic translators, a.k.a. JIT compilers. Validating such engines requires not only validating each in isolation, but also that they are functionally equivalent. Tests should be duplicated for each execution engine exercising the same execution paths on each of them. In this paper we present a novel automated testing approach for virtual machines featuring byte-code interpreters. Our solution uses concolic meta-interpretation: it applies concolic testing to a byte-code interpreter to explore all possible execution interpreter paths and obtain a list of concrete values that explore such paths. We then use such values to apply differential testing on the VM interpreter and JIT compiler. This solution is based on two insights: (1) both the interpreter and compiler implement the same language semantics and (2) interpreters are simple executable specifications of those semantics and thus promising targets to (meta-) interpretation using concolic testing. We validated it on 4 different compilers of the open-source Pharo Virtual Machine and found 468 differences between them, produced by 91 different causes, organized in 6 different categories.
Fichier principal
Vignette du fichier
main_submitted.pdf (668.8 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03607939 , version 1 (18-03-2022)

Identifiants

Citer

Guillermo Polito, Pablo Tesone, Stéphane Ducasse. Interpreter-guided Differential JIT Compiler Unit Testing. Programming Language Design and Implementation - PLDI 2022, Jun 2022, San Diego, United States. ⟨10.1145/3519939.3523457⟩. ⟨hal-03607939⟩
124 Consultations
538 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More