diff options
author | Adam Hess <[email protected]> | 2023-10-12 11:15:53 -0700 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2023-12-07 15:52:35 -0500 |
commit | 6816e8efcff3be75f8020cd1b0ea57d3cd664bbc (patch) | |
tree | 8f8484b955ba25e9df6a2038db0f156e7cbf71e4 /internal/encoding.h | |
parent | b361a800c22e0248bf126d77e96a7bd4f9c34d1b (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/encoding.h')
-rw-r--r-- | internal/encoding.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/encoding.h b/internal/encoding.h index a3b81bd388..11ffa6d83d 100644 --- a/internal/encoding.h +++ b/internal/encoding.h @@ -29,4 +29,7 @@ void rb_enc_set_base(const char *name, const char *orig); int rb_enc_set_dummy(int index); PUREFUNC(int rb_data_is_encoding(VALUE obj)); +/* vm.c */ +void rb_free_global_enc_table(void); + #endif /* INTERNAL_ENCODING_H */ |