Java Objects Inside Out
summary
The talk examines Java object memory layout and footprint, explaining what fields and headers actually occupy in memory and how runtimes implement them. It covers how that knowledge clarifies object size tricks, runtime peculiarities, and what can be exploited for low-level or “dirty” purposes.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:17Object measurement methodologies
- 8:37Memory analysis tool issues
- 12:31Java Object Layout tool
- 15:21Primitive type sizes in Java
- 18:52Boolean storage in memory
- 20:59Compressed oops in HotSpot
- 24:10Object header structure
- 27:44Markword: forwarding and object age
- 31:56Object hashCodes in HotSpot
- 38:16Locking and object header
- 42:51Class Word: role and structure
- 46:01Object alignment and effects
- 51:17Field packing and memory optimization
- 57:36Class hierarchy layout issues
- 1:03:16Summary
related talks
40mSave Java memory
41mDesigning Great Java In-Memory Object Models
58mTaming the fantastic beast of the Java Virtual Machine
51mA Healthy diet for your Java application
48mObjects — where they live, what they eat and how to spy on them?
55mWhat's Going On in Java?
49mFaster Java Objects
51mTrash Talk - Exploring the JVM memory management
