Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wiomoc opened this issue Feb 2, 2024 · 2 comments
Open

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

wiomoc opened this issue Feb 2, 2024 · 2 comments
Labels
package:ffi waiting-on-dart-ffi Issues which are blocked by lacking suppport in dart:ffi

Comments

@wiomoc
Copy link

wiomoc commented Feb 2, 2024

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

@dcharkes
Copy link
Collaborator

dcharkes commented Feb 2, 2024

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 dcharkes added waiting-on-dart-ffi Issues which are blocked by lacking suppport in dart:ffi package:ffi labels Feb 2, 2024
@dcharkes
Copy link
Collaborator

dcharkes commented Feb 2, 2024

@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. 👌 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:ffi waiting-on-dart-ffi Issues which are blocked by lacking suppport in dart:ffi
Projects
None yet
Development

No branches or pull requests

2 participants