MCPcopy Create free account

hub / github.com/ezrosent/allocators-rs / functions

Functions600 in github.com/ezrosent/allocators-rs

↓ 84 callersMethodsize
Returns the current number of elements in the stack.
slab-alloc/src/util.rs:112
↓ 57 callersMethodclone
(&self)
bagpipe/src/lib.rs:149
↓ 31 callersMethodload
(&self)
elfmalloc/src/slag.rs:518
↓ 29 callersFunctioninit
()
elfc/src/lib.rs:31
↓ 28 callersMethodpush
(&mut self, val: T)
elfmalloc/src/vec_alloc.rs:38
↓ 21 callersFunctionunmap
(ptr: *mut u8, size: usize)
mmap-alloc/src/lib.rs:867
↓ 20 callersMethoditer
(&self)
elfmalloc/src/utils.rs:172
↓ 20 callersMethodlen
(&self)
elfmalloc/src/utils.rs:185
↓ 19 callersFunctionalloc
(size: usize)
elfmalloc/src/general.rs:287
↓ 19 callersMethodget
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 callersMethodpush_mut
(&mut self, it: Self::Item)
bagpipe/src/lib.rs:314
↓ 18 callersFunctionunlikely
(b: bool)
elfmalloc/src/utils.rs:60
↓ 17 callersMethodclone
(&self)
slab-alloc/src/ptr_map.rs:307
↓ 17 callersMethodinto_ptr_u8
(self)
mmap-alloc/src/tests.rs:32
↓ 16 callersFunctionmap
(size: usize, perms: i32, commit: bool)
mmap-alloc/src/lib.rs:744
↓ 16 callersFunctiontest
(read: bool, write: bool, exec: bool)
mmap-alloc/src/tests.rs:171
↓ 15 callersMethodclone
(&self)
elfmalloc/src/bin/bench.rs:66
↓ 15 callersMethodpush
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 callersFunctiontest_zero_filled
Test that the given range is readable and initialized to zero.
mmap-alloc/src/tests.rs:44
↓ 14 callersFunctionassert_block_perm
(ptr: P, size: usize, perm: Perm)
mmap-alloc/src/tests.rs:592
↓ 13 callersMethodalign
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 callersFunctioncompute_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 callersMethodpage_size
(&mut self, page_size: usize)
elfmalloc/src/frontends.rs:755
↓ 13 callersFunctiontest_valid_map_address
(ptr: NonNull<u8>)
mmap-alloc/src/tests.rs:19
↓ 12 callersFunctioncommit
(ptr: *mut u8, size: usize)
mmap-alloc/src/lib.rs:923
↓ 12 callersMethodinsert
(&mut self, k: *mut K, v: V)
slab-alloc/src/util.rs:250
↓ 12 callersFunctionnext_multiple
(size: usize, unit: usize)
mmap-alloc/src/lib.rs:725
↓ 11 callersMethodclone
(&self)
elfmalloc/src/slag.rs:1263
↓ 11 callersMethodpush
(&mut self, item: *mut u8)
elfmalloc/src/frontends.rs:355
↓ 11 callersFunctiontest_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 callersMethodalloc
(&mut self, size: usize)
elfmalloc/src/general.rs:624
↓ 10 callersMethodalloc
(&mut self)
slab-alloc/src/lib.rs:433
↓ 10 callersMethodbacking_memory
(&self)
elfmalloc/src/slag.rs:986
↓ 10 callersMethodclone
(&self)
elfmalloc/src/general.rs:470
↓ 9 callersMethodfree
(&mut self, it: *mut u8)
elfmalloc/src/frontends.rs:79
↓ 9 callersFunctionget
(p: usize)
bagpipe/src/primes.rs:9
↓ 9 callersMethodget
(&self, k: Self::Key)
elfmalloc/src/general.rs:340
↓ 9 callersMethodinsert_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 callersFunctionlayout_from_size_align
(size: usize, align: usize)
malloc-bind/src/lib.rs:589
↓ 9 callersMethodpush
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 callersFunctionroundup
(n: size_t, multiple: size_t)
malloc-bind/src/lib.rs:575
↓ 9 callersMethodtry_pop_mut
(&mut self)
bagpipe/src/lib.rs:290
↓ 8 callersMethodalloc
(&mut self, layout: Layout)
mmap-alloc/src/lib.rs:385
↓ 8 callersMethodas_raw
(&self)
elfmalloc/src/slag.rs:706
↓ 8 callersFunctionfree
(item: *mut u8)
elfmalloc/src/general.rs:300
↓ 7 callersMethodclone
(&self)
elfmalloc/src/frontends.rs:59
↓ 7 callersMethodpop
(&mut self)
elfmalloc/src/frontends.rs:360
↓ 7 callersMethodset_next
(&mut self, next: Option<NonNull<SlabHeader>>)
slab-alloc/src/stack.rs:204
↓ 7 callersMethodset_prev
(&mut self, prev: Option<NonNull<SlabHeader>>)
slab-alloc/src/stack.rs:207
↓ 6 callersMethodbuild_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 callersMethoddealloc
(&mut self, x: NonNull<T>)
slab-alloc/src/lib.rs:440
↓ 6 callersMethodderef_mut
(&mut self)
elfmalloc/src/utils.rs:130
↓ 6 callersMethodextend
(&mut self, iterable: I)
elfmalloc/src/vec_alloc.rs:216
↓ 6 callersMethodkill
(&mut self)
elfmalloc/src/bin/bench.rs:90
↓ 6 callersFunctionpage_size
()
elfmalloc/src/utils.rs:23
↓ 6 callersMethodpop_mut
(&mut self)
bagpipe/src/bag.rs:101
↓ 6 callersMethodrealloc
( &mut self, ptr: NonNull<u8>, layout: Layout, new_size: usize, )
mmap-alloc/src/lib.rs:482
↓ 6 callersFunctionsince_then
(i: time::Instant)
bagpipe/src/bin/bench_bag.rs:43
↓ 6 callersMethodstore
TODO(ezrosent) measure this with #[inline(always)]
bagpipe/src/queue.rs:501
↓ 6 callersFunctionunmap
(p: *mut u8, size: usize)
elfmalloc/src/utils.rs:35
↓ 6 callersMethodwith
(&self, f: F)
alloc-tls/src/lib.rs:226
↓ 5 callersFunctionabort
()
alloc-fmt/src/lib.rs:99
↓ 5 callersMethodalloc
(&mut self)
elfmalloc/src/frontends.rs:87
↓ 5 callersMethodas_usize
(&self)
slab-alloc/src/util.rs:188
↓ 5 callersFunctionbitset_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 callersMethodbuild
(self)
slab-alloc/src/lib.rs:158
↓ 5 callersMethodcommit
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 callersMethodfree
(&mut self, item: *mut u8)
elfmalloc/src/general.rs:627
↓ 5 callersFunctionget_perm
(read: bool, write: bool, exec: bool)
mmap-alloc/src/lib.rs:978
↓ 5 callersMethodlayout
(&self)
slab-alloc/src/lib.rs:449
↓ 5 callersMethodmax_key
(&self)
elfmalloc/src/general.rs:441
↓ 5 callersMethodsize_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 callersMethodstate
(&self)
object-alloc-test/src/corruption.rs:258
↓ 5 callersMethodupdate_new
(&mut self, check_state: bool)
object-alloc-test/src/corruption.rs:262
↓ 4 callersMethodalloc
(&mut self)
elfmalloc/src/slag.rs:990
↓ 4 callersMethodalloc_expect
(self, msg: &str)
alloc-fmt/src/lib.rs:323
↓ 4 callersMethodalloc_unwrap
(self)
alloc-fmt/src/lib.rs:315
↓ 4 callersMethodbuild
(&self)
mmap-alloc/src/lib.rs:150
↓ 4 callersFunctiondrop
()
alloc-tls/src/lib.rs:421
↓ 4 callersMethodfree
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 callersFunctionget_large
(layout: Layout)
slab-alloc/src/backing.rs:99
↓ 4 callersFunctionget_layout
(item: *mut u8)
elfmalloc/src/general.rs:213
↓ 4 callersFunctionget_type
(item: *mut u8)
elfmalloc/src/general.rs:722
↓ 4 callersMethodinsert
Try to insert `item`. The return value indicates if the value was successfully inserted.
elfmalloc/src/frontends.rs:293
↓ 4 callersMethodis_empty
(&self)
bagpipe/src/queue.rs:309
↓ 4 callersFunctionlayout_for_size
(size: usize)
elfmalloc/src/utils.rs:47
↓ 4 callersFunctionlikely
(b: bool)
elfmalloc/src/utils.rs:67
↓ 4 callersFunctionmap
(size: usize)
elfmalloc/src/utils.rs:27
↓ 4 callersMethodnext
(&mut self)
elfmalloc/src/slag.rs:648
↓ 4 callersMethodpage_size
(&mut self, page_size: usize)
elfmalloc/src/rust_alloc.rs:375
↓ 4 callersMethodpropagate_diff
(&mut self, d: isize)
bagpipe/src/lib.rs:203
↓ 4 callersMethodrefresh
Initialize an `AllocIter` for allocating out of the `Slag`.
elfmalloc/src/slag.rs:854
↓ 4 callersFunctionslag_size
()
elfmalloc/src/slag.rs:552
↓ 4 callersMethodstack_begin
(&self, slab: NonNull<SlabHeader>)
slab-alloc/src/stack.rs:295
↓ 4 callersFunctiontest_and_free
(inp: usize, tester: F)
elfmalloc/src/general.rs:1038
↓ 4 callersFunctiontest_write
Test that the given range is writable.
mmap-alloc/src/tests.rs:52
↓ 4 callersFunctiontest_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 callersMethodtry_pop
(&self)
bagpipe/src/queue.rs:346
↓ 4 callersMethodtry_push
(&self, t: T)
bagpipe/src/bag.rs:203
↓ 4 callersMethodtry_push_mut
(&mut self, it: Self::Item)
bagpipe/src/lib.rs:269
next →1–100 of 600, ranked by callers