mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
We don't need to check if the ci is markable anymore
It doesn't matter if CI's are stack allocated or not.
This commit is contained in:
parent
d3a7e55542
commit
0434dfb76b
3 changed files with 5 additions and 22 deletions
|
@ -240,21 +240,6 @@ vm_ci_new_runtime_(ID mid, unsigned int flag, unsigned int argc, const struct rb
|
|||
|
||||
#define VM_CALLINFO_NOT_UNDER_GC IMEMO_FL_USER0
|
||||
|
||||
static inline bool
|
||||
vm_ci_markable(const struct rb_callinfo *ci)
|
||||
{
|
||||
if (! ci) {
|
||||
return false; /* or true? This is Qfalse... */
|
||||
}
|
||||
else if (vm_ci_packed_p(ci)) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
VM_ASSERT(IMEMO_TYPE_P(ci, imemo_callinfo));
|
||||
return ! FL_ANY_RAW((VALUE)ci, VM_CALLINFO_NOT_UNDER_GC);
|
||||
}
|
||||
}
|
||||
|
||||
#define VM_CI_ON_STACK(mid_, flags_, argc_, kwarg_) \
|
||||
(struct rb_callinfo) { \
|
||||
.flags = T_IMEMO | \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue