From f1ce4897f2eaf9a99c250e4707e3ab6f6bdacb74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Thu, 10 Oct 2019 17:04:59 +0900 Subject: make rb_raise a GVL-only function again Requested by ko1 that ability of calling rb_raise from anywhere outside of GVL is "too much". Give up that part, move the GVL aquisition routine into gc.c, and make our new gc_raise(). --- internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 6afd21d571..6d63bcf18d 100644 --- a/internal.h +++ b/internal.h @@ -1553,6 +1553,7 @@ NORETURN(void ruby_deprecated_internal_feature(const char *)); (ruby_deprecated_internal_feature(func), UNREACHABLE) VALUE rb_warning_warn(VALUE mod, VALUE str); PRINTF_ARGS(VALUE rb_warning_string(const char *fmt, ...), 1, 2); +NORETURN(void rb_vraise(VALUE, const char *, va_list)); /* eval.c */ VALUE rb_refinement_module_get_refined_class(VALUE module); -- cgit v1.2.3