mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Try to ignore a noisy ASAN warning for continuation
This commit is contained in:
parent
e40fa6c480
commit
b3d8dddee7
Notes:
git
2022-09-20 22:25:35 +09:00
2 changed files with 3 additions and 0 deletions
|
@ -3367,6 +3367,7 @@ cont.$(OBJEXT): $(top_srcdir)/internal/cont.h
|
||||||
cont.$(OBJEXT): $(top_srcdir)/internal/gc.h
|
cont.$(OBJEXT): $(top_srcdir)/internal/gc.h
|
||||||
cont.$(OBJEXT): $(top_srcdir)/internal/imemo.h
|
cont.$(OBJEXT): $(top_srcdir)/internal/imemo.h
|
||||||
cont.$(OBJEXT): $(top_srcdir)/internal/proc.h
|
cont.$(OBJEXT): $(top_srcdir)/internal/proc.h
|
||||||
|
cont.$(OBJEXT): $(top_srcdir)/internal/sanitizers.h
|
||||||
cont.$(OBJEXT): $(top_srcdir)/internal/serial.h
|
cont.$(OBJEXT): $(top_srcdir)/internal/serial.h
|
||||||
cont.$(OBJEXT): $(top_srcdir)/internal/static_assert.h
|
cont.$(OBJEXT): $(top_srcdir)/internal/static_assert.h
|
||||||
cont.$(OBJEXT): $(top_srcdir)/internal/vm.h
|
cont.$(OBJEXT): $(top_srcdir)/internal/vm.h
|
||||||
|
|
2
cont.c
2
cont.c
|
@ -30,6 +30,7 @@ extern int madvise(caddr_t, size_t, int);
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "internal/cont.h"
|
#include "internal/cont.h"
|
||||||
#include "internal/proc.h"
|
#include "internal/proc.h"
|
||||||
|
#include "internal/sanitizers.h"
|
||||||
#include "internal/warnings.h"
|
#include "internal/warnings.h"
|
||||||
#include "ruby/fiber/scheduler.h"
|
#include "ruby/fiber/scheduler.h"
|
||||||
#include "mjit.h"
|
#include "mjit.h"
|
||||||
|
@ -1161,6 +1162,7 @@ cont_save_machine_stack(rb_thread_t *th, rb_context_t *cont)
|
||||||
}
|
}
|
||||||
|
|
||||||
FLUSH_REGISTER_WINDOWS;
|
FLUSH_REGISTER_WINDOWS;
|
||||||
|
asan_unpoison_memory_region(cont->machine.stack_src, size, false);
|
||||||
MEMCPY(cont->machine.stack, cont->machine.stack_src, VALUE, size);
|
MEMCPY(cont->machine.stack, cont->machine.stack_src, VALUE, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue