summaryrefslogtreecommitdiff
path: root/internal/error.h
diff options
context:
space:
mode:
authorAdam Hess <[email protected]>2023-10-12 11:15:53 -0700
committerPeter Zhu <[email protected]>2023-12-07 15:52:35 -0500
commit6816e8efcff3be75f8020cd1b0ea57d3cd664bbc (patch)
tree8f8484b955ba25e9df6a2038db0f156e7cbf71e4 /internal/error.h
parentb361a800c22e0248bf126d77e96a7bd4f9c34d1b (diff)
Free everything at shutdown
when the RUBY_FREE_ON_SHUTDOWN environment variable is set, manually free memory at shutdown. Co-authored-by: Nobuyoshi Nakada <[email protected]> Co-authored-by: Peter Zhu <[email protected]>
Diffstat (limited to 'internal/error.h')
-rw-r--r--internal/error.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/error.h b/internal/error.h
index 5fee468929..7e41f134d7 100644
--- a/internal/error.h
+++ b/internal/error.h
@@ -169,6 +169,9 @@ VALUE rb_syserr_new_path_in(const char *func_name, int n, VALUE path);
#endif
RUBY_SYMBOL_EXPORT_END
+/* vm.c */
+void rb_free_warning(void);
+
static inline void
rb_raise_cstr_i(VALUE etype, VALUE mesg)
{