-
Notifications
You must be signed in to change notification settings - Fork 279
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
malloc: optimizations #17131
Merged
Merged
malloc: optimizations #17131
Conversation
This file contains 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
reusee
force-pushed
the
malloc
branch
3 times, most recently
from
June 25, 2024 08:38
9acb77b
to
f2dfc3f
Compare
zhangxu19830126
approved these changes
Jun 25, 2024
reusee
force-pushed
the
malloc
branch
4 times, most recently
from
June 26, 2024 06:13
d502f84
to
b75d49c
Compare
malloc: return []byte instead of unsafe.Pointer in Allocator.Allocate malloc: remove pointer param from Deallocator.Deallocate malloc: rename argumentedFuncDeallocator to closureDeallocator; add closureDeallocatorPool malloc: expose closure allocator and pool malloc: add LeaksTrackingAllocator malloc: optimize sharded counter to avoid false sharing
1 task
reusee
added a commit
to reusee/matrixone
that referenced
this pull request
Jun 29, 2024
malloc: return []byte instead of unsafe.Pointer in Allocator.Allocate malloc: remove pointer param from Deallocator.Deallocate malloc: rename argumentedFuncDeallocator to closureDeallocator; add closureDeallocatorPool malloc: expose closure allocator and pool malloc: add LeaksTrackingAllocator malloc: optimize sharded counter to avoid false sharing Approved by: @zhangxu19830126
reusee
added a commit
to reusee/matrixone
that referenced
this pull request
Jun 29, 2024
malloc: return []byte instead of unsafe.Pointer in Allocator.Allocate malloc: remove pointer param from Deallocator.Deallocate malloc: rename argumentedFuncDeallocator to closureDeallocator; add closureDeallocatorPool malloc: expose closure allocator and pool malloc: add LeaksTrackingAllocator malloc: optimize sharded counter to avoid false sharing Approved by: @zhangxu19830126 malloc: various changes and optimizations (matrixorigin#16990) malloc: add checked allocator malloc: wrap checked allocator in default allocator malloc: add hints malloc: remove checked deallocator malloc: add DoNotReuse hint to checked deallocator malloc: add stack info to checked allocator malloc: more tests for check allocator malloc: add allocator config malloc: check double free before calling upstream in CheckedAllocator deallocation malloc: do not use default allocator in tests to avoid dependency loop malloc: fix stacktrace malloc: more detail infos for checked allocator panic messages malloc: show pointer address in checked allocator panic messages malloc: show allocated size in checked allocator panic messages malloc: fix checked allocator finalizer fileservice: add fuzzFS fileservice: refine TestFuzzingDiskS3 malloc: add NoClear hint malloc: refine ClassAllocator tests malloc: add FixedSizeAllocator malloc: add FixedSizeSyncPoolAllocator malloc: use fixedSizeSyncPoolAllocator as go allocator by default fileservice: fix missing release in tests Approved by: @zhangxu19830126
reusee
added a commit
to reusee/matrixone
that referenced
this pull request
Jul 3, 2024
malloc: return []byte instead of unsafe.Pointer in Allocator.Allocate malloc: remove pointer param from Deallocator.Deallocate malloc: rename argumentedFuncDeallocator to closureDeallocator; add closureDeallocatorPool malloc: expose closure allocator and pool malloc: add LeaksTrackingAllocator malloc: optimize sharded counter to avoid false sharing Approved by: @zhangxu19830126 malloc: various changes and optimizations (matrixorigin#16990) malloc: add checked allocator malloc: wrap checked allocator in default allocator malloc: add hints malloc: remove checked deallocator malloc: add DoNotReuse hint to checked deallocator malloc: add stack info to checked allocator malloc: more tests for check allocator malloc: add allocator config malloc: check double free before calling upstream in CheckedAllocator deallocation malloc: do not use default allocator in tests to avoid dependency loop malloc: fix stacktrace malloc: more detail infos for checked allocator panic messages malloc: show pointer address in checked allocator panic messages malloc: show allocated size in checked allocator panic messages malloc: fix checked allocator finalizer fileservice: add fuzzFS fileservice: refine TestFuzzingDiskS3 malloc: add NoClear hint malloc: refine ClassAllocator tests malloc: add FixedSizeAllocator malloc: add FixedSizeSyncPoolAllocator malloc: use fixedSizeSyncPoolAllocator as go allocator by default fileservice: fix missing release in tests Approved by: @zhangxu19830126
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.
What type of PR is this?
Which issue(s) this PR fixes:
issue #17130
What this PR does / why we need it:
malloc: return []byte instead of unsafe.Pointer in Allocator.Allocate
malloc: remove pointer param from Deallocator.Deallocate
malloc: rename argumentedFuncDeallocator to closureDeallocator; add closureDeallocatorPool
malloc: expose closure allocator and pool
malloc: add LeaksTrackingAllocator
malloc: optimize sharded counter to avoid false sharing