YJIT: Shrink version lists after mutation (#6749)
This commit is contained in:
parent
3259aceb35
commit
a777ec0d85
Notes:
git
2022-11-17 00:31:06 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user