diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-25 20:29:09 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 20:29:09 +0900 |
commit | 69967ee64eac9ce65b83533a566d69d12a6046d0 (patch) | |
tree | b7012ba8b7ad5b1c99d7b1f9b2345ecd8117f433 /include | |
parent | 7ee26740e41f99d3da37df36b956237fbf36868e (diff) | |
download | ruby-69967ee64eac9ce65b83533a566d69d12a6046d0.tar.gz |
Revert "Finer-grained inline constant cache invalidation"
This reverts commits for [Feature #18589]:
* 8008fb7352abc6fba433b99bf20763cf0d4adb38
"Update formatting per feedback"
* 8f6eaca2e19828e92ecdb28b0fe693d606a03f96
"Delete ID from constant cache table if it becomes empty on ISEQ free"
* 629908586b4bead1103267652f8b96b1083573a8
"Finer-grained inline constant cache invalidation"
MSWin builds on AppVeyor have been crashing since the merger.
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/backward.h | 2 | ||||
-rw-r--r-- | include/ruby/internal/intern/vm.h | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/include/ruby/backward.h b/include/ruby/backward.h index f5662f13d5..f804c2c36e 100644 --- a/include/ruby/backward.h +++ b/include/ruby/backward.h @@ -15,6 +15,8 @@ #define RBIMPL_ATTR_DEPRECATED_INTERNAL(ver) RBIMPL_ATTR_DEPRECATED(("since "#ver", also internal")) #define RBIMPL_ATTR_DEPRECATED_INTERNAL_ONLY() RBIMPL_ATTR_DEPRECATED(("only for internal use")) +RBIMPL_ATTR_DEPRECATED_INTERNAL_ONLY() void rb_clear_constant_cache(void); + /* from version.c */ #if defined(RUBY_SHOW_COPYRIGHT_TO_DIE) && !!(RUBY_SHOW_COPYRIGHT_TO_DIE+0) # error RUBY_SHOW_COPYRIGHT_TO_DIE is deprecated diff --git a/include/ruby/internal/intern/vm.h b/include/ruby/internal/intern/vm.h index 76af796b54..eb53c7a356 100644 --- a/include/ruby/internal/intern/vm.h +++ b/include/ruby/internal/intern/vm.h @@ -253,13 +253,6 @@ void rb_undef_alloc_func(VALUE klass); rb_alloc_func_t rb_get_alloc_func(VALUE klass); /** - * Clears the inline constant caches associated with a particular ID. Extension - * libraries should not bother with such things. Just forget about this API (or - * even, the presence of constant caches). - */ -void rb_clear_constant_cache_for_id(ID id); - -/** * Resembles `alias`. * * @param[out] klass Where to define an alias. |