|
|
|
|
|
by tsimionescu
98 days ago
|
|
Note that tearing is NOT a risk for value classes in Java - the JIT compiler is not allowed to optimize the layout of any value class that can tear on the current architecture (so, for any value class larger than 64 bits on x86-64). |
|
But whether your data’s integrity can be broken by such must be decided by the class author.