The Common Virtual Machine Interface

This page aims to document the current VM interface used by the current OpenJDK 7 trees and the new interface proposed in the CVMI repository. The latter moves the native methods from classes like java.lang.Object to a new class such as java.lang.VMObject. The intention is that VMs can replace these VMxxx classes as needed rather than having to supply specifically named C functions.


This class declares six native methods, five of which are redirected to the VM by registerNatives in the JDK7 tree and by their absence in VMObject in the new tree. The VMObject methods are static and take the Object as a parameter, thus avoiding instance creation.

Valid XHTML 1.1! Valid CSS!