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

Update the “Kernel Heap” post to use new allocator API #367

Merged
merged 2 commits into from Nov 19, 2017

Conversation

1 participant
@phil-opp
Owner

phil-opp commented Nov 19, 2017

This PR rewrites the “Kernel Heap” post to the new global allocator API. It also moves the bump allocator inside the main crate (instead of being a separate crate in the libs/ folder). Instead of using a spinlock for the global bump allocator, we use AtomicUsize to get a lock-free global allocator (of course, the updated post explains how it works).

I also updated the git tags for the various posts (e.g. post_8 for “Kernel Heap”), so that they all build again.

Fixes #341

@phil-opp phil-opp added the relnotes label Nov 19, 2017

@phil-opp phil-opp referenced this pull request Nov 19, 2017

Closed

Global allocator API changed #341

3 of 3 tasks complete

@phil-opp phil-opp merged commit 5ad167c into master Nov 19, 2017

3 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
deploy/netlify Deploy preview ready!
Details

@phil-opp phil-opp deleted the allocator-post-update branch Nov 19, 2017

@phil-opp

This comment has been minimized.

Show comment
Hide comment
@phil-opp
Owner

phil-opp commented Nov 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment