Skip to content

malloc: optimizations - #17131

Merged
mergify[bot] merged 2 commits into
matrixorigin:mainfrom
reusee:malloc
Jun 26, 2024
Merged

mergify[bot] merged 2 commits into
matrixorigin:mainfrom
reusee:malloc

Conversation

@reusee

@reusee reusee commented Jun 25, 2024 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

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

@reusee
reusee requested a review from zhangxu19830126 June 25, 2024 04:39
@matrix-meow matrix-meow added the size/L Denotes a PR that changes [500,999] lines label Jun 25, 2024
@mergify
mergify Bot requested a review from fengttt June 25, 2024 04:39
@reusee
reusee force-pushed the malloc branch 3 times, most recently from 9acb77b to f2dfc3f Compare June 25, 2024 08:38
@reusee
reusee force-pushed the malloc branch 4 times, most recently from d502f84 to b75d49c Compare June 26, 2024 06:13
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
@mergify
mergify Bot merged commit 8e7d832 into matrixorigin:main Jun 26, 2024
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
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement size/L Denotes a PR that changes [500,999] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants