Project

General

Profile

Actions

Feature #16290

closed

Add Ruby C API to acquire aligned memory

Added by watson1978 (Shizuo Fujita) about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:95663]

Description

Related to https://github.com/ruby/ruby/pull/2614

I have required to acquire aligned memory in Ruby C-extension library (https://github.com/rmagick/rmagick/pull/832).
I want an API that notifies acquired size to Ruby GC.

Of course, I know that we can implement a similar function in extension library using rb_gc_adjust_memory_usage().
However, if Ruby have the API, we can easily use it in some extension libraries.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0