Add some "cold" marks
This commit is contained in:
parent
edd27e120e
commit
58d82eacef
Notes:
git
2021-08-14 23:12:27 +09:00
6
error.c
6
error.c
@ -972,7 +972,7 @@ rb_builtin_class_name(VALUE x)
|
|||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
NORETURN(static void unexpected_type(VALUE, int, int));
|
COLDFUNC NORETURN(static void unexpected_type(VALUE, int, int));
|
||||||
#define UNDEF_LEAKED "undef leaked to the Ruby space"
|
#define UNDEF_LEAKED "undef leaked to the Ruby space"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -1001,7 +1001,7 @@ rb_check_type(VALUE x, int t)
|
|||||||
{
|
{
|
||||||
int xt;
|
int xt;
|
||||||
|
|
||||||
if (x == Qundef) {
|
if (RB_UNLIKELY(x == Qundef)) {
|
||||||
rb_bug(UNDEF_LEAKED);
|
rb_bug(UNDEF_LEAKED);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1022,7 +1022,7 @@ rb_check_type(VALUE x, int t)
|
|||||||
void
|
void
|
||||||
rb_unexpected_type(VALUE x, int t)
|
rb_unexpected_type(VALUE x, int t)
|
||||||
{
|
{
|
||||||
if (x == Qundef) {
|
if (RB_UNLIKELY(x == Qundef)) {
|
||||||
rb_bug(UNDEF_LEAKED);
|
rb_bug(UNDEF_LEAKED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user