Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Commit bafe265

Browse files
mem/pool: improve the scalable memory allocator.
- thread ID is no longer needed. - Add an embedded option "USE_PAGE". With USE_PAGE, allocation becomes page-level. Without USE_PAGE, allocation becomes object-level.
1 parent 8bc00cd commit bafe265

File tree

2 files changed

+163
-75
lines changed

2 files changed

+163
-75
lines changed

src/include/queue/zm_queue_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct zm_msqnode {
4141
struct zm_msqueue {
4242
zm_atomic_ptr_t head ZM_ALLIGN_TO_CACHELINE;
4343
zm_atomic_ptr_t tail ZM_ALLIGN_TO_CACHELINE;
44-
zm_pool_t pool;
44+
zm_pool_t pool ZM_ALLIGN_TO_CACHELINE;
4545
};
4646

4747
/* faqueue */

0 commit comments

Comments
 (0)