/bionic/benchmarks/ |
D | stdlib_benchmark.cpp | 44 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 …]
|
D | malloc_benchmark.cpp | 42 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()
|
D | malloc_sql_benchmark.cpp | 108 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()
|
D | malloc_map_benchmark.cpp | 72 mallopt(M_PURGE, 0); in MapBenchmark() 83 mallopt(M_PURGE, 0); in MapBenchmark()
|
/bionic/docs/ |
D | native_allocator.md | 25 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 …]
|
D | status.md | 122 * `mallopt`
|
/bionic/libc/bionic/ |
D | malloc_common.cpp | 102 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),
|
D | malloc_limit.cpp | 389 return dispatch_table->mallopt(param, value); in LimitMallopt() 391 return Malloc(mallopt)(param, value); in LimitMallopt()
|
D | gwp_asan_wrappers.cpp | 197 Malloc(mallopt),
|
D | malloc_common_dynamic.cpp | 147 if (!InitMallocFunction<MallocMallopt>(impl_handler, &table->mallopt, prefix, "mallopt")) { in InitMallocFunctions()
|
/bionic/tests/ |
D | malloc_test.cpp | 637 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()
|
D | malloc_stress_test.cpp | 44 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 1)); in TEST()
|
/bionic/libc/private/ |
D | bionic_malloc_dispatch.h | 76 MallocMallopt mallopt; member
|
/bionic/libc/include/ |
D | malloc.h | 204 int mallopt(int __option, int __value) __INTRODUCED_IN(26);
|
/bionic/libc/malloc_hooks/ |
D | malloc_hooks.cpp | 176 return g_dispatch->mallopt(param, value); in hooks_mallopt()
|
/bionic/libc/malloc_hooks/tests/ |
D | malloc_hooks_tests.cpp | 189 EXPECT_EQ(0, mallopt(-1000, -1000)); in TEST_F()
|
/bionic/libc/malloc_debug/ |
D | malloc_debug.cpp | 825 return g_dispatch->mallopt(param, value); in debug_mallopt()
|
/bionic/tools/versioner/platforms/ |
D | libc.map.txt | 1309 mallopt; # introduced=26
|
/bionic/libc/ |
D | libc.map.txt | 1309 mallopt; # introduced=26
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 147 mallopt,
|