diff options
author | Yusuke Endoh <[email protected]> | 2022-09-20 17:07:42 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2022-09-20 22:25:05 +0900 |
commit | b3d8dddee7a9ea0bc9c278a5c9faa4df81afd57e (patch) | |
tree | 98aba5cf3357c3df795a9f26684f9ebf2be6d04a /cont.c | |
parent | e40fa6c480b58a8d1699b24193cf67945eaec202 (diff) |
Try to ignore a noisy ASAN warning for continuation
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6405
Diffstat (limited to 'cont.c')
-rw-r--r-- | cont.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -30,6 +30,7 @@ extern int madvise(caddr_t, size_t, int); #include "internal.h" #include "internal/cont.h" #include "internal/proc.h" +#include "internal/sanitizers.h" #include "internal/warnings.h" #include "ruby/fiber/scheduler.h" #include "mjit.h" @@ -1161,6 +1162,7 @@ cont_save_machine_stack(rb_thread_t *th, rb_context_t *cont) } FLUSH_REGISTER_WINDOWS; + asan_unpoison_memory_region(cont->machine.stack_src, size, false); MEMCPY(cont->machine.stack, cont->machine.stack_src, VALUE, size); } |