Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ezrosent/allocators-rs
/ functions
Functions
600 in github.com/ezrosent/allocators-rs
⨍
Functions
600
◇
Types & classes
149
↓ 84 callers
Method
size
Returns the current number of elements in the stack.
slab-alloc/src/util.rs:112
↓ 57 callers
Method
clone
(&self)
bagpipe/src/lib.rs:149
↓ 31 callers
Method
load
(&self)
elfmalloc/src/slag.rs:518
↓ 29 callers
Function
init
()
elfc/src/lib.rs:31
↓ 28 callers
Method
push
(&mut self, val: T)
elfmalloc/src/vec_alloc.rs:38
↓ 21 callers
Function
unmap
(ptr: *mut u8, size: usize)
mmap-alloc/src/lib.rs:867
↓ 20 callers
Method
iter
(&self)
elfmalloc/src/utils.rs:172
↓ 20 callers
Method
len
(&self)
elfmalloc/src/utils.rs:185
↓ 19 callers
Function
alloc
(size: usize)
elfmalloc/src/general.rs:287
↓ 19 callers
Method
get
Get an index into the array. Unsafe because this operation is unchecked: it may provide a pointer out of bounds.
elfmalloc/src/utils.rs:181
↓ 19 callers
Method
push_mut
(&mut self, it: Self::Item)
bagpipe/src/lib.rs:314
↓ 18 callers
Function
unlikely
(b: bool)
elfmalloc/src/utils.rs:60
↓ 17 callers
Method
clone
(&self)
slab-alloc/src/ptr_map.rs:307
↓ 17 callers
Method
into_ptr_u8
(self)
mmap-alloc/src/tests.rs:32
↓ 16 callers
Function
map
(size: usize, perms: i32, commit: bool)
mmap-alloc/src/lib.rs:744
↓ 16 callers
Function
test
(read: bool, write: bool, exec: bool)
mmap-alloc/src/tests.rs:171
↓ 15 callers
Method
clone
(&self)
elfmalloc/src/bin/bench.rs:66
↓ 15 callers
Method
push
A push operation that will not fail. The default implementation of `push` simply calls `try_push` in a loop. until it succeeds. Depending on the unde
bagpipe/src/bag.rs:56
↓ 15 callers
Function
test_zero_filled
Test that the given range is readable and initialized to zero.
mmap-alloc/src/tests.rs:44
↓ 14 callers
Function
assert_block_perm
(ptr: P, size: usize, perm: Perm)
mmap-alloc/src/tests.rs:592
↓ 13 callers
Method
align
Updates the alignment guaranteed by the allocator. `align` must not be greater than the size of `T` (that is, `core::mem::size_of::<T>()`), must not
slab-alloc/src/lib.rs:147
↓ 13 callers
Function
compute_metadata
Compute an optimal layout for objects of size `obj_size` for `Slag`s of size `page_size` with cutoff a `cutoff_factor` fraction of total objects, and
elfmalloc/src/slag.rs:174
↓ 13 callers
Method
page_size
(&mut self, page_size: usize)
elfmalloc/src/frontends.rs:755
↓ 13 callers
Function
test_valid_map_address
(ptr: NonNull<u8>)
mmap-alloc/src/tests.rs:19
↓ 12 callers
Function
commit
(ptr: *mut u8, size: usize)
mmap-alloc/src/lib.rs:923
↓ 12 callers
Method
insert
(&mut self, k: *mut K, v: V)
slab-alloc/src/util.rs:250
↓ 12 callers
Function
next_multiple
(size: usize, unit: usize)
mmap-alloc/src/lib.rs:725
↓ 11 callers
Method
clone
(&self)
elfmalloc/src/slag.rs:1263
↓ 11 callers
Method
push
(&mut self, item: *mut u8)
elfmalloc/src/frontends.rs:355
↓ 11 callers
Function
test_read
Test that the given range is readable, and matches data written by test_write/test_write_read
mmap-alloc/src/tests.rs:60
↓ 10 callers
Method
alloc
(&mut self, size: usize)
elfmalloc/src/general.rs:624
↓ 10 callers
Method
alloc
(&mut self)
slab-alloc/src/lib.rs:433
↓ 10 callers
Method
backing_memory
(&self)
elfmalloc/src/slag.rs:986
↓ 10 callers
Method
clone
(&self)
elfmalloc/src/general.rs:470
↓ 9 callers
Method
free
(&mut self, it: *mut u8)
elfmalloc/src/frontends.rs:79
↓ 9 callers
Function
get
(p: usize)
bagpipe/src/primes.rs:9
↓ 9 callers
Method
get
(&self, k: Self::Key)
elfmalloc/src/general.rs:340
↓ 9 callers
Method
insert_layout
Insert a new object to `Layout` mapping. `insert_layout` is passed a pointer to a newly-allocated object and a `Layout` describing that object, and i
malloc-bind/src/lib.rs:96
↓ 9 callers
Function
layout_from_size_align
(size: usize, align: usize)
malloc-bind/src/lib.rs:589
↓ 9 callers
Method
push
Pushes a new element onto the stack. The new size of the stack must not exceed the size for which the underlying memory (`data`) was allocated.
slab-alloc/src/util.rs:97
↓ 9 callers
Function
roundup
(n: size_t, multiple: size_t)
malloc-bind/src/lib.rs:575
↓ 9 callers
Method
try_pop_mut
(&mut self)
bagpipe/src/lib.rs:290
↓ 8 callers
Method
alloc
(&mut self, layout: Layout)
mmap-alloc/src/lib.rs:385
↓ 8 callers
Method
as_raw
(&self)
elfmalloc/src/slag.rs:706
↓ 8 callers
Function
free
(item: *mut u8)
elfmalloc/src/general.rs:300
↓ 7 callers
Method
clone
(&self)
elfmalloc/src/frontends.rs:59
↓ 7 callers
Method
pop
(&mut self)
elfmalloc/src/frontends.rs:360
↓ 7 callers
Method
set_next
(&mut self, next: Option<NonNull<SlabHeader>>)
slab-alloc/src/stack.rs:204
↓ 7 callers
Method
set_prev
(&mut self, prev: Option<NonNull<SlabHeader>>)
slab-alloc/src/stack.rs:207
↓ 6 callers
Method
build_backing
Builds a new `SlabAlloc` with a custom memory provider. `build_backing` builds a new `SlabAlloc` from the configuration `self`. `SlabAlloc`s get thei
slab-alloc/src/lib.rs:209
↓ 6 callers
Method
dealloc
(&mut self, x: NonNull<T>)
slab-alloc/src/lib.rs:440
↓ 6 callers
Method
deref_mut
(&mut self)
elfmalloc/src/utils.rs:130
↓ 6 callers
Method
extend
(&mut self, iterable: I)
elfmalloc/src/vec_alloc.rs:216
↓ 6 callers
Method
kill
(&mut self)
elfmalloc/src/bin/bench.rs:90
↓ 6 callers
Function
page_size
()
elfmalloc/src/utils.rs:23
↓ 6 callers
Method
pop_mut
(&mut self)
bagpipe/src/bag.rs:101
↓ 6 callers
Method
realloc
( &mut self, ptr: NonNull<u8>, layout: Layout, new_size: usize, )
mmap-alloc/src/lib.rs:482
↓ 6 callers
Function
since_then
(i: time::Instant)
bagpipe/src/bin/bench_bag.rs:43
↓ 6 callers
Method
store
TODO(ezrosent) measure this with #[inline(always)]
bagpipe/src/queue.rs:501
↓ 6 callers
Function
unmap
(p: *mut u8, size: usize)
elfmalloc/src/utils.rs:35
↓ 6 callers
Method
with
(&self, f: F)
alloc-tls/src/lib.rs:226
↓ 5 callers
Function
abort
()
alloc-fmt/src/lib.rs:99
↓ 5 callers
Method
alloc
(&mut self)
elfmalloc/src/frontends.rs:87
↓ 5 callers
Method
as_usize
(&self)
slab-alloc/src/util.rs:188
↓ 5 callers
Function
bitset_bytes
Calculate the number of bytes in the bitset needed to represent `n_objects` objects, using `gran` bits per object.
elfmalloc/src/slag.rs:188
↓ 5 callers
Method
build
(self)
slab-alloc/src/lib.rs:158
↓ 5 callers
Method
commit
Configures whether `alloc` returns committed memory. `commit` configures whether the memory returned by `alloc` is already in a committed state. The
mmap-alloc/src/lib.rs:241
↓ 5 callers
Method
free
(&mut self, item: *mut u8)
elfmalloc/src/general.rs:627
↓ 5 callers
Function
get_perm
(read: bool, write: bool, exec: bool)
mmap-alloc/src/lib.rs:978
↓ 5 callers
Method
layout
(&self)
slab-alloc/src/lib.rs:449
↓ 5 callers
Method
max_key
(&self)
elfmalloc/src/general.rs:441
↓ 5 callers
Method
size_guess
Return a guess of the current `BagPipe` size. This is implemented in a way that seeks to reduce overhead as much as possible. Currently there are 4 `
bagpipe/src/lib.rs:228
↓ 5 callers
Method
state
(&self)
object-alloc-test/src/corruption.rs:258
↓ 5 callers
Method
update_new
(&mut self, check_state: bool)
object-alloc-test/src/corruption.rs:262
↓ 4 callers
Method
alloc
(&mut self)
elfmalloc/src/slag.rs:990
↓ 4 callers
Method
alloc_expect
(self, msg: &str)
alloc-fmt/src/lib.rs:323
↓ 4 callers
Method
alloc_unwrap
(self)
alloc-fmt/src/lib.rs:315
↓ 4 callers
Method
build
(&self)
mmap-alloc/src/lib.rs:150
↓ 4 callers
Function
drop
()
alloc-tls/src/lib.rs:421
↓ 4 callers
Method
free
Free `item` back to this `Slag`. This method assumes `item` is a member of `self` (enforced in debug builds). It also computes whether or not this `f
elfmalloc/src/slag.rs:818
↓ 4 callers
Function
get_large
(layout: Layout)
slab-alloc/src/backing.rs:99
↓ 4 callers
Function
get_layout
(item: *mut u8)
elfmalloc/src/general.rs:213
↓ 4 callers
Function
get_type
(item: *mut u8)
elfmalloc/src/general.rs:722
↓ 4 callers
Method
insert
Try to insert `item`. The return value indicates if the value was successfully inserted.
elfmalloc/src/frontends.rs:293
↓ 4 callers
Method
is_empty
(&self)
bagpipe/src/queue.rs:309
↓ 4 callers
Function
layout_for_size
(size: usize)
elfmalloc/src/utils.rs:47
↓ 4 callers
Function
likely
(b: bool)
elfmalloc/src/utils.rs:67
↓ 4 callers
Function
map
(size: usize)
elfmalloc/src/utils.rs:27
↓ 4 callers
Method
next
(&mut self)
elfmalloc/src/slag.rs:648
↓ 4 callers
Method
page_size
(&mut self, page_size: usize)
elfmalloc/src/rust_alloc.rs:375
↓ 4 callers
Method
propagate_diff
(&mut self, d: isize)
bagpipe/src/lib.rs:203
↓ 4 callers
Method
refresh
Initialize an `AllocIter` for allocating out of the `Slag`.
elfmalloc/src/slag.rs:854
↓ 4 callers
Function
slag_size
()
elfmalloc/src/slag.rs:552
↓ 4 callers
Method
stack_begin
(&self, slab: NonNull<SlabHeader>)
slab-alloc/src/stack.rs:295
↓ 4 callers
Function
test_and_free
(inp: usize, tester: F)
elfmalloc/src/general.rs:1038
↓ 4 callers
Function
test_write
Test that the given range is writable.
mmap-alloc/src/tests.rs:52
↓ 4 callers
Function
test_write_read
Test that the given range is readable and writable, and that writes can be read back.
mmap-alloc/src/tests.rs:74
↓ 4 callers
Method
try_pop
(&self)
bagpipe/src/queue.rs:346
↓ 4 callers
Method
try_push
(&self, t: T)
bagpipe/src/bag.rs:203
↓ 4 callers
Method
try_push_mut
(&mut self, it: Self::Item)
bagpipe/src/lib.rs:269
next →
1–100 of 600, ranked by callers