Eliminate nested locks

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • hs23
    • Affects Version/s: 8-pool
    • Component/s: hotspot
    • None
    • b10
    • generic
    • generic
    • Verified

        Eliminated nested locks of the same object:

            synchronized (reader) { // we synchronize on reader
            if (reader.getCount() > 0) { // calling synchronized method getCount() while already holding the lock
               reader.incrementReserveCount(1);
            }

              Assignee:
              Vladimir Kozlov
              Reporter:
              Vladimir Kozlov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: