https://github.com/sslab-gatech/unialloc
https://github.com/sslab-gatech/unialloc
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sslab-gatech/unialloc
- Owner: sslab-gatech
- Created: 2022-11-01T14:38:50.000Z (about 3 years ago)
- Default Branch: test
- Last Pushed: 2024-03-09T22:25:34.000Z (almost 2 years ago)
- Last Synced: 2025-02-15T10:46:07.286Z (11 months ago)
- Language: Rust
- Size: 2.69 MB
- Stars: 1
- Watchers: 26
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UNIALLOC: A Retargetable Rust Memory Allocator
## Build
```bash
$ cargo build
```
## Test and Benchmarking
- 1. Disable system-wide restartable-sequence
```bash
$ export GLIBC_TUNABLES=glibc.pthread.rseq=0
```
- 2. Use unialloc as GlobalAllocator
```rust
use unialloc::UniAlloc;
#[global_allocator]
static OURSELF: UniAlloc = UniAlloc;
// more examples in unialloc/examples
```
- 3. Unit tests
```bash
$ cargo test
```
- 4. benchmarking
```bash
$ cargo bench --bench std_bench
```