[ 
https://issues.apache.org/jira/browse/LOG4J2-2898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carter Kozak reassigned LOG4J2-2898:
------------------------------------

    Assignee: Carter Kozak

> Avoid initializing volatile fields to their default values
> ----------------------------------------------------------
>
>                 Key: LOG4J2-2898
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2898
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.13.3
>            Reporter: Carter Kozak
>            Assignee: Carter Kozak
>            Priority: Major
>             Fix For: 2.14.0
>
>
> Contribution: [https://github.com/apache/logging-log4j2/pull/367]
> From Turbanov Andrey:
> {quote}It's known that writing to a {{volatile}} field has performance impact.
>  It's true even if code initializes field with _default_ value.
>  This PR cleans such redundant initialization and improves startup 
> performance.
>  See similar improvement in JDK codebase: 
> [https://bugs.openjdk.java.net/browse/JDK-8145680].
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to