Interprocess cache invalidation is one of the bigger devils in the details. It’s one part of the memory corruption crisis that the Java Memory Model tries to solve and then a number of other languages copied.
There are concurrency libraries that allocate 8x as much memory as they need just to guarantee that two threads don’t share a cache line.
Comments
Interprocess cache invalidation is one of the bigger devils in the details. It’s one part of the memory corruption crisis that the Java Memory Model tries to solve and then a number of other languages copied.
There are concurrency libraries that allocate 8x as much memory as they need just to guarantee that two threads don’t share a cache line.