We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faa74e6 commit 2829d33Copy full SHA for 2829d33
runtime/include/alaska/alaska.hpp
@@ -77,8 +77,9 @@ namespace alaska {
77
78
inline void invalidate(void) {
79
#ifdef __riscv
80
- __asm__ volatile("csrw 0xc4, %0" ::"rK"((uint64_t)handle_id()) : "memory");
+ // Fence *before* the handle invalidation.
81
__asm__ volatile("fence" ::: "memory");
82
+ __asm__ volatile("csrw 0xc4, %0" ::"rK"((uint64_t)handle_id()) : "memory");
83
#endif
84
}
85
0 commit comments