Project

General

Profile

Bug #18394

Updated by peterzhu2118 (Peter Zhu) over 2 years ago

Please backport commits [0130e17a410d60a10e7041ce98748b8de6946971](https://github.com/ruby/ruby/commit/0130e17a410d60a10e7041ce98748b8de6946971) and [32b7dcfb56a417c1d1c354102351fc1825d653bf](https://github.com/ruby/ruby/commit/32b7dcfb56a417c1d1c354102351fc1825d653bf) to Ruby 3.0. 

 The read barrier is required for both manual and automatic compaction. Not setting up the read barrier can cause crashes such as #18133. 

 Edit: 

 In addition to the two commits above, please also backport the attached patch. The attached patch switches `posix_memalign` to `mmap` for allocation of pages. 

Back