logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Nistor (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4J2-274) wasted work in UUIDUtil initialization
Date Thu, 06 Jun 2013 17:35:21 GMT
Adrian Nistor created LOG4J2-274:
------------------------------------

             Summary: wasted work in UUIDUtil initialization
                 Key: LOG4J2-274
                 URL: https://issues.apache.org/jira/browse/LOG4J2-274
             Project: Log4j 2
          Issue Type: Bug
    Affects Versions: 2.0-beta6
         Environment: any
            Reporter: Adrian Nistor
            Priority: Minor
         Attachments: patch.diff

The problem appears in Log4j 2.0-beta6 and in revision 1490297.  I
attached a one-line patch that fixes it.

In the static initialization block for "UUIDUtil", the loop over
"sequences" should break immediately after "duplicate" is set to
"true".  All the iterations after "duplicate" is set to "true" do not
perform any useful work, at best they just set "duplicate" again to
"true".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message