Skip to content

Remove static fields in FfiNative's #47625

Closed
@mkustermann

Description

@mkustermann

Right now the FFI kernel transformer lowers @FfiNatives into static fields containing a lazily populated closure that is created by calling a resolution function.

Old natives do not require a static field, so this is in some ways a regression when switching from old natives to ffi natives.

We'd like to avoid usage of static fields for several reasons: It increases the root set in a way that scales as O(num-isolates x num-ffi-natives).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-ffitype-performanceIssue relates to performance or code size

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions