/freebsd/sys/contrib/edk2/Include/Library/ |
H A D | MemoryAllocationLib.h | 4 The Memory Allocation Library abstracts various common memory allocation operations. This library 5 …allows code to be written in a phase-independent manner because the allocation of memory in PEI, D… 27 @return A pointer to the allocated buffer or NULL if allocation fails. 46 @return A pointer to the allocated buffer or NULL if allocation fails. 65 @return A pointer to the allocated buffer or NULL if allocation fails. 75 Frees one or more 4KB pages that were previously allocated with one of the page allocation 76 functions in the Memory Allocation Library. 79 must have been allocated on a previous call to the page allocation services of the Memory 80 Allocation Library. If it is not possible to free allocated pages, then this function will 83 If Buffer was not allocated with a page allocation function in the Memory Allocation Library, [all …]
|
/freebsd/sys/contrib/dev/acpica/components/utilities/ |
H A D | uttrack.c | 3 * Module Name: uttrack - Memory allocation tracking routines (debug only) 156 * Each memory allocation is tracked via a doubly linked list. Each 176 ACPI_DEBUG_MEM_BLOCK *Allocation); 236 * PARAMETERS: Size - Size of the allocation 254 ACPI_DEBUG_MEM_BLOCK *Allocation; in AcpiUtAllocateAndTrack() local 267 Allocation = AcpiOsAllocate (Size + sizeof (ACPI_DEBUG_MEM_HEADER)); in AcpiUtAllocateAndTrack() 268 if (!Allocation) in AcpiUtAllocateAndTrack() 270 /* Report allocation error */ in AcpiUtAllocateAndTrack() 279 Allocation, Size, ACPI_MEM_MALLOC, Component, Module, Line); in AcpiUtAllocateAndTrack() 282 AcpiOsFree (Allocation); in AcpiUtAllocateAndTrack() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Expression/ |
H A D | IRMemoryMap.cpp | 113 // adequate space for our allocation. in FindSpace() 148 // default if this is our first allocation. in FindSpace() 153 lldbassert(0 && "The allocation address for expression evaluation must " in FindSpace() 295 IRMemoryMap::Allocation::Allocation(lldb::addr_t process_alloc, in Allocation() function in IRMemoryMap::Allocation 343 error.SetErrorString("Couldn't malloc: invalid allocation policy"); in Malloc() 462 error.SetErrorString("Couldn't leak: allocation doesn't exist"); in Leak() 466 Allocation &allocation = iter->second; in Leak() local 468 allocation.m_leak = true; in Leak() 478 error.SetErrorString("Couldn't free: allocation doesn't exist"); in Free() 482 Allocation &allocation = iter->second; in Free() local [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Expression/ |
H A D | IRMemoryMap.h | 41 0, ///< It is an error for an allocation to have this policy. 42 eAllocationPolicyHostOnly, ///< This allocation was created in the host and 46 eAllocationPolicyMirror, ///< The intent is that this allocation exist both 49 eAllocationPolicyProcessOnly ///< The intent is that this allocation exist 89 struct Allocation { struct 91 m_process_alloc; ///< The (unaligned) base for the remote allocation. 93 m_process_start; ///< The base address of the allocation in the process. 94 size_t m_size; ///< The size of the requested allocation. 103 uint8_t m_alignment; ///< The alignment of the requested allocation. 106 Allocation(lldb::addr_t process_alloc, lldb::addr_t process_start, argument [all …]
|
/freebsd/share/doc/papers/kernmalloc/ |
H A D | kernmalloc.t | 94 The 4.3BSD UNIX kernel uses many memory allocation mechanisms, 101 This allocator replaces the multiple memory allocation interfaces 112 .H 1 "Kernel Memory Allocation in 4.3BSD 133 Demands for dynamic memory allocation in the kernel have increased 135 Each time a new type of memory allocation has been required, 136 a specialized memory allocation scheme has been written to handle it. 137 Often the new memory allocation scheme has been built on top 140 memory allocation through the allocation of empty buffers [Thompson78]. 141 The allocation is slow because of the implied semantics of 150 This memory allocation method has several drawbacks. [all …]
|
/freebsd/lib/libc/stdlib/malloc/jemalloc/ |
H A D | jemalloc.3 | 31 jemalloc \- general purpose memory allocation functions 124 bytes of memory such that the allocation\*(Aqs base address is a multiple of 125 \fIalignment\fR, and returns the allocation in the value pointed to by 135 bytes of memory such that the allocation\*(Aqs base address is a multiple of 153 may move the memory allocation, resulting in a different return value than 187 Align the memory allocation to start at an address that is a multiple of 195 Align the memory allocation to start at an address that is a multiple of 242 bytes of memory, and returns a pointer to the base address of the allocation\&. Behavior is undefin… 249 function resizes the allocation at 253 bytes, and returns a pointer to the base address of the resulting allocation, which may or may not … [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | MemAlloc.h | 1 //===- MemAlloc.h - Memory allocation functions -----------------*- C++ -*-===// 10 /// This file defines counterparts of C library allocation functions defined in 11 /// the namespace 'std'. The new allocation functions crash on allocation 28 // It is implementation-defined whether allocation occurs if the space in safe_malloc() 33 report_bad_alloc_error("Allocation failed"); in safe_malloc() 42 // It is implementation-defined whether allocation occurs if the space in safe_calloc() 47 report_bad_alloc_error("Allocation failed"); in safe_calloc() 55 // It is implementation-defined whether allocation occurs if the space in safe_realloc() 60 report_bad_alloc_error("Allocation faile in safe_realloc() [all...] |
/freebsd/share/man/man9/ |
H A D | vm_page_alloc.9 | 133 parameter which encodes the allocation priority and optional modifier flags, 146 support NUMA-aware allocation by returning pages from the 239 is specified the allocator will retry the allocation. 242 allocation returns, the VM object, if any, will have been unlocked while the 248 also encodes the allocation request priority. 251 allocation will fail or the allocating thread will sleep, depending on 262 The allocation will fail only if zero free pages are available. 263 This flag should be used only if the consequences of an allocation failure 266 allocation failures trigger a kernel panic. 295 allocation. [all …]
|
H A D | domainset.9 | 61 API provides memory domain allocation policy for NUMA machines. 78 The allocation policy has the following possible values: 83 This policy can specify a single domain for a fixed allocation. 86 Allocation falls back to round-robin if the current domain is not in the 95 If the preferred node is out of memory the allocation falls back to 120 falling back to a round-robin policy if the initial allocation fails. 132 policies attempt allocation from the specified domain, but unlike
|
H A D | zone.9 | 136 for releasing them back, making them available for subsequent allocation requests. 142 per-CPU cache allocation misses. 189 destroying things that need to be done at the time of the allocation 204 arguments are used to optimize the allocation of items from the zone. 258 domain for the allocation. 275 An allocation from zone would have 278 A CPU can address its private copy using base the allocation address plus 431 Note that slab allocation is performed with the 445 in the allocation request flags. 447 does not perform any pre-allocation by itself. [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | MemoryProfileInfo.h | 26 /// Return the allocation type for a given set of memory profile values. 37 /// Returns the allocation type from an MIB metadata node. 51 /// allocation call, along with their associated allocation types. 52 /// The allocation will be at the root of the trie, which is then used to 54 /// with a single allocation type. 58 // Allocation types for call context sharing the context prefix at this 68 // The node for the allocation at the root. 70 // The allocation's leaf stack id. 93 /// Add a call stack context with the given allocation type to the Trie. 96 /// allocation call down to the bottom of the call stack (i.e. callee to [all …]
|
/freebsd/contrib/expat/tests/ |
H A D | memcheck.c | 46 void *allocation; member 66 entry->allocation = malloc(size); in tracking_malloc() 67 if (entry->allocation == NULL) { in tracking_malloc() 83 return entry->allocation; in tracking_malloc() 91 if (entry->allocation == ptr) { in find_allocation() 110 /* This is the relevant allocation. Unlink it */ in tracking_free() 141 /* Find the allocation entry for this memory */ in tracking_realloc() 150 entry->allocation = realloc(ptr, size); in tracking_realloc() 151 if (entry->allocation == NULL) { in tracking_realloc() 171 entry->allocation = reallocated; in tracking_realloc() [all …]
|
H A D | alloc_tests.c | 1 /* Tests in the "allocation" test case for the Expat test suite 76 /* Test the effects of allocation failures on xml declaration processing */ 150 /* Test the effects of allocation failures on a straightforward parse */ 313 /* More external parser memory allocation testing */ 337 fail("Parsing failed with allocation count 10"); in START_TEST() 363 /* Test more external entity allocation failure paths */ 394 fail("External entity not parsed at max allocation count"); in START_TEST() 398 /* Test more allocation failure paths */ 422 fail("Encoding failed at max allocation count"); in START_TEST() 426 /* Test the effects of allocation failure in internal entities. [all …]
|
/freebsd/contrib/libcbor/src/cbor/ |
H A D | ints.h | 119 * @return **new** positive integer or `NULL` on memory allocation failure. The 128 * @return **new** positive integer or `NULL` on memory allocation failure. The 137 * @return **new** positive integer or `NULL` on memory allocation failure. The 146 * @return **new** positive integer or `NULL` on memory allocation failure. The 154 * @return **new** positive integer or `NULL` on memory allocation failure 161 * @return **new** positive integer or `NULL` on memory allocation failure 168 * @return **new** positive integer or `NULL` on memory allocation failure 175 * @return **new** positive integer or `NULL` on memory allocation failure 182 * @return **new** negative integer or `NULL` on memory allocation failure 189 * @return **new** negative integer or `NULL` on memory allocation failure [all …]
|
H A D | floats_ctrls.h | 93 * @return `NULL` if memory allocation fails 103 * @return `NULL` if memory allocation fails 113 * @return `NULL` if memory allocation fails 123 * @return `NULL` if memory allocation fails 131 * @return `NULL` if memory allocation fails 139 * @return `NULL` if memory allocation fails 148 * @return `NULL` if memory allocation fails 205 * @return `NULL` if memory allocation fails 214 * @return `NULL` if memory allocation fails 223 * @return `NULL` if memory allocation fails [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | MemoryProfileInfo.cpp | 22 // for marking an allocation cold. 27 "lifetime sec) must be under to consider an allocation cold")); 29 // Lower bound on lifetime to mark an allocation cold (in addition to accesses 33 cl::desc("The average lifetime (s) for an allocation to be considered " 37 // density / alloc count) for marking an allocation hot. 42 "allocation to be considered hot")); 46 cl::desc("Report total allocation sizes of hinted allocations")); 88 // The allocation type is currently the second operand of each memprof in getMIBAllocType() 89 // MIB metadata. This will need to change as we add additional allocation in getMIBAllocType() 90 // types that can be applied based on the allocation profile data. in getMIBAllocType() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
H A D | JITLinkMemoryManager.h | 46 /// Represents a finalized allocation. 51 /// The interpretation of the Address associated with the finalized allocation 53 /// base address of the allocation, or the address of a memory management 54 /// object that tracks the allocation. 64 "Explicitly creating an invalid allocation?"); in FinalizedAlloc() 73 "Cannot overwrite active finalized allocation"); 79 "Finalized allocation was not deallocated"); in ~FinalizedAlloc() 86 /// Returns the address associated with this finalized allocation. 87 /// The allocation is unmodified. 90 /// Returns the address associated with this finalized allocation an [all...] |
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/ |
H A D | common.h | 59 // This struct contains all the metadata recorded about a single allocation made 67 // Maximum number of stack frames to collect on allocation/deallocation. The 72 // Records the given allocation metadata into this struct. 74 // Record that this allocation is now deallocated. 81 // The compressed backtrace to the allocation/deallocation. 90 // The address of this allocation. If zero, the rest of this struct isn't 91 // valid, as the allocation has never occurred. 93 // Represents the actual size of the allocation. 99 // Whether this allocation has been deallocated yet. 102 // In recoverable mode, whether this allocation has had a crash associated [all …]
|
H A D | guarded_pool_allocator.h | 47 // in this allocation pool if the allocator decides to runtime-disable 61 // Initialise the rest of the members of this class. Create the allocation 74 // Execute the callback Cb for every allocation the lies in [Base, Base + in shouldSample() 79 // Return whether the allocation should be randomly chosen for sampling. in shouldSample() 82 // == 1 means we "should sample this allocation". in shouldSample() 95 // Returns whether the provided pointer is a current sampled allocation that 103 // if the size/alignment makes the allocation too large for this pool to 113 // Returns the size of the allocation at Ptr. 130 // Returns the actual allocation size required to service an allocation wit [all...] |
H A D | crash_handler.h | 31 // system, but GWP-ASan is responsible for the allocation. In this case - 62 // Returns a pointer to the metadata for the allocation that's responsible for 76 // GWP-ASan, or information about the allocation that caused the error. These 80 // Returns the start of the allocation whose metadata is in `AllocationMeta`. 84 // Returns the size of the allocation whose metadata is in `AllocationMeta` 94 // Retrieve the allocation trace for the allocation whose metadata is in 104 // Returns whether the allocation whose metadata is in `AllocationMeta` has been 116 // Retrieve the deallocation trace for the allocation whose metadata is in
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
H A D | SimpleExecutorMemoryManager.cpp | 31 assert(!Allocations.count(MB.base()) && "Duplicate allocation addr"); in allocate() 58 // Get the Allocation for this finalization. in finalize() 65 "allocation " + in finalize() 76 std::pair<void *, Allocation> AllocToDestroy; in finalize() 78 // Get allocation to destroy. in finalize() 83 // Check for missing allocation (effective a double free). in finalize() 87 make_error<StringError>("No allocation entry found " in finalize() 123 "allocation {2:x} -- {3:x}", in finalize() 153 std::vector<std::pair<void *, Allocation>> AllocPairs; in deallocate() 156 // Get allocation to destroy. in deallocate() [all …]
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_wrapper_malloc.h | 2 * kmp_wrapper_malloc.h -- Wrappers for memory allocation routines 18 1. Declaring standard memory allocation routines in OS-independent way. 19 2. Passing source location info through memory allocation wrappers. 22 1. Declaring standard memory allocation routines in OS-independent way. 39 2. Passing source location info through memory allocation wrappers. 42 leaks. However, memory allocation wrappers may hinder source location. 55 be passed through all the memory allocation wrappers, for example: 85 source location info through memory allocation wrappers"). 140 // Inside memory allocation wrapper, or 142 // Outside of memory allocation wrapper.
|
/freebsd/contrib/lua/src/ |
H A D | lmem.c | 45 ** Macro to call the allocation function. 51 ** When an allocation fails, it will try again after an emergency 65 ** First allocation will fail except when freeing a block (frees never 67 ** and a full GC cycle at every allocation. 72 else /* normal allocation */ in firsttry() 143 luaG_runerror(L, "memory allocation error: block too big"); in luaM_toobig() 159 ** In case of allocation fail, this function will do an emergency 160 ** collection to free some memory and then try the allocation again. 174 ** Generic allocation routine. 195 if (l_unlikely(newblock == NULL && nsize > 0)) /* allocation failed? */ in luaM_saferealloc_()
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | rand_pool.h | 18 * Maximum allocation size for RANDOM_POOL buffers 44 * Initial allocation minimum. 46 * There is a distinction between the secure and normal allocation minimums. 47 * Ideally, the secure allocation size should be a power of two. The normal 48 * allocation size doesn't have any such restriction. 52 * allocation ought to take place (for full quality seed material). 55 * function is usually the largest of the built in allocation (twenty four
|
/freebsd/contrib/jemalloc/ |
H A D | ChangeLog | 46 usage is improved with certain allocation patterns. As usual, the release and 162 - Allow arena index lookup based on allocation addresses via mallctl. 167 allocation. (@interwq, @davidtgoldblatt) 226 - Improve the fit for aligned allocation. (@interwq, @edwinsmith) 273 only allocation activity is to call free() after TLS destructors have been 373 - Improve reentrant allocation support, such that deadlock is less likely if 385 - Unify the allocation paths, and merge most fast-path branching decisions. 478 a single allocation's size exceeds the interval. (@jasone) 498 - Fix DSS (sbrk(2)-based) allocation. This regression was first released in 507 - Fix huge-aligned allocation. This regression was first released in 4.4.0. [all …]
|