[stringtemplate-interest] deadlock during the static initialization
Terence Parr
parrt at cs.usfca.edu
Wed Jan 14 17:34:08 PST 2009
On Jan 13, 2009, at 10:38 AM, Nils Liebelt wrote:
> Hi all,
>
> I spotted an racing condition that occures during the (static)
> initialization of StringTemplate and StringTemplateGroup.
> The result is an deadlock that occures when initializing the classes
> from different threads. Please find attached a simple junit testcase
> that illustrates the behaviour. Also attached is a thread dump that
> shows stacktraces after the deadlock occures. To get around this
> issue you must statically initialize one of the classes before
> actual creating the instances of the mentioned classes (see testcase)
>
> The problem affects StringTemplate Version 3.2. I can reproduce the
> behaviour on sun jvm 1.6.0_03-b05 (64bit) and 1.6.0_07-b06 (32bit)
>
> Is this a known bug? Can I raise a jira?
Hi Nils, just added:
http://www.antlr.org/jira/browse/ST-48
Ter
More information about the stringtemplate-interest
mailing list