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

ruby-changes:24251

From: nobu <ko1@a...>
Date: Wed, 4 Jul 2012 11:46:41 +0900 (JST)
Subject: [ruby-changes:24251] nobu:r36302 (trunk): thread.c: fix rdoc

nobu	2012-07-04 11:46:33 +0900 (Wed, 04 Jul 2012)

  New Revision: 36302

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

  Log:
    thread.c: fix rdoc
    
    * thread.c (rb_thread_blocking_region): fix typo and the description
      in "Safe C API".  ruby_xmalloc(), ruby_xrealloc() never try acquire
      GVL automatically unless GC runs, but had race condtions without GVL
      acquired until r36284.

  Modified files:
    trunk/thread.c

Index: thread.c
===================================================================
--- thread.c	(revision 36301)
+++ thread.c	(revision 36302)
@@ -1110,8 +1110,9 @@
  *
  *   Safe C API:
  *     * rb_thread_interrupted() - check interrupt flag
- *     * ruby_xalloc(), ruby_xrealloc(), ruby_xfree() -
- *         if they called without GVL, acquire GVL automatically.
+ *     * ruby_xmalloc(), ruby_xrealloc(), ruby_xfree() -
+ *         they will work without GVL, and may acquire GVL
+ *         when GC is needed.
  */
 VALUE
 rb_thread_blocking_region(

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

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