summaryrefslogtreecommitdiff
path: root/symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/symbol.c b/symbol.c
index 43be046856..5f95769292 100644
--- a/symbol.c
+++ b/symbol.c
@@ -113,6 +113,15 @@ rb_sym_global_symbols_mark(void)
rb_gc_mark_movable(symbols->dsymbol_fstr_hash);
}
+void
+rb_sym_global_symbols_update_references(void)
+{
+ rb_symbols_t *symbols = &ruby_global_symbols;
+
+ symbols->ids = rb_gc_location(symbols->ids);
+ symbols->dsymbol_fstr_hash = rb_gc_location(symbols->dsymbol_fstr_hash);
+}
+
WARN_UNUSED_RESULT(static VALUE dsymbol_alloc(rb_symbols_t *symbols, const VALUE klass, const VALUE str, rb_encoding *const enc, const ID type));
WARN_UNUSED_RESULT(static VALUE dsymbol_check(rb_symbols_t *symbols, const VALUE sym));
WARN_UNUSED_RESULT(static ID lookup_str_id(VALUE str));