summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2022-04-06 09:55:23 +0100
committerAaron Patterson <aaron.patterson@gmail.com>2022-06-13 10:11:27 -0700
commit56cc3e99b6b9ec004255280337f6b8353f5e5b06 (patch)
tree2e5fd33e789155aa65a6b9329c334dff029b8349 /include/ruby
parentf8502a26990c652a2c3c1131614230fec446ab25 (diff)
Move String RVALUES between pools
And re-embed any strings that can now fit inside the slot they've been moved to
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5986
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/internal/core/rstring.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/internal/core/rstring.h b/include/ruby/internal/core/rstring.h
index e394ab7dca..7b4953ab8c 100644
--- a/include/ruby/internal/core/rstring.h
+++ b/include/ruby/internal/core/rstring.h
@@ -556,6 +556,9 @@ RSTRING_LENINT(VALUE str)
return rb_long2int(RSTRING_LEN(str));
}
+bool
+rb_str_shared_root_p(VALUE str);
+
/**
* Convenient macro to obtain the contents and length at once.
*