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.
1 parent 32133b8 commit 4936e8aCopy full SHA for 4936e8a
1 file changed
software/runtime/kmp/cppsupport.cpp
@@ -13,6 +13,8 @@ extern "C" {
13
#include "runtime.h"
14
}
15
16
+extern void (*_eoc)(void);
17
+
18
kmp::Mutex allocLock;
19
20
void *operator new(size_t size) {
@@ -40,13 +42,16 @@ void __throw_length_error(const char *msg) {
40
42
abort();
41
43
44
-void __throw_bad_optional_access() { printf("Bad optional access\n"); }
45
+void __throw_bad_optional_access() {
46
+ printf("Bad optional access\n");
47
+ abort();
48
+}
49
} // namespace std
50
51
extern "C" void abort() {
52
printf("Aborting\n");
53
while (true) {
- mempool_wfi();
54
+ asm("j _eoc");
55
56
57
0 commit comments