diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2023-11-29 18:10:13 -0500 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2023-11-30 11:59:32 -0500 |
| commit | 85092ecd6f5c4d12d0cb1d6dfa7040337a4f558b (patch) | |
| tree | 5a0a74b7f7fdb437db1014320eb62016181cfc1b /test/ruby | |
| parent | d048bae96b4108104cd0e77aad44962a39a5796f (diff) | |
Fix imemo_env corruption under auto compaction
Previously, vm_make_env_each() did:
1. ALLOC env_body
2. Copy locals into env_body
3. Allocate imemo_env
4. Set up imemo_env with env_body
If compaction runs during (3), locals copied to env_body could be
moved and the imemo_env could end up with invalid references.
Move (2) down so it reads references after potential movement.
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
