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

ruby-changes:38880

From: usa <ko1@a...>
Date: Thu, 18 Jun 2015 23:39:40 +0900 (JST)
Subject: [ruby-changes:38880] usa:r50961 (trunk): * thread.c (rb_thread_safe_level): fix document. $SAFE=3 is obsolete.

usa	2015-06-18 23:39:21 +0900 (Thu, 18 Jun 2015)

  New Revision: 50961

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

  Log:
    * thread.c (rb_thread_safe_level): fix document.  $SAFE=3 is obsolete.
      [ci skip]

  Modified files:
    trunk/ChangeLog
    trunk/thread.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50960)
+++ ChangeLog	(revision 50961)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jun 18 23:38:07 2015  NAKAMURA Usaku  <usa@r...>
+
+	* thread.c (rb_thread_safe_level): fix document.  $SAFE=3 is obsolete.
+	  [ci skip]
+
 Thu Jun 18 23:25:51 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/extmk.rb: configure intersection of with-ext and not
Index: thread.c
===================================================================
--- thread.c	(revision 50960)
+++ thread.c	(revision 50961)
@@ -2701,9 +2701,9 @@ rb_thread_stop_p(VALUE thread) https://github.com/ruby/ruby/blob/trunk/thread.c#L2701
  *  Returns the safe level in effect for <i>thr</i>. Setting thread-local safe
  *  levels can help when implementing sandboxes which run insecure code.
  *
- *     thr = Thread.new { $SAFE = 3; sleep }
+ *     thr = Thread.new { $SAFE = 1; sleep }
  *     Thread.current.safe_level   #=> 0
- *     thr.safe_level              #=> 3
+ *     thr.safe_level              #=> 1
  */
 
 static VALUE

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

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