diff options
author | Aaron Patterson <[email protected]> | 2024-04-24 13:39:39 -0700 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2024-04-24 15:09:06 -0700 |
commit | 0434dfb76bdbd0c11f4da244a54357c95bb2fb8c (patch) | |
tree | a8df83c1af420f8122cd7f2c61900ec14acdb68c /vm_callinfo.h | |
parent | d3a7e555423e258ea7b06734982f5b5b0c9c3e3e (diff) |
We don't need to check if the ci is markable anymore
It doesn't matter if CI's are stack allocated or not.
Diffstat (limited to 'vm_callinfo.h')
-rw-r--r-- | vm_callinfo.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/vm_callinfo.h b/vm_callinfo.h index 1629d9f0a9..71ab9fe3fa 100644 --- a/vm_callinfo.h +++ b/vm_callinfo.h @@ -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 | \ |