Skip to content

stjordanis/c-jemalloc

 
 

Repository files navigation

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"

About

🚫 DEPRECATED

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 69.4%
  • Objective-C 10.5%
  • Perl 8.3%
  • C++ 6.4%
  • M4 3.0%
  • Shell 1.4%
  • Other 1.0%