Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.1-beta-1
-
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
Attachments
Issue Links
- is duplicated by
-
GROOVY-1964 deadlock in MemoryAwareConcurrentReadMap.get
- Closed