You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Andrei Dulceanu (Jira)" <ji...@apache.org> on 2020/08/19 13:06:00 UTC

[jira] [Resolved] (OAK-9180) Optimise synchronisation between threads when writing to 3rd level segment cache

     [ https://issues.apache.org/jira/browse/OAK-9180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Dulceanu resolved OAK-9180.
----------------------------------
    Resolution: Fixed

Patch looks good! Fixed in trunk at r1880989.

Thanks for your contribution, [~smiroslav]!

> Optimise synchronisation between threads when writing to 3rd level segment cache 
> ---------------------------------------------------------------------------------
>
>                 Key: OAK-9180
>                 URL: https://issues.apache.org/jira/browse/OAK-9180
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Miroslav Smiljanic
>            Assignee: Andrei Dulceanu
>            Priority: Minor
>         Attachments: OAK-9180.patch, OAK-9180_v2.patch
>
>
> Currently threads that are updating 3rd level segment cache, are obtaining lock  on the instance of HashMap, before inserting segmentId. 
> This can be optimised by using Set, obtained from ConcurrentHashMap.newKeySet(). 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)