summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2020-11-25 16:35:40 -0500
committerAaron Patterson <aaron.patterson@gmail.com>2021-01-26 16:24:01 -0800
commit216e6605a47fccbbadcb6b0b7e81dcf21547e14c (patch)
treee7fe7a5e5c3f65ef1a5dc20af394c09885ddceae /include/ruby
parent646131448eea616dfb388cfea84e34358caa7b47 (diff)
Add compaction notes for class/module creation C APIs
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3885
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/internal/module.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ruby/internal/module.h b/include/ruby/internal/module.h
index 0f2dfdb1be..1dc6b820cc 100644
--- a/include/ruby/internal/module.h
+++ b/include/ruby/internal/module.h
@@ -25,6 +25,10 @@
RBIMPL_SYMBOL_EXPORT_BEGIN()
+/**
+ * GC compaction note: class and modules returned by these four functions
+ * do not move.
+ */
VALUE rb_define_class(const char*,VALUE);
VALUE rb_define_module(const char*);
VALUE rb_define_class_under(VALUE, const char*, VALUE);