ruby-changes:67135
From: Nobuyoshi <ko1@a...>
Date: Fri, 13 Aug 2021 14:51:59 +0900 (JST)
Subject: [ruby-changes:67135] 611da9faef (master): Mark `rb_unexpected_type` as "cold" [Bug #18062]
https://git.ruby-lang.org/ruby.git/commit/?id=611da9faef From 611da9faef76777e57718cf5b0286b965879479c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 12 Aug 2021 10:42:33 +0900 Subject: Mark `rb_unexpected_type` as "cold" [Bug #18062] So that it will not interfere the fast path in `Check_Type`. --- include/ruby/internal/error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ruby/internal/error.h b/include/ruby/internal/error.h index 7e9d5c4..bd5c4d2 100644 --- a/include/ruby/internal/error.h +++ b/include/ruby/internal/error.h @@ -61,7 +61,7 @@ NORETURN(void rb_syserr_fail_str(int, VALUE)); https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/error.h#L61 NORETURN(void rb_mod_syserr_fail(VALUE, int, const char*)); NORETURN(void rb_mod_syserr_fail_str(VALUE, int, VALUE)); NORETURN(void rb_readwrite_syserr_fail(enum rb_io_wait_readwrite, int, const char*)); -NORETURN(void rb_unexpected_type(VALUE,int)); +COLDFUNC NORETURN(void rb_unexpected_type(VALUE,int)); VALUE *rb_ruby_verbose_ptr(void); VALUE *rb_ruby_debug_ptr(void); -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/