~/talk

Project Lilliput - Beyond Compact Headers

Talkat JVM Language Summit 2024 · 2024-08-05..08-07· [java]
links:none on file
slides:none on file

Project Lilliput compresses Java object headers from ~12 bytes to 8 bytes (Lilliput 1) and aims for 4 bytes with Lilliput 2 by using tiny class pointers and compact identity hash code. Implementation adds lightweight locking, a side table for object monitors, sliding GC forwarding, and tighter class-pointer compression (22→19 bits), addressing ~500k near-encodable classes with a far-class indirection for outliers. Identity hash codes move from a 31-bit per-object slot to an on-demand three-state scheme that allocates per-object slots during GC. Code lives in the OpenJDK Lilliput repo and targets JEP 450.

AI-written summary · about

  1. 0:00Introduction to Lilliput
  2. 0:42Memory layout demonstrations
  3. 7:01Lilliput 1 recap
  4. 15:03Tiny class pointers
  5. 30:10Compact identity hash codes
  6. 46:18Summary and future outlook
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.