Skip to content

Thread Local Allocation Buffer

Krystal Mok edited this page May 28, 2011 · 2 revisions

TLAB in HotSpot

started to support thread local allocation since 1.3.0 (?)

originated from Apple as "Thread Local Eden (TLE)"?

the flag used to be UseTLE in 1.3.0 - 1.4.1


bump-pointer allocation scheme is fast and compact (no fragmentation)

a global allocation space would suffer from heap lock contention. so we've got TLAB

but the use of TLAB effectively breaks up the eden space into parts, and induces possible fragmentation

TLABWasteTargetPercent is an example of flags that deal with this kind of fragmentation

Related

Links

Jon Masamitsu