[#101179] Spectre Mitigations — Amel <amel.smajic@...>
Hi there!
5 messages
2020/12/01
[#101694] Ruby 3.0.0 Released — "NARUSE, Yui" <naruse@...>
V2UgYXJlIHBsZWFzZWQgdG8gYW5ub3VuY2UgdGhlIHJlbGVhc2Ugb2YgUnVieSAzLjAuMC4gRnJv
4 messages
2020/12/25
[ruby-core:101186] [Ruby master Feature#17356] Alignment of memory allocated through Fiddle struct's malloc
From:
eregontp@...
Date:
2020-12-01 17:46:51 UTC
List:
ruby-core #101186
Issue #17356 has been updated by Eregon (Benoit Daloze). IMHO, this feature is something that Fiddle or FFI should handle. They can call malloc/posix_memalign/etc themselves of course. I don't see a need to change anything so fundamental in the GC. Fiddle/FFI can use finalizers if automatically freeing the memory is desired. ---------------------------------------- Feature #17356: Alignment of memory allocated through Fiddle struct's malloc https://bugs.ruby-lang.org/issues/17356#change-88867 * Author: AndreaRibuoli (Andrea Ribuoli) * Status: Open * Priority: Normal ---------------------------------------- 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](https://github.com/ruby/fiddle/issues/53). Kind regards, Andrea Ribuoli -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>