ruby-changes:46950
From: nobu <ko1@a...>
Date: Mon, 12 Jun 2017 13:35:58 +0900 (JST)
Subject: [ruby-changes:46950] nobu:r59064 (trunk): gc.c: duplicate rb_iseq_path by RSTRING_PTR
nobu 2017-06-12 13:35:52 +0900 (Mon, 12 Jun 2017) New Revision: 59064 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59064 Log: gc.c: duplicate rb_iseq_path by RSTRING_PTR Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 59063) +++ gc.c (revision 59064) @@ -9208,9 +9208,10 @@ static void https://github.com/ruby/ruby/blob/trunk/gc.c#L9208 rb_raw_iseq_info(char *buff, const int buff_size, const rb_iseq_t *iseq) { if (iseq->body->location.label) { + VALUE path = rb_iseq_path(iseq); snprintf(buff, buff_size, "%s %s@%s:%d", buff, RSTRING_PTR(iseq->body->location.label), - RSTRING_PTR(rb_iseq_path(iseq)), + RSTRING_PTR(path), FIX2INT(iseq->body->location.first_lineno)); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/