summaryrefslogtreecommitdiff
path: root/spec/ruby/language/lambda_spec.rb
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-04-01 10:26:54 -0400
committerPeter Zhu <peter@peterzhu.ca>2022-04-01 10:27:18 -0400
commitfe21b7794af0cdb7ebd502e2c0da38c68fd89839 (patch)
tree67e086ac68ac88787bd2cd8d771b5f51d66c3626 /spec/ruby/language/lambda_spec.rb
parentd1d48cb690fdad855da94b2a2d11721428bc06ba (diff)
Use mmap for heap page allocation only
Currently, rb_aligned_malloc uses mmap if Ruby heap pages can be allocated through mmap (when system heap page size <= Ruby heap page size). If Ruby heap page sizes is increased to 64KiB, then mmap will be used on systems with 64KiB system page sizes. However, the transient heap also uses rb_aligned_malloc and requires 32KiB alignment. This would break in the current implementation since it would allocate sizes through mmap that is not a multiple of the system page size. This commit adds heap_page_body_allocate which will use mmap when possible and changes rb_aligned_malloc to not use mmap (and only use posix_memalign).
Diffstat (limited to 'spec/ruby/language/lambda_spec.rb')
0 files changed, 0 insertions, 0 deletions