Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 11 of 11) sorted by relevance

/xnu-12377.81.4/doc/allocators/
H A Dapi-basics.md11 - the zone allocator subsystem (`<kern/zalloc.h>`) which is a slab-allocator of
15 allocator implemented as a collection of zones of fixed size, and overflowing to
51 - `Z_WAITOK` means that the zone allocator can wait and block,
54 - `Z_NOPAGEWAIT` allows for the allocator to block (typically on mutexes),
62 often more efficient than calling bzero as the allocator tends to maintain
69 If `Z_NOFAIL` is incorrectly used, then the zone allocator will panic at runtime.
85 the read-only allocator (See `ZC_READONLY`),
93 ## The Typed allocator
96 blessed way to allocate typed memory in XNU is using the typed allocator
128 - types should be small enough to fit in the zone allocator:
[all …]
H A Dguard-objects.md15 pointer ranges of `kmem_alloc()`, which previously used a first-fit allocator.
37 form $2^k$. The allocator must first select an appropriate chunk. Partial chunks
82 When the next allocation request in this size class arrives, the allocator will
223 pointer to the original slot. Each round, the allocator will choose one slot
H A Dread-only.md7 The Read-Only Allocator is an extension of the zone allocator that facilitates
71 through a genuine bug, or perhaps by an attacker targeting the zone allocator
H A Dxnu-kernel-restricted.md107 …e.com/blog/towards-the-next-generation-of-xnu-memory-safety/). The zone allocator (*zalloc*) and *…
/xnu-12377.81.4/doc/lifecycle/
H A Dstartup.md130 - `vm_map_steal_memory`: Allocate bootstrap VM maps prior to the zone allocator coming up
133 - `init_ecc_bad_pages`: Exclude frames detected as bad from frame allocator
163 Initializes the zone allocator.
179 (which are used for guard pages by the guard mode zone allocator).
/xnu-12377.81.4/doc/arm/
H A Dapple_speculative_hardening.md86 memory: the zone allocator and the kmem allocator.
88 The zone allocator is a slab allocator which vends relatively small, fixed size
92 submaps. The kernel’s kalloc_type allocator builds on top of the zone allocator
96 unpredictable. Additional information about the zone allocator and kalloc_type
99 The kmem allocator is used for making large, page-aligned allocations. VAs for
232 are of different allocation size classes. Since the zone allocator is a slab
233 allocator, kalloc_type always places types of different size classes into
385 introduce an XNU private family of allocator flags (`{Z, KMA, KMS,
/xnu-12377.81.4/doc/observability/
H A Dmt_stackshot.md68 Stackshot uses a basic per-cluster bump allocator to allocate space within the
69 buffer. Each cluster gets its own bump allocator to mitigate cache contention,
/xnu-12377.81.4/tests/vm/
H A Dvm_allocation.c1721 allocate_fn_t allocator = get_allocator(); in test_reallocate_pages() local
1733 kr = allocator(this_task, &i, vm_page_size, VM_FLAGS_FIXED); in test_reallocate_pages()
1758 allocate_fn_t allocator = get_allocator(); in test_allocate_with_kernel_flags() local
1777 kr = allocator(this_task, &address, size, bad_flag); in test_allocate_with_kernel_flags()
2003 allocate_fn_t allocator = get_allocator(); in test_allocate_first_fit_pages() local
2029 kr = allocator(this_task, &i, vm_page_size, VM_FLAGS_FIXED); in test_allocate_first_fit_pages()
/xnu-12377.81.4/osfmk/mach/
H A Dmach_host.defs269 * Forces a zone allocator garbage collections pass.
/xnu-12377.81.4/doc/vm/
H A Dmemorystatus_kills.md86 Zalloc has run out of VA. If the zone allocator is able to find a good candidate process to kill, i…
/xnu-12377.81.4/osfmk/kern/
H A Dzalloc.c1461 #pragma mark Zone bits allocator