Uploaded image for project: 'JBoss Cache'
  1. JBoss Cache
  2. JBCACHE-826

RegionManager region map should be ConcurrentReaderHashMap

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.4.1.SP3
    • Component/s: None
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      The regionMap in o.j.c.eviction.RegionManager is a Collections.synchronizedMap. This should be a ConcurrentReaderHashMap. If eviction is used, for every call the EvictionInterceptor makes a call that ends up doing a lookup in this map, so the synchronization becomes a choke point.

      I already made this change in HEAD along with some refactoring work on eviction configuration.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manik Manik Surtani
                Reporter:
                brian.stansberry Brian Stansberry
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: