[concurrency-interest] DirectByteBuffers and reachabilityFence
aph at redhat.com
Wed Dec 9 16:01:22 EST 2015
On 12/09/2015 08:36 PM, Vitaly Davidovich wrote:
>> Yes, you do increment the counter at each operation. There has to be
>> a use of the counter in the finalizer to keep it alive.
> Right, that's what I thought would need to happen, but then you made it
> sound like only finalizer actually does something. So here you have a
> possible performance degradation ...
Yes. To be clear: I do not believe that a correct solution to
this problem which has no performance degradation is possible.
All we can do is minimize it. With some fairly substantial
compiler work we can get pretty close.
More information about the Concurrency-interest