This repository was archived by the owner on Oct 9, 2024. It is now read-only.
Commit 683608c
committed
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 c483f7f commit 683608c
File tree
7 files changed
+717
-196
lines changed- src
- include
- mem
- queue
- mem
- queue
- test
- perf/queue
- regres/mem
7 files changed
+717
-196
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
0 commit comments