Skip to content

Implement a lock-free malloc/free for local allocations #2686

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
catamorphism opened this issue Jun 21, 2012 · 5 comments
Closed

Implement a lock-free malloc/free for local allocations #2686

catamorphism opened this issue Jun 21, 2012 · 5 comments
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@catamorphism
Copy link
Contributor

instead of relying on the standard malloc/free, as per FIXME in rt/memory_region.h

@bblum
Copy link
Contributor

bblum commented Jul 3, 2013

We now have jemalloc, the specifics of which I'm not familiar with. Is it good enough?

@bblum
Copy link
Contributor

bblum commented Jul 3, 2013

@brson @pcwalton

@thestinger
Copy link
Contributor

jemalloc is lock-free for allocations under 4K, but not above that

I don't think the per-task heap will be using malloc/free when @graydon's gc lands anyway

@brson
Copy link
Contributor

brson commented Jul 19, 2013

jemalloc is turned off again. I don't think graydon's gc implements a custom local allocator, which is what this issue is about, but it'll probably be hard to beat jemalloc even for local allocations. Updated title to reflect that this is for the local allocator.

@brson
Copy link
Contributor

brson commented Jul 19, 2013

Dupe of #3472

@brson brson closed this as completed Jul 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

4 participants