Repository navigation
malloc: various changes and optimizations - #16990
Merged
Merged
Conversation
reusee
force-pushed
the
mallocopts
branch
3 times, most recently
from
June 19, 2024 09:23
74e1b50 to
08497df
Compare
reusee
force-pushed
the
mallocopts
branch
2 times, most recently
from
June 19, 2024 15:06
b2435b2 to
22c3a27
Compare
reusee
force-pushed
the
mallocopts
branch
3 times, most recently
from
June 20, 2024 02:01
217f021 to
8a9c308
Compare
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 malloc: remove PureGoClassAllocator malloc: minor clean-ups
zhangxu19830126
approved these changes
Jun 20, 2024
reusee
added a commit
to reusee/matrixone
that referenced
this pull request
Jun 21, 2024
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
reusee
added a commit
to reusee/matrixone
that referenced
this pull request
Jun 21, 2024
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
reusee
added a commit
to reusee/matrixone
that referenced
this pull request
Jun 29, 2024
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
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
fengttt
pushed a commit
to fengttt/matrixone
that referenced
this pull request
May 7, 2026
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
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
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 #16573
What this PR does / why we need it:
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