-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[WIP][libc] Add freelist malloc #94270
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
Draft
PiJoules
wants to merge
1
commit into
llvm:main
Choose a base branch
from
PiJoules:WIP-libc-malloc-clone-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
+287
−154
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7544719
to
911182a
Compare
petrhosek
reviewed
Jun 4, 2024
petrhosek
reviewed
Jun 4, 2024
petrhosek
reviewed
Jun 4, 2024
petrhosek
reviewed
Jun 4, 2024
petrhosek
reviewed
Jun 4, 2024
I'd consider splitting the |
ff59f57
to
b1c2777
Compare
Yup, much of the CPP changes are in their own PRs separate from this that I'm landing independently. |
PiJoules
added a commit
to PiJoules/llvm-project
that referenced
this pull request
Jun 4, 2024
A block represents a chunk of memory used by the freelist allocator. It contains header information denoting the usable space and pointers as offsets to the next and previous block. On it's own, this doesn't do much. This is a part of llvm#94270 to land in smaller patches. This is a subset of pigweed's freelist allocator implementation.
b1c2777
to
519d471
Compare
PiJoules
added a commit
to PiJoules/llvm-project
that referenced
this pull request
Jun 7, 2024
A block represents a chunk of memory used by the freelist allocator. It contains header information denoting the usable space and pointers as offsets to the next and previous block. On it's own, this doesn't do much. This is a part of llvm#94270 to land in smaller patches. This is a subset of pigweed's freelist allocator implementation.
PiJoules
added a commit
to PiJoules/llvm-project
that referenced
this pull request
Jun 7, 2024
A block represents a chunk of memory used by the freelist allocator. It contains header information denoting the usable space and pointers as offsets to the next and previous block. On it's own, this doesn't do much. This is a part of llvm#94270 to land in smaller patches. This is a subset of pigweed's freelist allocator implementation.
PiJoules
added a commit
to PiJoules/llvm-project
that referenced
this pull request
Jun 7, 2024
A block represents a chunk of memory used by the freelist allocator. It contains header information denoting the usable space and pointers as offsets to the next and previous block. On it's own, this doesn't do much. This is a part of llvm#94270 to land in smaller patches. This is a subset of pigweed's freelist allocator implementation.
PiJoules
added a commit
to PiJoules/llvm-project
that referenced
this pull request
Jun 10, 2024
A block represents a chunk of memory used by the freelist allocator. It contains header information denoting the usable space and pointers as offsets to the next and previous block. On it's own, this doesn't do much. This is a part of llvm#94270 to land in smaller patches. This is a subset of pigweed's freelist allocator implementation.
PiJoules
added a commit
to PiJoules/llvm-project
that referenced
this pull request
Jun 10, 2024
A block represents a chunk of memory used by the freelist allocator. It contains header information denoting the usable space and pointers as offsets to the next and previous block. On it's own, this doesn't do much. This is a part of llvm#94270 to land in smaller patches. This is a subset of pigweed's freelist allocator implementation.
PiJoules
added a commit
that referenced
this pull request
Jun 10, 2024
A block represents a chunk of memory used by the freelist allocator. It contains header information denoting the usable space and pointers as offsets to the next and previous block. On it's own, this doesn't do much. This is a part of #94270 to land in smaller patches. This is a subset of pigweed's freelist allocator implementation.
519d471
to
2779336
Compare
PiJoules
added a commit
to PiJoules/llvm-project
that referenced
this pull request
Jun 10, 2024
This implements a traditional freelist to be used by the freelist allocator. It operates on spans of bytes which can be anything. The freelist allocator will store Blocks inside them. This is a part of llvm#94270 to land in smaller patches.
PiJoules
added a commit
to PiJoules/llvm-project
that referenced
this pull request
Jun 10, 2024
This implements a traditional freelist to be used by the freelist allocator. It operates on spans of bytes which can be anything. The freelist allocator will store Blocks inside them. This is a part of llvm#94270 to land in smaller patches.
PiJoules
added a commit
that referenced
this pull request
Jun 11, 2024
This implements a traditional freelist to be used by the freelist allocator. It operates on spans of bytes which can be anything. The freelist allocator will store Blocks inside them. This is a part of #94270 to land in smaller patches.
2779336
to
bb7d57a
Compare
PiJoules
added a commit
to PiJoules/llvm-project
that referenced
this pull request
Jun 11, 2024
This is the actual freelist allocator which utilizes the generic FreeList and the Block classes. We will eventually wrap the malloc interface around this. This is a part of llvm#94270 to land in smaller patches.
Lukacma
pushed a commit
to Lukacma/llvm-project
that referenced
this pull request
Jun 12, 2024
A block represents a chunk of memory used by the freelist allocator. It contains header information denoting the usable space and pointers as offsets to the next and previous block. On it's own, this doesn't do much. This is a part of llvm#94270 to land in smaller patches. This is a subset of pigweed's freelist allocator implementation.
Lukacma
pushed a commit
to Lukacma/llvm-project
that referenced
this pull request
Jun 12, 2024
This implements a traditional freelist to be used by the freelist allocator. It operates on spans of bytes which can be anything. The freelist allocator will store Blocks inside them. This is a part of llvm#94270 to land in smaller patches.
71ceb75
to
0d2511d
Compare
PiJoules
added a commit
to PiJoules/llvm-project
that referenced
this pull request
Jun 12, 2024
This is the actual freelist allocator which utilizes the generic FreeList and the Block classes. We will eventually wrap the malloc interface around this. This is a part of llvm#94270 to land in smaller patches.
PiJoules
added a commit
to PiJoules/llvm-project
that referenced
this pull request
Jun 13, 2024
This is the actual freelist allocator which utilizes the generic FreeList and the Block classes. We will eventually wrap the malloc interface around this. This is a part of llvm#94270 to land in smaller patches.
PiJoules
added a commit
that referenced
this pull request
Jun 13, 2024
This is the actual freelist allocator which utilizes the generic FreeList and the Block classes. We will eventually wrap the malloc interface around this. This is a part of #94270 to land in smaller patches.
3106683
to
843ea00
Compare
843ea00
to
32ae283
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.