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
↓ 3 callers
Method
alloc_empty
Allocate a full `Magazine` from the `Depot`, constructing a new one if none are present.
elfmalloc/src/frontends.rs:585
↓ 3 callers
Method
allocate
(&mut self)
elfmalloc/src/bin/bench.rs:80
↓ 3 callers
Method
bulk_free
( &mut self, mask: usize, word: *mut Word, slag: *mut Slag, meta: &Met
elfmalloc/src/slag.rs:1207
↓ 3 callers
Method
c_free
The C `free` function. `free` frees a previous allocation. If `ptr` is `NULL`, `free` does nothing. The behavior of `free` is undefined if `ptr` does
malloc-bind/src/lib.rs:207
↓ 3 callers
Method
carve
(&self, npages: usize)
elfmalloc/src/sources.rs:57
↓ 3 callers
Method
dealloc
(&mut self, p: *mut u8, _l: Layout)
elfmalloc/src/alloc_impl.rs:48
↓ 3 callers
Method
dealloc
(&self, item: *mut u8, l: Layout)
bsalloc/src/lib.rs:42
↓ 3 callers
Method
dealloc
(&mut self, idx: usize)
object-alloc-test/src/corruption.rs:799
↓ 3 callers
Method
delete_layout
Delete an existing object to `Layout` mapping. `delete_layout` is passed a pointer to an object whose mapping has previously been inserted, and it de
malloc-bind/src/lib.rs:112
↓ 3 callers
Method
destroy
(&self)
elfmalloc/src/utils.rs:189
↓ 3 callers
Method
drop_and_check
(mut self)
object-alloc-test/src/corruption.rs:811
↓ 3 callers
Method
foreach
(&self, f: F)
elfmalloc/src/general.rs:445
↓ 3 callers
Function
get_aligned
(layout: Layout)
slab-alloc/src/backing.rs:91
↓ 3 callers
Method
get_layout
(&self, p: *mut u8)
elfmalloc/src/alloc_impl.rs:91
↓ 3 callers
Method
get_metadata
(&self)
elfmalloc/src/slag.rs:698
↓ 3 callers
Method
hash
(&self, ptr: *mut K)
slab-alloc/src/ptr_map.rs:112
↓ 3 callers
Method
insert
(&mut self, ptr: *mut K, v: V)
slab-alloc/src/ptr_map.rs:147
↓ 3 callers
Function
make_default_boxed
()
object-alloc-test/src/corruption.rs:846
↓ 3 callers
Function
make_unsafe_default_boxed
()
object-alloc-test/src/corruption.rs:850
↓ 3 callers
Function
multi_threaded_alloc_test
(layouts: Vec<Layout>)
elfmalloc/src/rust_alloc.rs:624
↓ 3 callers
Method
next
(&self)
slab-alloc/src/stack.rs:198
↓ 3 callers
Method
nth_obj
(&self, slab: NonNull<SlabHeader>, color: Color, n: usize)
slab-alloc/src/stack.rs:303
↓ 3 callers
Function
protect
(ptr: *mut u8, size: usize, perm: perms::Perm)
mmap-alloc/src/lib.rs:894
↓ 3 callers
Function
push_noinline
(vec: &mut V, t: T)
elfmalloc/src/vec_alloc.rs:310
↓ 3 callers
Method
reserve
(&mut self, extra_bytes: usize)
elfmalloc/src/vec_alloc.rs:140
↓ 3 callers
Function
round_up
(n: usize)
elfmalloc/src/general.rs:479
↓ 3 callers
Function
satisfy_min_align
(layout: Layout, min_align: usize)
slab-alloc/src/util.rs:493
↓ 3 callers
Method
shrink_in_place
( &mut self, ptr: NonNull<u8>, layout: Layout, new_size: usize, )
mmap-alloc/src/lib.rs:596
↓ 3 callers
Method
transition_available
(&mut self, slag: *mut Slag)
elfmalloc/src/slag.rs:1186
↓ 3 callers
Method
try_pop
(&self)
bagpipe/src/bag.rs:207
↓ 3 callers
Function
uncommit
(p: *mut u8, size: usize)
elfmalloc/src/utils.rs:43
↓ 3 callers
Function
uncommit
(ptr: *mut u8, size: usize)
mmap-alloc/src/lib.rs:938
↓ 3 callers
Function
with_local_or_clone
(f: F)
elfmalloc/src/general.rs:278
↓ 3 callers
Method
write
Configures write permission for allocated memory. `write` configures whether or not allocated memory will be writable. The default is writable. See
mmap-alloc/src/lib.rs:206
↓ 2 callers
Function
align_padding
Calculate the padding (in bytes) required to ensure the `Slag` objects are aligned to `alignment` bytes, given `n_objects` objects and `gran` bits per
elfmalloc/src/slag.rs:203
↓ 2 callers
Function
aligned_realloc
(item: *mut u8, new_size: usize, new_alignment: usize)
elfmalloc/src/general.rs:296
↓ 2 callers
Method
alloc
(&mut self)
elfmalloc/src/rust_alloc.rs:137
↓ 2 callers
Method
alloc
(&mut self)
object-alloc-test/src/corruption.rs:758
↓ 2 callers
Method
alloc_full
Allocate a full `Magazine` from the `Depot` if one is present.
elfmalloc/src/frontends.rs:574
↓ 2 callers
Method
build_local
Build a `LocalAllocator<T>` from the current configuration.
elfmalloc/src/frontends.rs:773
↓ 2 callers
Method
build_untyped_backing
Builds a new `UntypedSlabAlloc` with a custom memory provider. `build_untyped_backing` is like `build_backing`, except that it builds an `UntypedSlab
slab-alloc/src/lib.rs:237
↓ 2 callers
Method
c_malloc
The C `malloc` function. `malloc` allocates storage sufficient to hold `size` bytes, and returns a pointer to it. The allocated memory is aligned to
malloc-bind/src/lib.rs:184
↓ 2 callers
Function
choose_size
( sizes: I, unused: F, max_objects_per_slab: usize, )
slab-alloc/src/util.rs:9
↓ 2 callers
Method
claim
Attempt to claim a `RefCount`.
elfmalloc/src/slag.rs:469
↓ 2 callers
Method
dealloc
(&mut self, item: *mut u8, l: Layout)
elfmalloc/src/rust_alloc.rs:296
↓ 2 callers
Method
dealloc_slab
(&mut self, slab: NonNull<SlabHeader>)
slab-alloc/src/stack.rs:145
↓ 2 callers
Method
debug_verify_ptr
(&self, ptr: *mut u8, layout: &Layout)
mmap-alloc/src/lib.rs:372
↓ 2 callers
Method
dec_n
Decrease the `RefCount` by `n`. This method assumes the reference count is at least `n`. This is only enforced in debug builds. Returns a tuple whos
elfmalloc/src/slag.rs:501
↓ 2 callers
Method
delete
(&mut self, k: *mut K)
slab-alloc/src/util.rs:254
↓ 2 callers
Method
exec
Configures execute permission for allocated memory. `exec` configures whether or not allocated memory will be executable. The default is non-executab
mmap-alloc/src/lib.rs:218
↓ 2 callers
Function
fallible_map
(size: usize)
elfmalloc/src/utils.rs:31
↓ 2 callers
Method
find
Given a pointer to an object within a `Slag` with matching `Metadata` find a pointer to the `Slag`.
elfmalloc/src/slag.rs:792
↓ 2 callers
Method
free_empty
Return an empty `Magazine` to the `Depot`. If the `Depot` is at capacity, the `Magazine`'s memory is unmapped.
elfmalloc/src/frontends.rs:548
↓ 2 callers
Method
get
(&self, k: *mut K)
slab-alloc/src/util.rs:246
↓ 2 callers
Method
get
(&self, ix: usize)
bagpipe/src/queue.rs:717
↓ 2 callers
Method
get_color
(&self)
slab-alloc/src/stack.rs:213
↓ 2 callers
Function
get_commitment
(item: *mut u8)
elfmalloc/src/general.rs:1017
↓ 2 callers
Function
get_commitment_mut
(item: *mut u8)
elfmalloc/src/general.rs:1024
↓ 2 callers
Method
get_mut
(&mut self, k: Self::Key)
elfmalloc/src/general.rs:347
↓ 2 callers
Method
get_raw
(&self, ix: usize)
elfmalloc/src/vec_alloc.rs:163
↓ 2 callers
Method
get_raw
(&self, n: usize)
elfmalloc/src/general.rs:414
↓ 2 callers
Method
grow_in_place
( &mut self, ptr: NonNull<u8>, layout: Layout, new_size: usize, )
mmap-alloc/src/lib.rs:576
↓ 2 callers
Method
handle
(&self)
bagpipe/src/bag.rs:173
↓ 2 callers
Method
inc_n
Increment the `RefCount`. Returns a tuple whose first element indicates the `RefCount` was previously claimed, and the second element is the current
elfmalloc/src/slag.rs:488
↓ 2 callers
Method
increment_and_get_usize
Helper method to increment `ind` and find the corresponding index and cell starting in `seg`, advancing `seg` if need be.
bagpipe/src/queue.rs:280
↓ 2 callers
Method
insert_back
(&mut self, t: NonNull<T>)
slab-alloc/src/util.rs:332
↓ 2 callers
Method
is_full
(&self, slab: NonNull<SlabHeader>)
slab-alloc/src/stack.rs:160
↓ 2 callers
Function
new_buckets
()
slab-alloc/src/ptr_map.rs:297
↓ 2 callers
Function
perms
()
mmap-alloc/src/tests.rs:637
↓ 2 callers
Method
pop
Pops an element from the stack. The stack must not be empty.
slab-alloc/src/util.rs:105
↓ 2 callers
Method
pop
A pop operation that will not fail. Same caveats apply to those of `push`.
bagpipe/src/bag.rs:67
↓ 2 callers
Method
prev
(&self)
slab-alloc/src/stack.rs:201
↓ 2 callers
Method
priv_test
(self)
object-alloc-test/src/corruption.rs:647
↓ 2 callers
Method
push_diff
(&mut self)
bagpipe/src/lib.rs:194
↓ 2 callers
Function
push_noinline
(v: &mut V, t: T)
elfmalloc/src/bin/bench_vec.rs:200
↓ 2 callers
Method
quickcheck
(self)
object-alloc-test/src/corruption.rs:621
↓ 2 callers
Method
read
Configures read permission for allocated memory. `read` configures whether or not allocated memory will be readable. The default is readable. See th
mmap-alloc/src/lib.rs:194
↓ 2 callers
Function
realloc
(item: *mut u8, new_size: usize)
elfmalloc/src/general.rs:292
↓ 2 callers
Method
realloc
(&mut self, item: *mut u8, new_size: usize)
elfmalloc/src/general.rs:631
↓ 2 callers
Function
remap
( ptr: *mut u8, old_size: usize, new_size: usize, in_place: bool, )
mmap-alloc/src/lib.rs:840
↓ 2 callers
Method
remove_front
(&mut self)
slab-alloc/src/util.rs:348
↓ 2 callers
Method
resize_in_place
( &self, ptr: NonNull<u8>, layout: &Layout, new_size: usize, )
mmap-alloc/src/lib.rs:351
↓ 2 callers
Function
result_unwrap_failed
(msg: &str, err: E)
alloc-fmt/src/lib.rs:363
↓ 2 callers
Function
round_to_page
(item: *mut T)
elfmalloc/src/general.rs:710
↓ 2 callers
Function
test
(new: F, tests: Option<usize>)
object-alloc-test/src/corruption.rs:669
↓ 2 callers
Method
test
(self)
object-alloc-test/src/corruption.rs:625
↓ 2 callers
Function
test_corruption_tester_corruption_helper
( mut a: Box<C>, mut b: Box<C>, )
object-alloc-test/src/corruption.rs:891
↓ 2 callers
Function
test_corruption_tester_helper
(mut obj: Box<C>)
object-alloc-test/src/corruption.rs:860
↓ 2 callers
Method
to_header_and_slice
Split into a header and byte slice.
object-alloc-test/src/corruption.rs:393
↓ 2 callers
Method
to_header_and_slice_mut
(&mut self)
object-alloc-test/src/corruption.rs:410
↓ 2 callers
Method
to_slice
(&self)
elfmalloc/src/vec_alloc.rs:167
↓ 2 callers
Function
total_bytes
Compute the total bytes used for `n_objects` objects each of size `size` bytes represented by `gran` bits in the bit-set. This function includes the h
elfmalloc/src/slag.rs:214
↓ 2 callers
Method
transition_full
(&mut self, slag: *mut Slag, meta: &Metadata)
elfmalloc/src/slag.rs:1193
↓ 2 callers
Method
try_push
(&self, t: T)
bagpipe/src/queue.rs:337
↓ 2 callers
Method
try_push_internal
Attempts to push `it` down a pipe, following a schedule specified by offset, allowing for at most `max_failures` failures.
bagpipe/src/lib.rs:418
↓ 2 callers
Method
unclaim
Unclaim the `RefCount`. Returns a tuple whose first element indicates the `RefCount` was previously claimed, and the second element is the current va
elfmalloc/src/slag.rs:478
↓ 2 callers
Method
update_state
Update the tester's state. `update_state` updates the tester's state by updating the `state_nonce` field and recomputing the `hash`. `new_state` must
object-alloc-test/src/corruption.rs:353
↓ 1 callers
Method
aligned_realloc
( &mut self, item: *mut u8, new_size: usize, new_alignment: usize, )
elfmalloc/src/general.rs:635
↓ 1 callers
Method
alloc
(&self, l: Layout)
bsalloc/src/lib.rs:38
↓ 1 callers
Method
alloc
(&self, size: usize)
bsalloc/src/bsalloc.rs:45
← previous
next →
101–200 of 600, ranked by callers