[前][次][番号順一覧][スレッド一覧]

ruby-changes:50358

From: normal <ko1@a...>
Date: Mon, 19 Feb 2018 06:03:20 +0900 (JST)
Subject: [ruby-changes:50358] normal:r62473 (trunk): thread.c: remove redundant USE_SIGALTSTACK #define

normal	2018-02-19 06:03:13 +0900 (Mon, 19 Feb 2018)

  New Revision: 62473

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62473

  Log:
    thread.c: remove redundant USE_SIGALTSTACK #define
    
    thread.c already includes vm_core.h where USE_SIGALTSTACK is
    defined, #include it explicitly (eval_intern.h already includes
    it)

  Modified files:
    trunk/thread.c
Index: thread.c
===================================================================
--- thread.c	(revision 62472)
+++ thread.c	(revision 62473)
@@ -73,6 +73,7 @@ https://github.com/ruby/ruby/blob/trunk/thread.c#L73
 #include "ruby/debug.h"
 #include "internal.h"
 #include "iseq.h"
+#include "vm_core.h"
 
 #ifndef USE_NATIVE_THREAD_PRIORITY
 #define USE_NATIVE_THREAD_PRIORITY 0
@@ -2243,10 +2244,6 @@ rb_threadptr_signal_exit(rb_thread_t *th https://github.com/ruby/ruby/blob/trunk/thread.c#L2244
     rb_threadptr_raise(th->vm->main_thread, 2, argv);
 }
 
-#if defined(POSIX_SIGNAL) && defined(SIGSEGV) && defined(HAVE_SIGALTSTACK)
-#define USE_SIGALTSTACK
-#endif
-
 int
 rb_ec_set_raised(rb_execution_context_t *ec)
 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]