arXiv · 2409.18342
Exploring Time-Space trade-offs for synchronized in Lilliput
Abstract
In the context of Project Lilliput, which attempts to reduce the size of object header in the HotSpot Java Virtual Machine (JVM), we explore a curated set of synchronization algorithms. Each of the algorithms could serve as a potential replacement implementation for the "synchronized" construct in HotSpot. Collectively, the algorithms illuminate trade-offs in space-time properties. The key design decisions are where to locate synchronization metadata (monitor fields), how to map from an object to those fields, and the lifecycle of the monitor information. The reader is assumed to be familiar with current HotSpot implementation of "synchronized" as well as the Compact Java Monitors (CJM) design and Project Lilliput.
Explore related subjects
Keep this discovery
Dave Dice, Alex Kogan. 2024-09-26. Exploring Time-Space trade-offs for synchronized in Lilliput. https://arxiv.org/abs/2409.18342
Cite the original work for its findings. Save a collection to share your selection of sources.