Project

General

Profile

Actions

Feature #17356

open

Alignment of memory allocated through Fiddle struct's malloc

Added by AndreaRibuoli (Andrea Ribuoli) over 3 years ago. Updated over 3 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:101153]

Description

I am testing a low-level patch for Ruby 3 that inside gc.c replaces:

TRY_WITH_GC(size, mem = malloc(size));

with:

TRY_WITH_GC(size, mem = aligned_alloc(16,size));

This should allow me to control that Fiddle returns pointers quad-words aligned.

Is it possible to introduce a configure parameter to control this kind of setting?

Refer to issue opened on Fiddle.

Kind regards,

Andrea Ribuoli

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0