jsedding commented on PR #3069:
URL: https://github.com/apache/jackrabbit-oak/pull/3069#issuecomment-5237152333

   For the stacktrace shared in the JIRA ticket, I believe it would be 
sufficient to change the `isEnabled()` method to the following. The rationale 
being that `ServiceTracker.getServiceReference()` reads the cached value from a 
volatile field, i.e. no synchronization overhead.
   
   ```
       boolean isEnabled() {
           return getServiceReference() != null;
       }
   ```
   
   Now, the question is whether we see contention with different stack traces 
as well.


-- 
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