Files
javademos/java21-to-25/output/12-object-headers.txt
T

20 lines
818 B
Plaintext

# 12-object-headers: bytes allocated per object on JDK 25.0.5.1, 1,000,000 objects each
--- default (-XX:-UseCompactObjectHeaders)
new Object() 16 bytes/object
record() 16 bytes/object
record(int) 16 bytes/object
record(int,int) 24 bytes/object
record(int,int,int) 24 bytes/object
record(int,Object) 24 bytes/object
Long (outside cache) 24 bytes/object
byte[8] 24 bytes/object
--- -XX:+UseCompactObjectHeaders
new Object() 8 bytes/object
record() 8 bytes/object
record(int) 16 bytes/object
record(int,int) 16 bytes/object
record(int,int,int) 24 bytes/object
record(int,Object) 16 bytes/object
Long (outside cache) 16 bytes/object
byte[8] 24 bytes/object