You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2022/01/17 13:34:17 UTC

[GitHub] [logging-log4cxx] rm5248 commented on pull request #105: Prevent static initialization order faults by using local statics

rm5248 commented on pull request #105:
URL: https://github.com/apache/logging-log4cxx/pull/105#issuecomment-1014550892


   One (potential) issue that I see here is that because the variables are still declared as `static`, they may get destroyed when the application is exiting(but another thread is still logging).  It seems to me that we should either do the construction in `APRInitializer` or somehow have the `APRInitializer` hold a copy of the pointer to ensure proper destruction(the stackoverflow link in LOGCXX-532 has some good details on this).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org