https://github.com/valentindebon/slab_alloc
Simplified slab allocator for UNIX-like systems. Cf. "The Slab Allocator: An Object-Caching Kernel Memory Allocator" By Jeff Bonwick
https://github.com/valentindebon/slab_alloc
Last synced: 5 months ago
JSON representation
Simplified slab allocator for UNIX-like systems. Cf. "The Slab Allocator: An Object-Caching Kernel Memory Allocator" By Jeff Bonwick
- Host: GitHub
- URL: https://github.com/valentindebon/slab_alloc
- Owner: ValentinDebon
- License: bsd-3-clause
- Created: 2019-03-19T12:56:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-16T07:18:25.000Z (over 2 years ago)
- Last Synced: 2024-11-07T21:45:35.623Z (7 months ago)
- Language: C
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Simplified Slab allocator
ANSI-C simplified slab allocator. Concepts taken from "The Slab Allocator: An Object-Caching Kernel Memory Allocator" By Jeff Bonwick.
Simplified because it doesn't support:
- Big allocations (bigger than pagesize / 8).
- Initialization and Deinitialization as described in the original paper.## Build
clang -ansi -pedantic -Wall -c slab_alloc.c
## Test
clang -Wall -o test slab_alloc.c test.c