下面我们开始我们的重量级说明。虚拟函数引用。
下面是jvm规范中关于对象内存布局的说明,我没有翻译
我想你可以看明白,反正我现在看英文没有问题,
如果不明白就查字典。
The Java Virtual Machine does not require any particular internal
structure for objects. In Sun´s current implementation of the Java
Virtual Machine, a reference to a class instance is a pointer
to a handle that is itself a pair of pointers: one to a table
containing the methods of the object and a pointer to the
Class object that represents the type of the object, and
the other to the memory allocated from the Java heap for
the object data.