1 Star 0 Fork 0

github_repo/jemalloc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

cockroachdb/jemalloc

This repository is CockroachDB's fork of jemalloc, a general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support.

It exists for two reasons: to provide a home for CockroachDB-specific patches, as necessary, and to ensure that the jemalloc submodule in cockroachdb/cockroach has a company-controlled remote to point at.

It is critical that any commit in this repository that is referenced from cockroachdb/cockroach remains available here in perpetuity. For every referenced commit, there must be at least one named branch or tag here that has the commit as an ancestor, or else the commit will be garbage collected by GitHub.

To add a patch to an existing release branch:

  1. In your cockroachdb/cockroach clone, change into the submodule's directory, c-deps/jemalloc:

    $ cd $GOPATH/src/github.com/cockroachdb/cockroach
    $ cd c-deps/jemalloc
    
  2. Create a feature branch named after yourself, like tschottdorf/nullable.

  3. Commit your patch.

  4. Push your changes to the named feature branch. External contributors will need to fork this repository and push to their fork instead.

  5. Make a commit in cockroachdb/cockroach that updates the submodule ref.

    $ cd $GOPATH/src/github.com/cockroachdb/cockroach
    $ git add c-deps/jemalloc
    $ git commit -m "jemalloc: upgrade to..."
    
  6. Open a pull request against cockroachdb/cockroach and wait for review.

  7. Before your downstream PR has merged but after it has been LGTM'd and passed tests, push your changes to the release branch in this repository. You do not need to open a PR against this repository directly; the review of your downstream PR suffices.

    $ git checkout crl-release-X.X
    $ git merge --ff-only FEATURE-BRANCH
    $ git push origin crl-release-X.X
    

    Important: don't force push! If your push is rejected, either someone else merged an intervening change or you didn't base your feature branch off the tip of the release branch. Rebase your feature branch, update your downstream PR with the new commit SHA, and verify tests still pass. Then try your push again.

  8. From the GitHub web UI, verify that the exact submodule SHA that landed in cockroachdb/cockroach is on the appropriate release branch. If it is, delete your feature branch.

    $ git push -d origin FEATURE-BRANCH
    

To create a new release branch:

  1. Follow step one above.

  2. Add an upstream remote and fetch from it.

    $ git remote add upstream https://github.com/jemalloc/jemalloc
    $ git fetch upstream
    
  3. Create and push a new branch with the desired start point:

    $ git checkout -b crl-release-X.X upstream/RELEASE-BRANCH
    $ git push origin crl-release-X.X
    
  4. Protect the branch from force-pushes in the repository settings. This is crucial in ensuring that we don't break commit references in cockroachdb/cockroach's submodules.

  5. Follow steps three through six above.

空文件

简介

https://github.com/cockroachdb/jemalloc.git 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/github_repo/jemalloc.git
git@gitee.com:github_repo/jemalloc.git
github_repo
jemalloc
jemalloc
master

搜索帮助