[ https://issues.apache.org/jira/browse/JCR-3658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcel Reutegger updated JCR-3658: ---------------------------------- Attachment: patched.png The patched.png chart now shows the majority of timings between 10 and 100 us. The number of User.memberOf() calls during the test increased from ~3'000 with the current implementation to ~4'000'000 with the patched version. > MembershipCache not consistently synchronized > --------------------------------------------- > > Key: JCR-3658 > URL: https://issues.apache.org/jira/browse/JCR-3658 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core, security > Affects Versions: 2.7 > Reporter: Tobias Bocanegra > Assignee: Marcel Reutegger > Priority: Minor > Attachments: current.png, JCR-3658.patch, JCR-3658-test.patch, > patched.png > > > the membership cache access is mostly synchronized on 'this' but in the > onEvent() handler, the internal cache object is synchronized. > suggest: to improve cache access by a r/w lock instead. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira