Home
last modified time | relevance | path

Searched refs:mallopt (Results 1 – 20 of 20) sorted by relevance

/bionic/benchmarks/
Dstdlib_benchmark.cpp44 mallopt(M_DECAY_TIME, 0); in BM_stdlib_malloc_free_default()
53 mallopt(M_DECAY_TIME, 1); in BM_stdlib_malloc_free_decay1()
57 mallopt(M_DECAY_TIME, 0); in BM_stdlib_malloc_free_decay1()
79 mallopt(M_DECAY_TIME, 0); in BM_stdlib_calloc_free_default()
88 mallopt(M_DECAY_TIME, 1); in BM_stdlib_calloc_free_decay1()
92 mallopt(M_DECAY_TIME, 0); in BM_stdlib_calloc_free_decay1()
119 mallopt(M_DECAY_TIME, 0); in BM_stdlib_malloc_forty_default()
128 mallopt(M_DECAY_TIME, 1); in BM_stdlib_malloc_forty_decay1()
132 mallopt(M_DECAY_TIME, 0); in BM_stdlib_malloc_forty_decay1()
140 mallopt(M_DECAY_TIME, 0); in BM_stdlib_malloc_multiple_8192_allocs_default()
[all …]
Dmalloc_benchmark.cpp42 mallopt(M_DECAY_TIME, 1); in BM_mallopt_purge()
43 mallopt(M_PURGE, 0); in BM_mallopt_purge()
66 mallopt(M_PURGE, 0); in BM_mallopt_purge()
68 mallopt(M_DECAY_TIME, 0); in BM_mallopt_purge()
Dmalloc_sql_benchmark.cpp108 mallopt(M_DECAY_TIME, 0); in BM_malloc_sql_trace_default()
118 mallopt(M_DECAY_TIME, 1); in BM_malloc_sql_trace_decay1()
125 mallopt(M_DECAY_TIME, 0); in BM_malloc_sql_trace_decay1()
Dmalloc_map_benchmark.cpp72 mallopt(M_PURGE, 0); in MapBenchmark()
83 mallopt(M_PURGE, 0); in MapBenchmark()
/bionic/docs/
Dnative_allocator.md25 Android supports a few non-standard functions and mallopt controls that
51 These are mallopt options that Android requires for a native allocator
55 When set to zero, `mallopt(M_DECAY_TIME, 0)`, it is expected that an
60 When set to non-zero, `mallopt(M_DECAY_TIME, 1)`, an allocator can delay the
72 For all applications on Android, the call `mallopt(M_DECAY_TIME, 1)` is
77 When called, `mallopt(M_PURGE, 0)`, an allocator should purge and release
178 To run the benchmarks with `mallopt(M_DECAY_TIME, 0)`, use these commands:
183 To run the benchmarks with `mallopt(M_DECAY_TIME, 1)`, use these commands:
210 To run the benchmarks with `mallopt(M_DECAY_TIME, 0)`, use these commands:
215 To run the benchmarks with `mallopt(M_DECAY_TIME, 1)`, use these commands:
[all …]
Dstatus.md122 * `mallopt`
/bionic/libc/bionic/
Dmalloc_common.cpp102 extern "C" int mallopt(int param, int value) { in mallopt() function
105 return dispatch_table->mallopt(param, value); in mallopt()
107 return Malloc(mallopt)(param, value); in mallopt()
353 Malloc(mallopt),
Dmalloc_limit.cpp389 return dispatch_table->mallopt(param, value); in LimitMallopt()
391 return Malloc(mallopt)(param, value); in LimitMallopt()
Dgwp_asan_wrappers.cpp197 Malloc(mallopt),
Dmalloc_common_dynamic.cpp147 if (!InitMallocFunction<MallocMallopt>(impl_handler, &table->mallopt, prefix, "mallopt")) { in InitMallocFunctions()
/bionic/tests/
Dmalloc_test.cpp637 ASSERT_EQ(0, mallopt(-1000, 1)); in TEST()
646 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 1)); in TEST()
647 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 0)); in TEST()
648 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 1)); in TEST()
649 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 0)); in TEST()
659 ASSERT_EQ(1, mallopt(M_PURGE, 0)); in TEST()
697 ASSERT_EQ(1, mallopt(M_CACHE_COUNT_MAX, 100)); in TEST()
698 ASSERT_EQ(1, mallopt(M_CACHE_SIZE_MAX, 1024 * 1024 * 2)); in TEST()
699 ASSERT_EQ(1, mallopt(M_TSDS_COUNT_MAX, 8)); in TEST()
Dmalloc_stress_test.cpp44 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 1)); in TEST()
/bionic/libc/private/
Dbionic_malloc_dispatch.h76 MallocMallopt mallopt; member
/bionic/libc/include/
Dmalloc.h204 int mallopt(int __option, int __value) __INTRODUCED_IN(26);
/bionic/libc/malloc_hooks/
Dmalloc_hooks.cpp176 return g_dispatch->mallopt(param, value); in hooks_mallopt()
/bionic/libc/malloc_hooks/tests/
Dmalloc_hooks_tests.cpp189 EXPECT_EQ(0, mallopt(-1000, -1000)); in TEST_F()
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp825 return g_dispatch->mallopt(param, value); in debug_mallopt()
/bionic/tools/versioner/platforms/
Dlibc.map.txt1309 mallopt; # introduced=26
/bionic/libc/
Dlibc.map.txt1309 mallopt; # introduced=26
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp147 mallopt,