Skip to content
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

replacing runtime.KeepAlive with runtime.Pinner #1226

Closed
wants to merge 1 commit into from

Commits on Nov 20, 2023

  1. feat: use runtime.Pinner to pin Go objects

    We currently use runtime.KeepAlive to prevent Go objects
    from being collected by the Go GC but in some cases this
    is not sufficient. This is because these objects can be
    moved by the GC and it becomes important to pin in situations
    where pointers of such objects are passed into a syscall, for example.
    
    Signed-off-by: kwakubiney <kebiney@hotmail.com>
    kwakubiney committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    65d2ea3 View commit details
    Browse the repository at this point in the history