mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
add VM_CALLCACHE_ON_STACK
check if iseq refers to on stack CC (it shouldn't).
This commit is contained in:
parent
8d7116552d
commit
7ec1fc37f4
Notes:
git
2021-11-17 22:22:03 +09:00
2 changed files with 14 additions and 7 deletions
|
@ -290,6 +290,7 @@ struct rb_callcache {
|
|||
};
|
||||
|
||||
#define VM_CALLCACHE_UNMARKABLE IMEMO_FL_USER0
|
||||
#define VM_CALLCACHE_ON_STACK IMEMO_FL_USER1
|
||||
|
||||
static inline const struct rb_callcache *
|
||||
vm_cc_new(VALUE klass,
|
||||
|
@ -305,7 +306,8 @@ vm_cc_new(VALUE klass,
|
|||
(struct rb_callcache) { \
|
||||
.flags = T_IMEMO | \
|
||||
(imemo_callcache << FL_USHIFT) | \
|
||||
VM_CALLCACHE_UNMARKABLE, \
|
||||
VM_CALLCACHE_UNMARKABLE | \
|
||||
VM_CALLCACHE_ON_STACK, \
|
||||
.klass = clazz, \
|
||||
.cme_ = cme, \
|
||||
.call_ = call, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue