ruby-changes:32635
From: nobu <ko1@a...>
Date: Mon, 27 Jan 2014 22:09:29 +0900 (JST)
Subject: [ruby-changes:32635] nobu:r44714 (trunk): signal.c: static literal string
nobu 2014-01-27 22:09:26 +0900 (Mon, 27 Jan 2014) New Revision: 44714 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44714 Log: signal.c: static literal string * signal.c (sigsegv): make message string static to suppress unnecessary copy. Modified files: trunk/signal.c Index: signal.c =================================================================== --- signal.c (revision 44713) +++ signal.c (revision 44714) @@ -691,7 +691,7 @@ sigsegv(int sig SIGINFO_ARG) https://github.com/ruby/ruby/blob/trunk/signal.c#L691 { if (segv_received) { ssize_t RB_UNUSED_VAR(err); - char msg[] = "SEGV received in SEGV handler\n"; + static const char msg[] = "SEGV received in SEGV handler\n"; err = write(2, msg, sizeof(msg)); ruby_abort(); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/