TCMalloc

TCMalloc 是 Google 对 C 的 malloc() 和 C++ 的 operator new 的定制实现,用于在我们的 C 和 C++ 代码中进行内存分配。TCMalloc 是一种快速的多线程 malloc 实现。「TCMalloc is Google's customized implementation of C's malloc() and C++'s operator new used for memory allocation within our C and C++ code. TCMalloc is a fast, multi-threaded malloc implementation.」

  • Owner: google/tcmalloc
  • Platform: Linux
  • License:: Apache License 2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

TCMalloc

This repository contains the TCMalloc C++ code.

TCMalloc is Google's customized implementation of C's malloc() and C++'s
operator new used for memory allocation within our C and C++ code. TCMalloc is
a fast, multi-threaded malloc implementation.

Building TCMalloc

Bazel is the official build system for TCMalloc.

The TCMalloc Platforms Guide contains information on
platform support for TCMalloc.

Documentation

All users of TCMalloc should consult the following documentation resources:

  • The TCMalloc Quickstart covers downloading, installing,
    building, and testing TCMalloc, including incorporating within your codebase.
  • The TCMalloc Overview covers the basic architecture of
    TCMalloc, and how that may affect configuration choices.
  • The TCMalloc Reference covers the C and C++ TCMalloc API
    endpoints.

More advanced usages of TCMalloc may find the following documentation useful:

  • The TCMalloc Tuning Guide covers the configuration choices
    in more depth, and also illustrates other ways to customize TCMalloc.
  • The TCMalloc Design Doc covers how TCMalloc works
    underneath the hood, and why certain design choices were made. Most developers
    will not need this level of implementation detail.

License

The TCMalloc library is licensed under the terms of the Apache
license. See LICENSE for more information.

Disclaimer: This is not an officially supported Google product.

Main metrics

Overview
Name With Ownergoogle/tcmalloc
Primary LanguageC++
Program languageStarlark (Language Count: 5)
Platform
License:Apache License 2.0
所有者活动
Created At2019-08-23 14:02:59
Pushed At2025-06-06 18:26:16
Last Commit At2025-06-06 11:24:48
Release Count0
用户参与
Stargazers Count4.7k
Watchers Count84
Fork Count509
Commits Count2.6k
Has Issues Enabled
Issues Count208
Issue Open Count44
Pull Requests Count30
Pull Requests Open Count12
Pull Requests Close Count26
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private