What is in Java object header?
For HotSpot: The object header consists of a mark word and a klass pointer. The mark word has word size (4 byte on 32 bit architectures, 8 byte on 64 bit architectures) and the klass pointer has word size on 32 bit architectures. On 64 bit architectures the klass pointer either has word size, but … Read more