3 ms·
I'd give this article a read to understand how java gets around this problem. https://dzone.com/articles/thread-local-allocation-buffers https://dzone.com/arti
by cogman10 4y ago
I'd give this article a read to understand how java gets around this problem.
https://dzone.com/articles/thread-local-allocation-buffers https://dzone.com/articles/thread-local-allocation-buffers
The short answer is that for java at least (and I suspect other GCs in other languages, but haven't confirmed) there's a thread local allocation buffer which is just the pointer bumps.
- littlestymaar 4y agoThanks, I'll read that.