Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-3642

Reduce class loading synchronized contention

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.0SDK
    • Fix Version/s: 2.6.0SDK
    • Component/s: Core Java Framework
    • Labels:
      None

      Description

      In large multithreaded deployment with many annotators, measurements showed large slowdown in class loading as 100's of annotator classes were loaded, perhaps in 100's of instances. Each load operation locked 1 shared global lock. Java 7 implements a finer grained locking for this, so that the lock is per [ classloader + class-name ], to reduce lock contention. This code will need to be conditional for Java 7 and later. See http://docs.oracle.com/javase/7/docs/technotes/guides/lang/cl-mt.html

        Attachments

          Activity

            People

            • Assignee:
              schor Marshall Schor
              Reporter:
              schor Marshall Schor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: