merlimat commented on issue #2995: Use AbstractCASReferenceCounted to ensure 
entry.retain() is valid
URL: https://github.com/apache/pulsar/pull/2995#issuecomment-439563831
 
 
   > @merlimat shall we also adopt this in bookkeeper? since we are using that 
for ByteBufList. ByteBufList is a core structure in v2 protocol.
   
   I don't think it should be a problem there because when we call `increase()` 
we always have `refCnt >= 1`, therefore there's never the race condition on the 
`release()` getting to 0

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to