Skip to content
This repository was archived by the owner on Jan 28, 2024. It is now read-only.
This repository was archived by the owner on Jan 28, 2024. It is now read-only.

Check for runtime of memory & need of runtime.KeepAlive() #22

@dertseha

Description

@dertseha

The garbage collector can be aggressive in removing (finalizing) objects. With several methods in the API taking the raw pointer, which furthermore sometimes need to be stable for longer time for asynchronous operation, double-check whether the wrapper needs to keep some of the things "alive" (see runtime.KeepAlive()), or it needs explicit documentation.

Further input: Read up on proper use of unsafe.Pointer().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions