From d76854f1668fc6ee1cd8af15213d6e225269a9e4 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Thu, 6 Oct 2022 11:37:16 -0400 Subject: [PATCH] Update NEWS about [Feature #18589] --- NEWS.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/NEWS.md b/NEWS.md index eb1ffbe438..46c8f64421 100644 --- a/NEWS.md +++ b/NEWS.md @@ -282,6 +282,13 @@ The following deprecated APIs are removed. ## Implementation improvements * Fixed several race conditions in `Kernel#autoload`. [[Bug #18782]] +* Cache invalidation for expressions referencing constants is now + more fine-grained. `RubyVM.stat(:global_constant_state)` was + removed because it was closely tied to the previous caching scheme + where setting any constant invalidates all caches in the system. + New keys, `:constant_cache_invalidations` and `:constant_cache_misses`, + were introduced to help with use cases for `:global_constant_state`. + [[Feature #18589]] ## JIT @@ -343,3 +350,4 @@ The following deprecated APIs are removed. [Feature #19026]: https://bugs.ruby-lang.org/issues/19026 [Feature #16122]: https://bugs.ruby-lang.org/issues/16122 [Feature #18630]: https://bugs.ruby-lang.org/issues/18630 +[Feature #18589]: https://bugs.ruby-lang.org/issues/18589