Home
last modified time | relevance | path

Searched refs:new_functions (Results 1 – 3 of 3) sorted by relevance

/aosp_15_r20/external/cronet/base/allocator/partition_allocator/src/partition_alloc/shim/
H A Dallocator_shim_override_apple_symbols.h21 MallocZoneFunctions new_functions; in MallocZoneFunctionsToReplaceDefault() local
22 memset(&new_functions, 0, sizeof(MallocZoneFunctions)); in MallocZoneFunctionsToReplaceDefault()
23 new_functions.size = [](malloc_zone_t* zone, const void* ptr) -> size_t { in MallocZoneFunctionsToReplaceDefault()
26 new_functions.good_size = [](malloc_zone_t* zone, size_t size) -> size_t { in MallocZoneFunctionsToReplaceDefault()
29 new_functions.claimed_address = [](malloc_zone_t* zone, in MallocZoneFunctionsToReplaceDefault()
33 new_functions.malloc = [](malloc_zone_t* zone, size_t size) -> void* { in MallocZoneFunctionsToReplaceDefault()
36 new_functions.calloc = [](malloc_zone_t* zone, size_t n, in MallocZoneFunctionsToReplaceDefault()
40 new_functions.valloc = [](malloc_zone_t* zone, size_t size) -> void* { in MallocZoneFunctionsToReplaceDefault()
43 new_functions.free = [](malloc_zone_t* zone, void* ptr) { in MallocZoneFunctionsToReplaceDefault()
46 new_functions.realloc = [](malloc_zone_t* zone, void* ptr, in MallocZoneFunctionsToReplaceDefault()
[all …]
H A Dallocator_interception_apple.mm438 MallocZoneFunctions new_functions = {};
439 new_functions.malloc = oom_killer_malloc;
440 new_functions.calloc = oom_killer_calloc;
441 new_functions.valloc = oom_killer_valloc;
442 new_functions.free = oom_killer_free;
443 new_functions.realloc = oom_killer_realloc;
444 new_functions.memalign = oom_killer_memalign;
446 ReplaceZoneFunctions(default_zone, &new_functions);
455 MallocZoneFunctions new_functions = {};
456 new_functions.malloc = oom_killer_malloc_purgeable;
[all …]
/aosp_15_r20/external/grpc-grpc/test/core/util/
H A Dport.cc133 grpc_pick_port_functions new_functions) { in grpc_set_pick_port_functions() argument
134 GPR_ASSERT(new_functions.pick_unused_port_or_die_fn != nullptr); in grpc_set_pick_port_functions()
135 GPR_ASSERT(new_functions.recycle_unused_port_fn != nullptr); in grpc_set_pick_port_functions()
136 return std::exchange(functions(), new_functions); in grpc_set_pick_port_functions()