Skip to content
🚫 DEPRECATED
C Objective-C Perl C++ M4 Shell Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
darwin_includes/internal/include/jemalloc
freebsd_includes/internal/include/jemalloc
internal
linux_includes/internal/include/jemalloc
COPYING
Makefile
README.md
arena.c
atomic.c
base.c
bitmap.c
cgo_flags.go
chunk.c
chunk_dss.c
chunk_mmap.c
circle.yml
ckh.c
ctl.c
extent.c
hash.c
huge.c
import.sh
jemalloc.c
mb.c
mutex.c
nstime.c
pages.c
prng.c
prof.c
quarantine.c
rtree.c
spin.c
stats.c
tcache.c
ticker.c
tsd.c
util.c
witness.c
zone.c

README.md

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 <relative-path>/c-jemalloc/internal/include
// #cgo darwin LDFLAGS: -Wl,-undefined -Wl,dynamic_lookup
// #cgo !darwin LDFLAGS: -Wl,-unresolved-symbols=ignore-all
import "C"
You can’t perform that action at this time.