From 4900a10689036211da79c8189ff7eba11c8c81ee Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sun, 14 Jul 2019 20:46:51 +0900 Subject: socket: use frozen string buffer when releasing GVL Thanks for the patch by normalperson (Eric Wong) [Bug #14204]. --- internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 4f9c5b1475..0539d49f5b 100644 --- a/internal.h +++ b/internal.h @@ -2080,8 +2080,6 @@ VALUE rb_id_quote_unprintable(ID); char *rb_str_fill_terminator(VALUE str, const int termlen); void rb_str_change_terminator_length(VALUE str, const int oldtermlen, const int termlen); VALUE rb_str_locktmp_ensure(VALUE str, VALUE (*func)(VALUE), VALUE arg); -VALUE rb_str_tmp_frozen_acquire(VALUE str); -void rb_str_tmp_frozen_release(VALUE str, VALUE tmp); VALUE rb_str_chomp_string(VALUE str, VALUE chomp); #ifdef RUBY_ENCODING_H VALUE rb_external_str_with_enc(VALUE str, rb_encoding *eenc); @@ -2376,6 +2374,8 @@ VALUE rb_gcd_gmp(VALUE x, VALUE y); int rb_grantpt(int fd); /* string.c (export) */ +VALUE rb_str_tmp_frozen_acquire(VALUE str); +void rb_str_tmp_frozen_release(VALUE str, VALUE tmp); #ifdef RUBY_ENCODING_H /* internal use */ VALUE rb_setup_fake_str(struct RString *fake_str, const char *name, long len, rb_encoding *enc); -- cgit v1.2.3