Project

General

Profile

Actions

Bug #5963

closed

MacOS < 10.6 has no memalign

Added by funny_falcon (Yura Sokolov) almost 13 years ago. Updated almost 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
ruby 2.0.0dev
Backport:
[ruby-core:42341]

Description

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:
https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man3/posix_memalign.3.html


Related issues 1 (0 open1 closed)

Related to Backport193 - Backport #5942: Backport r34309-34310 r34312-32414Rejected01/29/2012Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0