diff options
author | Peter Zhu <[email protected]> | 2023-08-21 14:13:24 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2023-08-27 09:39:29 -0400 |
commit | b7237e3bbd36e7c520c4cbaf1f866b6dcc265a99 (patch) | |
tree | 45a80f00e101e5460f210d6c55c0a1a9b42a825c /util.c | |
parent | 5c98ee02d2ac7f20ab978be7645801adf03e4302 (diff) |
Free all empty heap pages in Process.warmup
This commit adds `free_empty_pages` which frees all empty heap pages and
moves the number of pages freed to the allocatable pages counter. This
is used in Process.warmup to improve performance because page
invalidation from copy-on-write is slower than allocating a new page.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8257
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions