diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2022-11-29 15:37:29 -0500 |
---|---|---|
committer | Maxime Chevalier-Boisvert <maximechevalierb@gmail.com> | 2022-11-30 12:23:50 -0500 |
commit | 03f1e6a2aa8aa1d5aef79a33a243372a457f0fa2 (patch) | |
tree | e2a152906a13939ee1d9c04fba3f9f12ce00d918 /bootstraptest/test_yjit.rb | |
parent | 817193104dad2eb3f7b9593e2164cc88b3a54887 (diff) | |
download | ruby-03f1e6a2aa8aa1d5aef79a33a243372a457f0fa2.tar.gz |
YJIT: Fix IseqPayload::pages memory bloat
HashSet::clear() doesn't deallocate the backing buffer and shrink the
capacity. Replace with a 0-capcity set instead so we reclaim some memory
each code GC.
Diffstat (limited to 'bootstraptest/test_yjit.rb')
0 files changed, 0 insertions, 0 deletions