Avatar
#swift-2 から。 参照した先にポインタのペアがある(実装もある)?
In some of Oracle’s implementations 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 heap for the object data.
https://docs.oracle.com/javase/specs/jvms/se11/html/jvms-2.html#jvms-2.7
(edited)