summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-06-03 14:59:33 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-06-09 09:52:46 +0900
commit88e6799759374cbd6af77a5feb596d806b4e1bd9 (patch)
treeea69175d6932ab3002b45b30f5d2430b6d6f8646 /vm.c
parent46728557c16be2693c81c7c5ca51ea161ef28f65 (diff)
vm_empty_cc: refactor use macro
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3179
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/vm.c b/vm.c
index 7a3ba4a..e243f0e 100644
--- a/vm.c
+++ b/vm.c
@@ -386,13 +386,7 @@ rb_serial_t ruby_vm_global_method_state = 1;
rb_serial_t ruby_vm_global_constant_state = 1;
rb_serial_t ruby_vm_class_serial = 1;
-static const struct rb_callcache vm_empty_cc = {
- .flags = (T_IMEMO | (imemo_callcache << FL_USHIFT) | VM_CALLCACHE_UNMARKABLE),
- .klass = Qfalse,
- .cme_ = NULL,
- .call_ = vm_call_general,
- .aux_.v = 0,
-};
+static const struct rb_callcache vm_empty_cc = VM_CC_ON_STACK(0, vm_call_general, { 0 }, 0);
static void thread_free(void *ptr);