What is a TLAB and what is it for?

Asked

Viewed 31 times

4

I recently used Java Mission Control (JMC) to track a memory Leak. In doing so I realized that JMC reports memory allocations inside and outside of Thread Local Allocation Buffers (TLAB). In a quick Google search I read that allocations of new objects within a TLAB is more efficient than outside.

But what exactly is a TLAB? How does it make allocating new objects more efficient? And what makes JVM choose to allocate memory inside or outside of a TLAB?

  • 2

    Part of my initiative to create questions for the community.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.