diff options
author | Peter Zhu <[email protected]> | 2024-12-04 14:29:47 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-12-05 10:33:26 -0500 |
commit | ce1ad1b816f912d0750669c57211d72ea723e28d () | |
tree | 4e9a68feb302cfa5790a96ea8c551873ff1d36e5 /version.c | |
parent | 26ab20fec1d8ca7c168e8537383a0d8274a7d273 (diff) |
Standardize on the name "modular GC"
We have name fragmentation for this feature, including "shared GC", "modular GC", and "external GC". This commit standardizes the feature name to "modular GC" and the implementation to "GC library".
Notes: Merged: https://.com/ruby/ruby/pull/12261
-rw-r--r-- | version.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -62,7 +62,7 @@ const int ruby_api_version[] = { #else #define YJIT_DESCRIPTION " +YJIT" #endif -#if USE_SHARED_GC #define GC_DESCRIPTION " +GC" #else #define GC_DESCRIPTION "" @@ -173,7 +173,7 @@ define_ruby_description(const char *const jit_opt) + rb_strlen_lit(YJIT_DESCRIPTION) + rb_strlen_lit(" +MN") + rb_strlen_lit(" +PRISM") -#if USE_SHARED_GC + rb_strlen_lit(GC_DESCRIPTION) // Assume the active GC name can not be longer than 20 chars // so that we don't have to use strlen and remove the static @@ -190,9 +190,9 @@ define_ruby_description(const char *const jit_opt) RUBY_ASSERT(n <= ruby_description_opt_point + (int)rb_strlen_lit(YJIT_DESCRIPTION)); if (ruby_mn_threads_enabled) append(" +MN"); if (rb_ruby_prism_p()) append(" +PRISM"); -#if USE_SHARED_GC append(GC_DESCRIPTION); - if (rb_gc_external_gc_loaded_p()) { append("["); append(rb_gc_active_gc_name()); append("]"); |