Skip to content

mw/com: Use MeyerSingleton class to initialize static Runtime#240

Draft
bemerybmw wants to merge 1 commit intomainfrom
brem_static_destr_fiasco_mw_com
Draft

mw/com: Use MeyerSingleton class to initialize static Runtime#240
bemerybmw wants to merge 1 commit intomainfrom
brem_static_destr_fiasco_mw_com

Conversation

@bemerybmw
Copy link
Contributor

Due to what seems like a compiler bug in gcc, the destruction sequence of static objects when compiling with gcc can be unexpected when multiple threads attempted to create the static objects. Full details are in the ticket and class documentation for the MeyerSingleton class.

Bug ticket: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99613

This commit adds usage of a MeyerSingleton class which provides a workaround to this bug.

Due to what seems like a compiler bug in gcc, the destruction sequence
of static objects when compiling with gcc can be unexpected when
multiple threads attempted to create the static objects. Full details
are in the ticket and class documentation for the MeyerSingleton class.

Bug ticket: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99613

This commit adds usage of a MeyerSingleton class which provides a
workaround to this bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant