Bug #5963

MacOS < 10.6 has no memalign

Added by Yura Sokolov almost 4 years ago. Updated almost 4 years ago.

ruby -v:ruby 2.0.0dev Backport:


I use definition of aligned_malloc from trunk in a st_pool_allocation patch for ruby_1_9_3,
and I have report from a man who has OS X 10.5.8 , that there is such error:

pool_alloc.inc.h:55:2: error: #error no memalign function

It seems that OS X before 10.6 had no memalign or posix_memalign function.
Possibly valloc could be used with similar HEAP_ALIGN_LOG determination as done for OpenBSD in http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/34404

As you can see, it is not possible to choose different version of MacOS here:

Related issues

Related to Backport193 - Backport #5942: Backport r34309-34310 r34312-32414 Rejected 01/29/2012


#1 Updated by Yui NARUSE almost 4 years ago

  • Status changed from Open to Rejected

We won't support Mac OS X 10.5 or prior on Ruby 2.0.0.
So it is WONTFIX.

We won't backport st_pool_allocation to 1.9.3, so it is also not a problem for us.

You can make a memalign function with mmap by allocating big area and strip the edge
if you want to backport locally.

#2 Updated by Yura Sokolov almost 4 years ago

Good day, Yui

Yui NARUSE wrote:

We won't support Mac OS X 10.5 or prior on Ruby 2.0.0.
So it is WONTFIX.

Ok, no questions. That's all I wanted to know.

Also available in: Atom PDF