12 ms·
Also, i believe that 'classes' aren't fixed size, because they contain the class's vtable [1]. As such, you couldn't keep them in an indexable array anyway. [1
by twic 4y ago
Also, i believe that 'classes' aren't fixed size, because they contain the class's vtable [1]. As such, you couldn't keep them in an indexable array anyway.
[1] in HotSpot they are instances of InstanceKlass: https://github.com/openjdk/jdk/blob/master/src/hotspot/share/oops/instanceKlass.hpp#L47 https://github.com/openjdk/jdk/blob/master/src/hotspot/share...
- chrisseaton 4y agoI think they mean keep references to them in an indexable array.
- remram 4y agoThat is the extra indirection I was talking about.