1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* README.EXT.ja: add note about mark and free.

(now we are testing auto version.h updating.)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2008-06-21 15:40:59 +00:00
parent 56ae14a4f7
commit d8bac55788
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Sun Jun 22 00:38:45 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* README.EXT.ja: add note about mark and free.
Sun Jun 22 00:01:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* io.c (rb_io_binmode_p, argf_binmode_p, Init_IO): new method

View file

@ -527,6 +527,11 @@ free
関数がガーベージコレクタから呼ばれます.これが-1の場合は
純に開放されます.
markおよびfree関数はGC実行中に呼び出されます.
なお, GC実行中はRubyオブジェクトのアロケーションは禁止されま
す. よって, markおよびfree関数でRubyオブジェクトのアロケーシ
ョンは行わないでください.
Cの構造体の割当とDataオブジェクトの生成を同時に行うマクロと
して以下のものが提供されています.