diff options
Diffstat (limited to 'yjit/src/core.rs')
-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. |