dart-lang / native

Dart packages related to FFI and native assets bundling.
BSD 3-Clause "New" or "Revised" License
115 stars 40 forks source link

Alignment is ignored during calloc.allocate / malloc.allocate #960

Open wiomoc opened 7 months ago

wiomoc commented 7 months ago

calloc.allocate and malloc.allocate ignoring the alignment argument without any further warning nor is this non conformance documented

dcharkes commented 7 months ago

I thought we already had an issue tracking this.

This is currently blocked by missing the feature in the Dart SDK, it's not passing alignment:

dcharkes commented 7 months ago

@wiomoc Do you have a specific type that requires more alignment than that it is getting? (Then we can add it as a test when addressing this. 👌 )