HomeSort by: relevance | last modified time | path
    Searched refs:allocator (Results 1 - 25 of 30) sorted by relevancy

1 2

  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_allocator_local_cache.h 10 // Part of the Sanitizer Allocator.
27 typedef SizeClassAllocator Allocator;
35 void Destroy(SizeClassAllocator *allocator, AllocatorGlobalStats *s) {
36 Drain(allocator);
41 void *Allocate(SizeClassAllocator *allocator, uptr class_id) {
46 if (UNLIKELY(!Refill(c, allocator, class_id)))
52 return reinterpret_cast<void *>(allocator->CompactPtrToPointer(
53 allocator->GetRegionBeginBySizeClass(class_id), chunk));
56 void Deallocate(SizeClassAllocator *allocator, uptr class_id, void *p) {
59 // If the first allocator call on a new thread is a deallocation, the
    [all...]
sanitizer_symbolizer_posix_libcdep.cc 317 LowLevelAllocator *allocator)
318 : addr2line_path_(addr2line_path), allocator_(allocator) {
449 static SymbolizerTool *ChooseExternalSymbolizer(LowLevelAllocator *allocator) {
457 return new(*allocator) LLVMSymbolizer(path, allocator);
461 return new(*allocator) AtosSymbolizer(path, allocator);
468 return new(*allocator) Addr2LinePool(path, allocator);
481 return new(*allocator) AtosSymbolizer(found_path, allocator)
    [all...]
sanitizer_symbolizer_mac.h 35 explicit AtosSymbolizer(const char *path, LowLevelAllocator *allocator);
sanitizer_malloc_mac.inc 11 // implementation, which together replace the system allocator.
40 // Used to track changes to the allocator that will affect
46 // This represents the current allocator ABI version.
47 // This field should be incremented every time the Allocator
48 // ABI changes in a way that breaks allocator enumeration.
346 // Set current allocator enumeration version.
sanitizer_symbolizer_win.cc 276 LowLevelAllocator *allocator) {
289 list->push_back(new(*allocator) LLVMSymbolizer(path, allocator));
299 list->push_back(new(*allocator) WinSymbolizerTool());
sanitizer_symbolizer_mac.cc 133 AtosSymbolizer::AtosSymbolizer(const char *path, LowLevelAllocator *allocator)
134 : process_(new(*allocator) AtosSymbolizerProcess(path, getpid())) {}
sanitizer_symbolizer_internal.h 121 explicit LLVMSymbolizer(const char *path, LowLevelAllocator *allocator);
sanitizer_symbolizer_libcdep.cc 262 LLVMSymbolizer::LLVMSymbolizer(const char *path, LowLevelAllocator *allocator)
263 : symbolizer_process_(new(*allocator) LLVMSymbolizerProcess(path)) {}
sanitizer_allocator_primary64.h 10 // Part of the Sanitizer Allocator.
19 // SizeClassAllocator64 -- allocator for 64-bit address space.
123 Report("FATAL: Internal error: %s's allocator exhausted the free list "
292 // The allocator must be locked when calling this function.
774 : allocator(base_allocator),
803 const uptr from_page = allocator.CompactPtrToPointer(region_base, from);
804 const uptr to_page = allocator.CompactPtrToPointer(region_base, to);
811 const ThisT& allocator; member in class:SizeClassAllocator64::MemoryMapper
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
sanitizer_allocator_testlib.cc 56 SecondaryAllocator> Allocator;
58 static Allocator allocator; variable in namespace:__anone61b20c20110
69 allocator.SwallowCache(&cache);
84 allocator.PrintStats();
94 allocator.Init(false /*may_return_null*/);
107 void *p = allocator.Allocate(&cache, size, 8);
116 allocator.Deallocate(&cache, p);
123 void *p = allocator.Allocate(&cache, size, 8, false);
135 p = allocator.Reallocate(&cache, p, size, 8)
    [all...]
sanitizer_allocator_test.cc 57 struct AP64 { // Allocator Params. Short name for shorter demangled names..
193 template <class Allocator>
195 Allocator *a = new Allocator;
197 SizeClassAllocatorLocalCache<Allocator> cache;
218 uptr class_id0 = Allocator::SizeClassMapT::ClassID(size);
231 CHECK_EQ(class_id, Allocator::SizeClassMapT::ClassID(size));
318 template <class Allocator>
320 Allocator *a = new Allocator;
825 AllocatorCache::Allocator *allocator; member in struct:NewThreadParams
839 AllocatorCache::Allocator allocator; local in function:TEST
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/lsan/
lsan_allocator.cc 38 static Allocator allocator; variable in namespace:__lsan
42 allocator.InitLinkerInitialized(
47 allocator.SwallowCache(GetAllocatorCache());
51 return reinterpret_cast<ChunkMetadata *>(allocator.GetMetaData(p));
85 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment);
92 // Do not rely on the allocator to clear the memory (it's slow).
93 if (cleared && allocator.FromPrimary(p))
115 allocator.Deallocate(GetAllocatorCache(), p);
122 allocator.Deallocate(GetAllocatorCache(), p)
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/msan/
msan_allocator.cc 12 // MemorySanitizer allocator.
123 SecondaryAllocator> Allocator;
125 static Allocator allocator; variable in namespace:__msan
131 allocator.Init(common_flags()->allocator_release_to_os_interval_ms);
141 allocator.SwallowCache(GetAllocatorCache(this));
157 allocated = allocator.Allocate(cache, size, alignment);
161 allocated = allocator.Allocate(cache, size, alignment);
170 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated));
189 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p))
    [all...]
  /src/sys/external/bsd/drm/dist/bsd-core/
drm_sman.h 48 * A class that is an abstration of a simple memory allocator.
49 * The sman implementation provides a default such allocator
71 /* Free all resources associated with this allocator */
121 * Initialize a drm_mm.c allocator. Should be called only once for each
129 * Initialize a customized allocator for one of the managers.
130 * (See the SiS module). The object pointed to by "allocator" is copied,
135 struct drm_sman_mm * allocator);
drm_sman.c 157 struct drm_sman_mm * allocator)
160 sman->mm[manager] = *allocator;
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
tsan_mman.cc 65 static char allocator_placeholder[sizeof(Allocator)] ALIGNED(64);
66 Allocator *allocator() { function in namespace:__tsan
67 return reinterpret_cast<Allocator*>(&allocator_placeholder);
119 allocator()->Init(common_flags()->allocator_release_to_os_interval_ms);
127 allocator()->InitCache(&proc->alloc_cache);
132 allocator()->DestroyCache(&proc->alloc_cache);
137 allocator()->PrintStats();
164 void *p = allocator()->Allocate(&thr->proc()->alloc_cache, sz, align);
183 allocator()->Deallocate(&thr->proc()->alloc_cache, p)
    [all...]
tsan_debugging.cc 200 Allocator *a = allocator();
207 region_address = (uptr)allocator()->GetBlockBegin((void *)addr);
240 Allocator *a = allocator();
tsan_external.cc 101 Allocator *a = allocator();
  /src/sys/external/bsd/compiler_rt/dist/lib/asan/
asan_allocator.cc 12 // Implementation of ASan's memory allocator, 2-nd version.
13 // This variant uses the allocator from sanitizer_common, i.e. the one shared
54 // The memory chunk allocated from the underlying allocator looks like this:
104 // Every chunk of memory allocated by this allocator can be in one of 3 states:
154 // Clear the magic value, as allocator internals may overwrite the
240 struct Allocator {
244 AsanAllocator allocator; member in struct:__asan::Allocator
258 explicit Allocator(LinkerInitialized)
282 allocator.InitLinkerInitialized(options.release_to_os_interval_ms);
298 uptr allocated_size = allocator.GetActuallyAllocatedSize((void *)ac)
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/
FuzzerDefs.h 160 // We are using a custom allocator to give a different symbol name to STL
163 class fuzzer_allocator: public std::allocator<T> {
  /src/usr.sbin/makefs/ffs/
ffs_alloc.c 251 daddr_t (*allocator)(struct inode *, int, daddr_t, int))
261 result = (*allocator)(ip, cg, pref, size);
271 result = (*allocator)(ip, cg, 0, size);
282 result = (*allocator)(ip, cg, 0, size);
  /src/usr.bin/make/unit-tests/
parse.mk 35 # memory allocator. To get a crash, the terminating '\0' of the line must be
  /src/sys/ufs/ext2fs/
ext2fs_alloc.c 292 daddr_t (*allocator)(struct inode *, int, daddr_t, int))
302 result = (*allocator)(ip, cg, pref, size);
312 result = (*allocator)(ip, cg, 0, size);
323 result = (*allocator)(ip, cg, 0, size);
  /src/sys/arch/mvme68k/stand/sboot/
oc_cksum.s 60 | of the kernel's allocator, the data we're called with is almost
  /src/sys/external/bsd/compiler_rt/dist/lib/xray/
xray_segmented_array.h 31 /// the Allocator type, in that all memory will be released when the Allocator
59 // - Request cacheline-multiple sized elements from the allocator.
68 using AllocatorType = Allocator<SegmentSize>;
346 AllocatorType &allocator() const XRAY_NEVER_INSTRUMENT { function in class:__xray::Array

Completed in 26 milliseconds

1 2