Here's a patch for 5.2 to fix all apparent remaining thread safety issues in BCEL plus a case where unbuffered writes were being done. The thread safety changes use thread locals in the spirit of an earlier partial patch. These changes have been used to eliminate the need to synchronize around BCEL while testing real-world applications using Xalan XSLTC on our platform. Ken McNeil Software Engineer Azul Systems, Inc.
Created attachment 20294 [details] Patch
Unfortunately the patch does not apply successfully on BCEL trunk.
Just got back to this patch. BCEL is never meant to be theadsafe. What am I missing?