Hi all,
I've just commited the code that improves (I should say fixes) the instance
interceptor locking code and the passivation code, so that now they work
together.
I also renamed a class and a interface to better stick to already existing
naming convention.
I also improved LRUCachePolicy (thanks also to Aaron) so that now is a
totally unsynchronized class, so easier to understand and faster.
Synchronization logic, if the class is used in multithreaded context, must
be provided by the user of this class, see AbstractInstanceCache for
example.
I'm also going on with tests, but up to now it seems much more stable than
before, anyway if you have any problem let me know.
There are also 2 new classes in org.jboss.util package, interface Sync and
one implementation of it, Semaphore. Semaphore can be used to allow only N
clients into a critical section; if N == 1, then it acts as a mutual
exclusive semaphore (and in this way is used in AbstractInstanceCache).
Regards,
Simon