You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Dániel Dékány (Jira)" <ji...@apache.org> on 2023/01/16 08:39:00 UTC
[jira] [Closed] (FREEMARKER-198) Deadlock occurs during initialization in parallel test environment.
[ https://issues.apache.org/jira/browse/FREEMARKER-198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dániel Dékány closed FREEMARKER-198.
------------------------------------
> Deadlock occurs during initialization in parallel test environment.
> -------------------------------------------------------------------
>
> Key: FREEMARKER-198
> URL: https://issues.apache.org/jira/browse/FREEMARKER-198
> Project: Apache Freemarker
> Issue Type: Bug
> Components: engine
> Affects Versions: 2.3.31
> Reporter: Tihua Duan
> Assignee: Dániel Dékány
> Priority: Major
> Fix For: 2.3.32
>
>
> I'm testing freemaker code on two SBT tests, The first code is
> {code:java}
> val config = new Configuration(Configuration.VERSION_2_3_31)
> val d = new DefaultObjectWrapper()
> println(d.getJythonSupport){code}
> Another is
> {code:java}
> val d = new DefaultObjectWrapper()
> println(d.getJythonSupport){code}
> When I tested them in parallel, waiting for each other happened.
> I speculate that some static initialization code has circular dependencies.
> _TemplateAPI.SAFE_OBJECT_WRAPPER-> DefaultObjectWapper.instance->DefaultObjectWrapperConfiguration->_TemplateAPI
--
This message was sent by Atlassian Jira
(v8.20.10#820010)