https://issues.apache.org/bugzilla/show_bug.cgi?id=46962

--- Comment #4 from Alexis Giotis <alex.gio...@gmail.com> 2011-08-02 19:45:47 
UTC ---
Created attachment 27342
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27342
Patch with a unit test to reproduce the deadlock

Attached is a patch that includes a unit test (PropertyCacheTest.java) that
almost always reproduces the deadlock using just 2 threads. 

This is not meant to be committed but only as a demonstration of the problem
and as a test of next patches that fix it. Except adding the test case, I also
needed to add a sleep of 1 second in the rehash() method and implement the
equals() and hashcode() of the org.apache.fop.fo.properties.Property class. The
Property class was just more easy to instantiate.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to