Uploaded image for project: 'Clojure'
  1. CLJ-988

the locking in MultiFn.java (synchronized methods) can cause lots of contention in multithreaded programs

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Completed
    • Affects versions: None
    • Fix versions: Release 1.5
    • Labels:
    • Approval:
      Ok
    • Patch:
      Code and Test

      Description

      if you call a single multimethod a lot in multithreaded code you get lots of contention for the lock on the multimethod. this contention slows things down a lot.

      this is due to getMethod being synchronized. it would be great if there was some fast non-locking path through the multimethod.

        Attachments

          Activity

            People

            • Assignee:
              stuart.sierra Stuart Sierra
              Reporter:
              hiredman Kevin Downey
            • Votes:
              8 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: