allthingssecurity commented on PR #30623:
URL: https://github.com/apache/camel/pull/30623#issuecomment-7097251141

   Thanks for the approval and for the careful read.
   
   1. Memory ordering in `retain()`/`stopEvicted()`: agreed on the reasoning. 
It is a store then load on both sides, and the volatile `evicted` alone does 
not order the user's `acquires` increment before its read of `evicted` under 
the JMM; it holds on HotSpot on x86 and AArch64, as you say. I left it as is 
here so the approved head stays what was reviewed. If you want it formal, I can 
send a small follow-up with a `VarHandle.fullFence()` after the increment in 
`retain()` (one fence per acquire, including the `lastUsedProducer` fast path, 
which also goes through `retain()` via `reacquire`) and a comment on both sides.
   
   2. Test precondition: will add a short comment on why `test:b` comes first 
(the hash of the URI) in that same follow-up, or in the next change to that 
test.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to