Application isolation in the Java Virtual Machine
Grzegorz Czajkowski · ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA) · 2000
To date, systems offering multitasking for the Java™ programming language either use one process or one class loader for each application. Both approaches are unsatisfactory. Using operating system processes is expensive, scales poorly and does not fully exploit the protection features inherent in a safe language. Class loaders replicate application code, obscure the type system, and non-uniformly treat 'trusted' and 'untrusted' classes, which leads to subtle, but nevertheless, potentially harmful forms of undesirable inter-application interaction.In this paper we propose a novel, simple yet powerful solution. The new model improves on existing designs in terms of resource utilization while offering strong isolation among applications. The approach is applicable both on high-end servers and on small devices. The main idea is to maintain only one copy of every class, regardless of how many applications use it. Classes are transparently and automatically modified, so that each application has a separate copy of its static fields. Two prototypes are described and selected performance data is analyzed. Various aspects of the proposed architectural changes to the Java Virtual Machine are discussed.
Cited by 72 works. doi:10.1145/353171.353195
Authors
References
- The Java Programming Language
- Extensibility safety and performance in the SPIN operating system
- Efficient software-based fault isolation
- Department of Computer Science
- The Java programming language (2nd ed.)
- Inside Windows NT
- Extensible security architectures for Java
- Dynamic class loading in the Java virtual machine
- Java Language Specification, Second Edition: The Java Series
- JRes