#stack #allocator #no-std #alloca

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

#644 in Memory management

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