mirror of
https://github.com/ruby/ruby.git
synced 2026-10-29 00:46:26 +08:00
Method coverage rebuilt its result by walking the heap for method entries, so a shadowed or removed method that was never called could be reclaimed by GC and vanish from the result depending on GC timing. Record each defined method entry in me_set as it is defined, and compute the result from me_set and cme2counter instead of walking the heap. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>