Home
last modified time | relevance | path

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

/bionic/benchmarks/
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()
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_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/libc/bionic/
Dmalloc_common.cpp104 extern "C" int mallopt(int param, int value) { in mallopt() function
116 return dispatch_table->mallopt(param, value); in mallopt()
118 return Malloc(mallopt)(param, value); in mallopt()
361 Malloc(mallopt),
Dmalloc_limit.cpp389 return dispatch_table->mallopt(param, value); in LimitMallopt()
391 return Malloc(mallopt)(param, value); in LimitMallopt()
Dgwp_asan_wrappers.cpp196 Malloc(mallopt),
Dmalloc_common_dynamic.cpp149 if (!InitMallocFunction<MallocMallopt>(impl_handler, &table->mallopt, prefix, "mallopt")) { in InitMallocFunctions()
/bionic/libc/private/
Dbionic_malloc_dispatch.h76 MallocMallopt mallopt; member
/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/tests/
Dmalloc_test.cpp96 mallopt(M_THREAD_DISABLE_MEM_INIT, 1); in TEST()
103 mallopt(M_THREAD_DISABLE_MEM_INIT, 0); in TEST()
659 ASSERT_EQ(0, mallopt(-1000, 1)); in TEST()
668 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 1)); in TEST()
669 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 0)); in TEST()
670 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 1)); in TEST()
671 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 0)); in TEST()
681 ASSERT_EQ(1, mallopt(M_PURGE, 0)); in TEST()
719 ASSERT_EQ(1, mallopt(M_CACHE_COUNT_MAX, 100)); in TEST()
720 ASSERT_EQ(1, mallopt(M_CACHE_SIZE_MAX, 1024 * 1024 * 2)); in TEST()
[all …]
Dmalloc_stress_test.cpp44 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 1)); in TEST()
Dheap_tagging_level_test.cpp41 return mallopt(M_BIONIC_SET_HEAP_TAGGING_LEVEL, level); in SetHeapTaggingLevel()
/bionic/libc/include/
Dmalloc.h308 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/tools/versioner/platforms/
Dlibc.map.txt1309 mallopt; # introduced=26
/bionic/libc/
Dlibc.map.txt1309 mallopt; # introduced=26