ruby-changes:52470
From: k0kubun <ko1@a...>
Date: Tue, 11 Sep 2018 20:01:22 +0900 (JST)
Subject: [ruby-changes:52470] k0kubun:r64679 (trunk): vm_insnhelper.c: stop unnecessarily using rb_sprintf
k0kubun 2018-09-11 20:01:18 +0900 (Tue, 11 Sep 2018) New Revision: 64679 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64679 Log: vm_insnhelper.c: stop unnecessarily using rb_sprintf Modified files: trunk/vm_insnhelper.c Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 64678) +++ vm_insnhelper.c (revision 64679) @@ -3926,10 +3926,8 @@ vm_canary_is_found_dead(enum ruby_vminsn https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3926 const char *insn = rb_insns_name(i); VALUE inspection = rb_inspect(c); const char *str = StringValueCStr(inspection); - VALUE message = rb_sprintf("dead canary found at %s: %s", insn, str); - const char *msg = StringValueCStr(message); - rb_bug("%s", msg); + rb_bug("dead canary found at %s: %s", insn, str); } #elif !defined(MJIT_HEADER) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/