dart-lang / dart-lang/native

Convert allocation to `@Native` leaf FFI calls

Open
#922 0 comments 0 reactions 1 assignee Claimed by @dcharkes View on GitHub
package:ffi
Dominant language
Dart
Stars
275
Forks
144
Avg merge
2d 10h
Merged PRs (30d)
47

Description

https://github.com/dart-lang/ffi/blob/main/lib/src/allocation.dart uses `DynamicLibrary.process` on non-Windows which can be converted to `@Native`s which default to process lookup.

We need to double-check if `ole32.dll` is always loaded, if so, we can also convert the Windows path to `@Native`.

Also, the calls should all be leaf-calls.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.