#stack #allocator #alloca #no-std

nightly no-std jenga

A stack based allocator

7 releases

Uses old Rust 2015

0.1.10 Jun 4, 2018
0.1.9 Jun 3, 2018
0.1.8 Jul 23, 2017
0.1.6 Jun 30, 2017
0.1.3 Apr 25, 2017

#468 in Memory management

Download history 20/week @ 2023-10-29 12/week @ 2023-11-12 1/week @ 2023-11-19 14/week @ 2023-11-26 33/week @ 2023-12-03 12/week @ 2023-12-17 23/week @ 2023-12-24 7/week @ 2023-12-31 11/week @ 2024-01-14 15/week @ 2024-01-21 23/week @ 2024-01-28 1/week @ 2024-02-04 47/week @ 2024-02-11

90 downloads per month

MIT license

14KB
298 lines

Jenga: A stack based allocator.

General principles:

There are two ways of making allocations:

a) by calling one of the place or place_iter methods, which then allow access to the data in the provided closure. b) by calling frame which allows access to the thread_local Frame, from which futher allocations can be made. This method might be slightly faster as no additional checks are nessesary.

Memory Pool

As a default size, 1MB of memory will be allocated whenever the allocator is used first. This can be changed by calling init_with_capacity first.

No runtime deps

Features