Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc++] Provide an observe semantic in the hardening mode #122970

Open
ldionne opened this issue Jan 14, 2025 · 0 comments
Open

[libc++] Provide an observe semantic in the hardening mode #122970

ldionne opened this issue Jan 14, 2025 · 0 comments
Labels
hardening Issues related to the hardening effort libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

Comments

@ldionne
Copy link
Member

ldionne commented Jan 14, 2025

Many people would benefit from having a way to turn on hardening without crashing their application when they violate a precondition. Instead, they would want to log the failure and continue. That way, they can enable hardening and gradually fix issues that come up in production, and eventually flip the switch without endangering their stability in production.

This is akin to the observe semantic in Contracts, so we need something like that eventually anyway.

@ldionne ldionne added hardening Issues related to the hardening effort libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hardening Issues related to the hardening effort libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

No branches or pull requests

1 participant