4 ms·
> TLAB TLB?
by NavinF 3y ago
> TLAB
TLB?
- fotad 3y agoThread Local Allocation Buffer
- marginalia_nu 3y agoThe TLAB is the Thread Local Allocation Buffer. In short and a bit simplified, normally when you allocate memory, the allocator needs to synchronize between threads because RAM is a shared resource. This means that a thread that allocates a lot can disrupt the performance of other threads, among other weird effects. But there's a small buffer called the TLAB owned by each thread where this isn't true: Allocation in the TLAB doesn't require synchronization. The TLAB makes allocating small ephemeral objects much faster.
- wging 3y agoThis is a good explanation. See also Shipilev's JVM Anatomy {Park|Quark} episode: https://shipilev.net/jvm/anatomy-quarks/4-tlab-allocation/ https://shipilev.net/jvm/anatomy-quarks/4-tlab-allocation/