ruby-changes:61484
From: Nobuyoshi <ko1@a...>
Date: Thu, 4 Jun 2020 17:14:48 +0900 (JST)
Subject: [ruby-changes:61484] a9e0046c26 (master): Moved vm_empty_cc to local in vm.c [Bug #16934]
https://git.ruby-lang.org/ruby.git/commit/?id=a9e0046c26 From a9e0046c26797343322a7211586f0acedfb7492e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 4 Jun 2020 17:13:56 +0900 Subject: Moved vm_empty_cc to local in vm.c [Bug #16934] Missed to commit a staged change. diff --git a/vm_callinfo.h b/vm_callinfo.h index 8b575f1..e938092 100644 --- a/vm_callinfo.h +++ b/vm_callinfo.h @@ -342,21 +342,8 @@ vm_cc_valid_p(const struct rb_callcache *cc, const rb_callable_method_entry_t *c https://github.com/ruby/ruby/blob/trunk/vm_callinfo.h#L342 } } -#ifndef MJIT_HEADER -extern const struct rb_callcache *vm_empty_cc; -#else extern const struct rb_callcache *rb_vm_empty_cc(void); -#endif - -static inline const struct rb_callcache * -vm_cc_empty(void) -{ -#ifndef MJIT_HEADER - return vm_empty_cc; -#else - return rb_vm_empty_cc(); -#endif -} +#define vm_cc_empty() rb_vm_empty_cc() /* callcache: mutete */ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/