We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 456f4b1 + 781a15e commit 86436e4Copy full SHA for 86436e4
1 file changed
include/boost/context/fiber_fcontext.hpp
@@ -87,11 +87,11 @@ struct __cxa_eh_globals {
87
88
class manage_exception_state {
89
public:
90
- manage_exception_state() {
91
- exception_state_ = *__cxa_get_globals();
+ BOOST_NOINLINE manage_exception_state() {
+ exception_state_ = *(volatile __cxa_eh_globals *)__cxa_get_globals();
92
}
93
- ~manage_exception_state() {
94
- *__cxa_get_globals() = exception_state_;
+ BOOST_NOINLINE ~manage_exception_state() {
+ *(volatile __cxa_eh_globals *)__cxa_get_globals() = exception_state_;
95
96
private:
97
__cxa_eh_globals exception_state_;
0 commit comments