summaryrefslogtreecommitdiff
path: root/spec/ruby/core
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-05-04 09:50:48 -0400
committerPeter Zhu <peter@peterzhu.ca>2022-05-09 08:45:24 -0400
commit033e58cf2c6829e14fa38e0a364911361090aa83 (patch)
treef3f1f49a431a97905b1cba0217b95cca5bcc6910 /spec/ruby/core
parenta41fbc2c95cc2f7ba9071aca091d8262a8f2cf60 (diff)
Fix gc_page_sweep when last bitmap plane is not used
Depending on alignment, the last bitmap plane may not used. Then it will appear as if all of the objects on that plane is unmarked, which will cause a buffer overrun when we try to free the object. This commit changes the loop to calculate the number of planes used (bitmap_plane_count).
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5885
Diffstat (limited to 'spec/ruby/core')
0 files changed, 0 insertions, 0 deletions