-
Notifications
You must be signed in to change notification settings - Fork 26
/
README
38 lines (33 loc) · 1.99 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
A malloc and free Method for 64bit
chunk struct
|--------------------|
| Last Chunk Size | last bit 0:free, 1:use
|--------------------| last two bit: 1:mmaped chunk
| Chunk Size |
|--------------------|
| Content or Next ptr|
| |
|--------------------|
bins_ptr
----------------------------------------------------------------------------------
big chunk | 0x18 | 0x20 | 0x28 | 0x30 | 0x38 | ...
-------|-------------|------------------------|------------------------|----------
| | | |
|---------| |---------| |---------| |---------|
| Chunk | | Chunk | | Chunk | | Chunk |
| | | | | | | |
| | | | | | | |
|---------| |---------| |---------| |---------|
| | | |
|---------| |---------| |---------| |---------|
| Chunk | | Chunk | | Chunk | | Chunk |
| | | | | | | |
| | | | | | | |
|---------| |---------| |---------| |---------|
| | |
|---------| |---------| |---------|
| Chunk | | Chunk | | Chunk |
| | | | | |
| | | | | |
|---------| |---------| |---------|
... ...