mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
check flags passed to rb_nogvl()
RB_NOGVL_UBF_ASYNC_SAFE is wrongly specified because flags is not checked. [Bug #15499]23444302(cherry picked from commitff98931dac)
This commit is contained in:
parent
2a3027b7b5
commit
e4efca87ba
1 changed files with 1 additions and 1 deletions
2
thread.c
2
thread.c
|
|
@ -1464,7 +1464,7 @@ rb_nogvl(void *(*func)(void *), void *data1,
|
||||||
data2 = th;
|
data2 = th;
|
||||||
}
|
}
|
||||||
else if (ubf && vm_living_thread_num(th->vm) == 1) {
|
else if (ubf && vm_living_thread_num(th->vm) == 1) {
|
||||||
if (RB_NOGVL_UBF_ASYNC_SAFE) {
|
if (flags & RB_NOGVL_UBF_ASYNC_SAFE) {
|
||||||
th->vm->ubf_async_safe = 1;
|
th->vm->ubf_async_safe = 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue