From: nagachika00@... Date: 2014-07-03T03:30:18+00:00 Subject: [ruby-core:63534] [ruby-trunk - Feature #9893] [Closed] [RFC] README.EXT: document rb_gc_register_mark_object Issue #9893 has been updated by Tomoyuki Chikanaga. Status changed from Assigned to Closed sorry for noise. This is duplicated ticket (#9894) ---------------------------------------- Feature #9893: [RFC] README.EXT: document rb_gc_register_mark_object https://bugs.ruby-lang.org/issues/9893#change-47582 * Author: Eric Wong * Status: Closed * Priority: Low * Assignee: Koichi Sasada * Category: doc * Target version: current: 2.2.0 ---------------------------------------- ref [ruby-core:62862] Any comment on officially supporting this as part of the C API? diff --git a/README.EXT b/README.EXT index d66d6c5..dded850 100644 --- a/README.EXT +++ b/README.EXT @@ -1176,6 +1176,12 @@ void rb_global_variable(VALUE *var) Tells GC to protect these variables. +void rb_gc_register_mark_object(VALUE val) + + Tells GC to protect the object referenced by val. This requires less + memory to track than rb_global_variable, but may only be used if the C == Constant Definition void rb_define_const(VALUE klass, const char *name, VALUE val) :: -- https://bugs.ruby-lang.org/