summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-04 02:46:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-04 02:46:33 +0000
commit1655b26f678e7df7cb840194489095bea24e8dee (patch)
tree3d9f86b9562462323eecd50bc4574b1e6d9b1834 /thread.c
parenta7e1820a9f9c0b6c84c281c171c105a34aa16738 (diff)
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 5c1eabb223..8c72ffd1cd 100644
--- a/thread.c
+++ b/thread.c
@@ -1110,8 +1110,9 @@ rb_thread_blocking_region_end(struct rb_blocking_region_buffer *region)
*
* 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(