Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1890

MemoryAwareConcurrentReadMap cause thred dead lock,it will hang our application at some time.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.1-beta-1
    • 1.1-beta-2
    • groovy-jdk
    • None
    • Windows Xp /jdk1.5
    • Patch

    Description

      The class org.codehaus.groovy.runtime.metaclass.MemoryAwareConcurrentReadMap deal with the realization of the visit with multithreading is not doing well enough, often lead to deadlock. The worst result is that an application will hang because of it.

      The problem is the writeLock and writeQueue. I don't think the writeQueue is must be used in the code,and It somewhat redundant.
      It's possible to implement the same function without writeQueue.

      May be I'm wrong about wrietQueue,but the bug is true and is very Serious .

      I can not imagine, if the bug is real, use grail to realize a project. What we will get?

      The test case will show the "dead lock" when you run it some times.
      I wish the patch should be helpful also.

      Thanks.

      Attachments

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              d0ngw Dongyong Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: