18

Why Java's TLABs are so important and why write contention is a performance kill...

 3 years ago
source link: https://www.opsian.com/blog/jvm-tlabs-important-multicore/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The JVM’s garbage collectors make use of Thread-Local Allocation Buffers (TLABs) to improve allocation performance. In this article we’re going to understand what TLABs are, how they affect the code generated by the JIT for allocation and what the resulting effect on performance is. Along the way we’ll learn about the organisation of CPU caches and how multiple CPU cores keep their contents coherent and how you can use this knowledge to avoid multithreaded scalability bottlenecks.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK