Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 3.0% on proxy.golang.org
Top 0.1% dependent packages on proxy.golang.org
Top 0.2% dependent repos on proxy.golang.org
Top 6.8% forks on proxy.golang.org
Top 0.2% docker downloads on proxy.golang.org

proxy.golang.org : go4.org/unsafe/assume-no-moving-gc

Package go4.org/unsafe/assume-no-moving-gc exists so you can depend on it from unsafe code that wants to declare that it assumes that the Go runtime does not use a moving garbage collector. Specifically, it asserts that the caller is playing stupid games with the addresses of heap-allocated values. It says nothing about values that Go's escape analysis keeps on the stack. Ensuring things aren't stack-allocated is the caller's responsibility. This package is then updated as needed for new Go versions when that is still the case and explodes at runtime with a failure otherwise, with the idea that it's better to not start at all than to silently corrupt your data at runtime. To use: There is no API. As of Go 1.21, this package asks the Go runtime whether it can move heap objects around. If you get an error on versions prior to that, go get go4.org/unsafe/assume-no-moving-gc@latest and things will work. The GitHub repo is at https://github.com/go4org/unsafe-assume-no-moving-gc

Registry - Source - Documentation - JSON
purl: pkg:golang/go4.org/unsafe/assume-no-moving-gc
License: BSD-3-Clause
Latest release: 7 months ago
First release: over 2 years ago
Namespace: go4.org/unsafe
Dependent packages: 917
Dependent repositories: 1,157
Stars: 23 on GitHub
Forks: 9 on GitHub
Docker dependents: 349
Docker downloads: 507,342,316
Total Commits: 8
Committers: 6
Average commits per author: 1.333
Development Distribution Score (DDS): 0.625
More commit stats: commits.ecosyste.ms
See more repository details: repos.ecosyste.ms
Last synced: 20 days ago

    Loading...
    Readme
    Loading...