1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Mark rb_unexpected_type as "cold" [Bug #18062]

So that it will not interfere the fast path in `Check_Type`.
This commit is contained in:
Nobuyoshi Nakada 2021-08-12 10:42:33 +09:00
parent 573eef7c89
commit 611da9faef
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -61,7 +61,7 @@ NORETURN(void rb_syserr_fail_str(int, VALUE));
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);