diff options
author | Takashi Kokubun <[email protected]> | 2022-11-16 16:30:39 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-16 16:30:39 -0800 |
commit | a777ec0d85f1d52ddf531931c7457a65961f0082 (patch) | |
tree | 5fce934b0b0ccba22d12f347231b1aefc674e4dc /yjit/src | |
parent | 3259aceb3514892450664828b39a78cc95a412fa (diff) |
YJIT: Shrink version lists after mutation (#6749)
Notes
Notes:
Merged-By: k0kubun <[email protected]>
Diffstat (limited to 'yjit/src')
-rw-r--r-- | yjit/src/core.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/src/core.rs b/yjit/src/core.rs index ad74067ea0..78b4cbdb0c 100644 --- a/yjit/src/core.rs +++ b/yjit/src/core.rs @@ -878,6 +878,7 @@ fn add_block_version(blockref: &BlockRef, cb: &CodeBlock) { let version_list = get_or_create_version_list(block.blockid); version_list.push(blockref.clone()); + version_list.shrink_to_fit(); // By writing the new block to the iseq, the iseq now // contains new references to Ruby objects. Run write barriers. |