ruby-changes:61623
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 9 Jun 2020 09:53:22 +0900 (JST)
Subject: [ruby-changes:61623] 88e6799759 (master): vm_empty_cc: refactor use macro
https://git.ruby-lang.org/ruby.git/commit/?id=88e6799759 From 88e6799759374cbd6af77a5feb596d806b4e1bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Wed, 3 Jun 2020 14:59:33 +0900 Subject: vm_empty_cc: refactor use macro 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; https://github.com/ruby/ruby/blob/trunk/vm.c#L386 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); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/