[concurrency-interest] Should I avoid compareAndSet with value-based classes?
dl at cs.oswego.edu
Fri Jul 7 09:10:43 EDT 2017
On 07/06/2017 10:48 AM, Remi Forax wrote:
> Value types have no identity so no identityHashCode.
But all instances accessible by multiple threads are contained by
an object with an identity (or transitively so).
So for example container-hash plus offset might suffice.
(This is veering too far off topic; let's take followups elsewhere.)
More information about the Concurrency-interest