summaryrefslogtreecommitdiff
path: root/ext/cgi/escape
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-20 04:09:40 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-20 04:22:29 +0900
commitc1461c927b123468ba83713676dcda48e51c8ec1 (patch)
treea3b3e3189cd88828ed9945dc7e305e2c056635e9 /ext/cgi/escape
parent362138004624f0d8664c16da4c0d5133ac213942 (diff)
cgi/escape is ractor-safe
Diffstat (limited to 'ext/cgi/escape')
-rw-r--r--ext/cgi/escape/escape.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/cgi/escape/escape.c b/ext/cgi/escape/escape.c
index 47188819cd..77627e2f03 100644
--- a/ext/cgi/escape/escape.c
+++ b/ext/cgi/escape/escape.c
@@ -388,6 +388,10 @@ cgiesc_unescape(int argc, VALUE *argv, VALUE self)
void
Init_escape(void)
{
+#if HAVE_RB_EXT_RACTOR_SAFE
+ rb_ext_ractor_safe(true);
+#endif
+
id_accept_charset = rb_intern_const("@@accept_charset");
InitVM(escape);
}