summaryrefslogtreecommitdiff
path: root/test/ruby/test_proc.rb
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2023-08-11 15:16:30 +0100
committerMatt Valentine-House <matt@eightbitraptor.com>2023-09-18 14:34:38 +0100
commit8792e421ce5e501f87bdb449fe885e3a436a88f0 (patch)
tree46ee19f7f3bbe48019e981dd8cb584d8d4be3ae0 /test/ruby/test_proc.rb
parent404a1c032a334768607d1d72b111201d0d243cfe (diff)
Allow pages to be sorted by pinned slot count
By compacting into slots with pinned objects first, we improve the efficiency of compaction. As it is less likely that there will exist pages containing only pinned objects after compaction. This will increase the number of free pages left after compaction and enable us to free them. This used to be the default compaction method before it was removed (inadvertently?) during the introduction of auto_compaction. This commit will sort the pages by the pinned slot count at the start of a major GC that has been triggered by explicitly calling GC.compact (and thus setting objspace->flags.during_compaction). It works using the same method by which we sort the heap by empty slot count during GC.verify_compaction_references.
Diffstat (limited to 'test/ruby/test_proc.rb')
0 files changed, 0 insertions, 0 deletions