mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

abobrov
31.20.2007 b562255fac79515555f07b742aec9f1b66fb0e99
- Set fair ordering policy for cacheLock to workaround ReentrantReadWriteLock bug and provide a better/fair concurrency overall.

1 files modified
2 ■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/extensions/FileSystemEntryCache.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/extensions/FileSystemEntryCache.java
@@ -271,7 +271,7 @@
    dnMap = new LinkedHashMapRotator<DN,Long>(16, (float) 0.75,
        accessOrder);
    cacheLock = new ReentrantReadWriteLock();
    cacheLock = new ReentrantReadWriteLock(true);
    if (accessOrder) {
      // In access-ordered linked hash maps, merely querying the map
      // with get() is a structural modification.