|
|
|
|
|
by reeses
4835 days ago
|
|
TLABs are a partial step in that direction at the JVM level. You could also use object pools/factories keyed to the thread. Those are the first two "ghetto" hack solutions I can think of that wouldn't require significant code changes on a going-forward basis. |
|
It's like the kernel protecting memory so applications can't overwrite each other. Sure, applications could just write to their own memory, but nobody actually trusts that model[1]. Instead, they want something below that level enforcing good behavior.
1. Obviously, virtual memory adds a wrinkle to this that kind of forces kernel protection, but even if we had literally unlimited RAM, we would still implement kernel protections on memory.