Object header

In a JVM, each object needs to keep track of some meta info, such as its class, its GC state and if it is used as a monitor in a lock operation. This information is referenced so frequently that it makes little sense to store it anywhere other than in the header of the object itself, accessible by dereferencing the object pointer. Typically, an object header contains lock state, garbage collection state, and type information.

See also Lock word and Class block.

Get Oracle JRockit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.