https://github.com/cockroachdb/c-jemalloc
🚫 DEPRECATED
https://github.com/cockroachdb/c-jemalloc
Last synced: 5 months ago
JSON representation
🚫 DEPRECATED
- Host: GitHub
- URL: https://github.com/cockroachdb/c-jemalloc
- Owner: cockroachdb
- License: other
- Archived: true
- Created: 2015-11-02T02:18:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-11T17:46:36.000Z (about 9 years ago)
- Last Synced: 2025-10-20T02:58:23.065Z (8 months ago)
- Language: C
- Homepage:
- Size: 780 KB
- Stars: 11
- Watchers: 45
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# jemalloc
This is a go-gettable version of the jemalloc allocator for use in Go code that
needs to link against jemalloc but wants to integrate with `go get` and
`go build`.
To use in your project you need to import the package and set appropriate cgo flag directives:
```
import _ "github.com/cockroachdb/c-jemalloc"
// #cgo CPPFLAGS: -I /c-jemalloc/internal/include
// #cgo darwin LDFLAGS: -Wl,-undefined -Wl,dynamic_lookup
// #cgo !darwin LDFLAGS: -Wl,-unresolved-symbols=ignore-all
import "C"
```