Re: bcel question (threading)
Torsten Curdt <[email protected]> Tue, 14 Aug 2007 01:48:36 +0200
| Newsgroups | gmane.comp.jakarta.bcel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Ben > Do you know if bcel.jar 5.2 is thread safe? We had some threading > issues and wrote some tests that made is painfully clear that > bcel.jar 5.1 is NOT thread safe (as the apache bcel website make > clear), but then we updated to bcel.jar 5.2 for the heck of it and > we could run 500 threads against it without problem where the 5.1 > version would even fail with at little as 2 threads occasionally. Interesting. Care to provide these tests for trunk? > I see the BCEL FAQ still says it is NOT thread-safe and the change > logs don't indicate that it was made to be thread-safe although my > tests seem to indicate it is. Can you clarify this? Unfortunately BCEL still uses e.g. a static class repository. http://svn.apache.org/repos/asf/jakarta/bcel/trunk/src/main/java/ org/apache/bcel/Repository.java So I fear the FAQ is still up to date. HTH -- Torsten