Home
last modified time | relevance | path

Searched refs:alloc_hook (Results 1 – 4 of 4) sorted by relevance

/external/libchrome/base/allocator/
Dallocator_extension.cc38 void SetHooks(AllocHookFunc alloc_hook, FreeHookFunc free_hook) { in SetHooks() argument
42 auto prev_alloc_hook = MallocHook::SetNewHook(alloc_hook); in SetHooks()
43 if (alloc_hook) in SetHooks()
Dallocator_extension.h34 BASE_EXPORT void SetHooks(AllocHookFunc alloc_hook, FreeHookFunc free_hook);
/external/pdfium/third_party/base/allocator/partition_allocator/
Dpartition_alloc.cc82 void PartitionAllocHooks::SetObserverHooks(AllocationObserverHook* alloc_hook, in SetObserverHooks() argument
90 (!alloc_hook && !free_hook)); in SetObserverHooks()
91 allocation_observer_hook_ = alloc_hook; in SetObserverHooks()
97 void PartitionAllocHooks::SetOverrideHooks(AllocationOverrideHook* alloc_hook, in SetOverrideHooks() argument
104 (!alloc_hook && !free_hook && !realloc_hook)); in SetOverrideHooks()
105 allocation_override_hook_ = alloc_hook; in SetOverrideHooks()
Dpartition_alloc.h248 static void SetObserverHooks(AllocationObserverHook* alloc_hook,
250 static void SetOverrideHooks(AllocationOverrideHook* alloc_hook,