Packed Objects, Object Layout & Value Types — a Survey
summary
Compares three concrete approaches and shows working prototypes and limits: Packed Objects (IBM JDK8 preview) removes per-element headers and references, supports off‑heap arrays but changes Java semantics and throws illegal‑access on nested assignments; Object Layout (library + HotSpot intrinsics) adds an intrinsic constructWithin, patches interpreter/C2 and class‑layout to reserve embedded space (e.g. 24 bytes for a Point), collapsing three pointer loads into one add; Value Types (Valhalla proposal) specifies new V bytecodes but remains early stage.
AI-written summary · about
