Skip to content

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

Closed
bemerybmw wants to merge 1 commit intomainfrom
brem_static_destr_fiasco_mw_com
Closed

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
Copy Markdown
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.
@bemerybmw
Copy link
Copy Markdown
Contributor Author

To be merged in #224

@bemerybmw bemerybmw closed this Apr 7, 2026
@bemerybmw bemerybmw deleted the brem_static_destr_fiasco_mw_com branch April 7, 2026 08:19
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