diff options
author | Adam Hess <adamhess1991@gmail.com> | 2023-10-12 11:15:53 -0700 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-12-07 15:52:35 -0500 |
commit | 6816e8efcff3be75f8020cd1b0ea57d3cd664bbc (patch) | |
tree | 8f8484b955ba25e9df6a2038db0f156e7cbf71e4 /builtin.c | |
parent | b361a800c22e0248bf126d77e96a7bd4f9c34d1b (diff) | |
download | ruby-6816e8efcff3be75f8020cd1b0ea57d3cd664bbc.tar.gz |
Free everything at shutdown
when the RUBY_FREE_ON_SHUTDOWN environment variable is set, manually free memory at shutdown.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -58,6 +58,12 @@ rb_load_with_builtin_functions(const char *feature_name, const struct rb_builtin #endif void +rb_free_loaded_builtin_table(void) +{ + // do nothing +} + +void Init_builtin(void) { // nothing |