Java bytecode verification via static single assignment form
Open Access
- 1 July 2008
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Programming Languages and Systems
- Vol. 30 (4) , 1-21
Abstract
Java Virtual Machines (JVMs) traditionally perform bytecode verification by way of an iterative dataflow analysis. Bytecode verification is necessary to ensure type safety because temporary variables in the JVM are not statically typed. We present an alternative verification mechanism that transforms JVM bytecode into Static Single Assignment Form (SSA) and thereby propagates definitions directly to uses. Type checking at control flow merge points can then be performed in a single pass. Our prototype implementation of the new algorithm is faster than the standard JVM bytecode verifier. It has the additional benefit of generating SSA as a side effect, which may be immediately useful for a subsequent dynamic compilation stage.Keywords
Funding Information
- Office of Naval Research (N00014-01-1-0854)
- National Science Foundation (TC-0209163ITR-0205712)
This publication has 9 references indexed in Scilit:
- Structural Encoding of Static Single Assignment FormElectronic Notes in Theoretical Computer Science, 2005
- A Type System for the Java Bytecode Language and VerifierJournal of Automated Reasoning, 2003
- Java Bytecode Verification: Algorithms and FormalizationsJournal of Automated Reasoning, 2003
- SafeTSA2001
- Java and the Java Virtual Machine2001
- Marmot: an optimizing compiler for JavaSoftware: Practice and Experience, 2000
- Marmot: an optimizing compiler for JavaSoftware: Practice and Experience, 2000
- A formal framework for the Java bytecode language and verifier1999
- A type system for Java bytecode subroutinesACM Transactions on Programming Languages and Systems, 1999