Mention rb_gc_register_mark_object [ci skip]
[Feature #9894] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5300cdc0c0
commit
576aaec6f9
@ -1325,8 +1325,13 @@ void rb_define_hooked_variable(const char *name, VALUE *var, VALUE (*getter)(),
|
|||||||
|
|
||||||
void rb_global_variable(VALUE *var) ::
|
void rb_global_variable(VALUE *var) ::
|
||||||
|
|
||||||
GCのため,Rubyプログラムからはアクセスされないが, Rubyオブ
|
マークする必要のあるRubyオブジェクトを含む大域変数を,GC
|
||||||
ジェクトを含む大域変数をマークする.
|
によって開放されないように保護する.
|
||||||
|
|
||||||
|
void rb_gc_register_mark_object(VALUE *var) ::
|
||||||
|
|
||||||
|
マークする必要のあるRubyオブジェクトを,GCによって開放さ
|
||||||
|
れないように登録する.
|
||||||
|
|
||||||
=== 定数
|
=== 定数
|
||||||
|
|
||||||
|
@ -895,6 +895,10 @@ but are not exported to the Ruby world. You need to protect them by
|
|||||||
|
|
||||||
void rb_global_variable(VALUE *var)
|
void rb_global_variable(VALUE *var)
|
||||||
|
|
||||||
|
or the objects themselves by
|
||||||
|
|
||||||
|
void rb_gc_register_mark_object(VALUE object)
|
||||||
|
|
||||||
=== Prepare extconf.rb
|
=== Prepare extconf.rb
|
||||||
|
|
||||||
If the file named extconf.rb exists, it will be executed to generate
|
If the file named extconf.rb exists, it will be executed to generate
|
||||||
@ -1337,8 +1341,11 @@ void rb_define_hooked_variable(const char *name, VALUE *var, VALUE (*getter)(),
|
|||||||
|
|
||||||
void rb_global_variable(VALUE *var) ::
|
void rb_global_variable(VALUE *var) ::
|
||||||
|
|
||||||
GC requires C global variables which hold Ruby values to be marked.
|
Tells GC to protect C global variable, which holds Ruby value to be marked.
|
||||||
rb_global_variable tells GC to protect these variables.
|
|
||||||
|
void rb_gc_register_mark_object(VALUE object) ::
|
||||||
|
|
||||||
|
Tells GC to protect the +object+, which may not be referenced anywhere.
|
||||||
|
|
||||||
=== Constant Definition
|
=== Constant Definition
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user