Home
last modified time | relevance | path

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

/bionic/benchmarks/
Dstdlib_benchmark.cpp47 mallopt(M_DECAY_TIME, 0); in BM_stdlib_malloc_free_default()
58 mallopt(M_DECAY_TIME, 1); in BM_stdlib_malloc_free_decay1()
84 mallopt(M_DECAY_TIME, 0); in BM_stdlib_calloc_free_default()
93 mallopt(M_DECAY_TIME, 1); in BM_stdlib_calloc_free_decay1()
97 mallopt(M_DECAY_TIME, 0); in BM_stdlib_calloc_free_decay1()
125 mallopt(M_DECAY_TIME, 0); in BM_stdlib_malloc_forty_default()
136 mallopt(M_DECAY_TIME, 1); in BM_stdlib_malloc_forty_decay1()
148 mallopt(M_DECAY_TIME, 0); in BM_stdlib_malloc_multiple_8192_allocs_default()
159 mallopt(M_DECAY_TIME, 1); in BM_stdlib_malloc_multiple_8192_allocs_decay1()
Dmalloc_benchmark.cpp49 mallopt(M_DECAY_TIME, 1); in RunMalloptPurge()
50 mallopt(M_PURGE_ALL, 0); in RunMalloptPurge()
73 mallopt(purge_value, 0); in RunMalloptPurge()
Dmalloc_sql_benchmark.cpp111 mallopt(M_DECAY_TIME, 0); in BM_malloc_sql_trace_default()
123 mallopt(M_DECAY_TIME, 1); in BM_malloc_sql_trace_decay1()
DScopedDecayTimeRestorer.h34 virtual ~ScopedDecayTimeRestorer() { mallopt(M_DECAY_TIME, saved_value_); } in ~ScopedDecayTimeRestorer()
Dmalloc_rss_benchmark.cpp103 mallopt(M_DECAY_TIME, 0); in StressSizeClass()
115 mallopt(M_PURGE_ALL, 0); in StressSizeClass()
Dmalloc_map_benchmark.cpp72 mallopt(M_PURGE_ALL, 0); in MapBenchmark()
83 mallopt(M_PURGE_ALL, 0); in MapBenchmark()
/bionic/tests/
Dmalloc_test.cpp106 mallopt(M_THREAD_DISABLE_MEM_INIT, 1); in TEST()
113 mallopt(M_THREAD_DISABLE_MEM_INIT, 0); in TEST()
670 ASSERT_EQ(0, mallopt(-1000, 1)); in TEST()
681 ASSERT_EQ(1, mallopt(M_DECAY_TIME, -1)); in TEST()
682 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 1)); in TEST()
683 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 0)); in TEST()
684 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 1)); in TEST()
685 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 0)); in TEST()
686 ASSERT_EQ(1, mallopt(M_DECAY_TIME, -1)); in TEST()
695 ASSERT_EQ(1, mallopt(M_PURGE, 0)); in TEST()
[all …]
Dmalloc_stress_test.cpp44 ASSERT_EQ(1, mallopt(M_DECAY_TIME, 1)); in TEST()
Dheap_tagging_level_test.cpp45 return mallopt(M_BIONIC_SET_HEAP_TAGGING_LEVEL, level); in SetHeapTaggingLevel()
/bionic/libc/bionic/
Dmalloc_common.cpp104 extern "C" int mallopt(int param, int value) { in mallopt() function
118 retval = dispatch_table->mallopt(param, value); in mallopt()
120 retval = Malloc(mallopt)(param, value); in mallopt()
391 Malloc(mallopt),
Dmalloc_limit.cpp397 return dispatch_table->mallopt(param, value); in LimitMallopt()
399 return Malloc(mallopt)(param, value); in LimitMallopt()
Dgwp_asan_wrappers.cpp170 Malloc(mallopt),
Dmalloc_common_dynamic.cpp149 if (!InitMallocFunction<MallocMallopt>(impl_handler, &table->mallopt, prefix, "mallopt")) { in InitMallocFunctions()
/bionic/libc/malloc_debug/
DLogAllocatorStats.cpp50 if (mallopt(M_LOG_STATS, 0) == 0) { in CheckIfShouldLog()
Dmalloc_debug.cpp500 g_dispatch->mallopt(M_PURGE_ALL, 0); in debug_free_malloc_leak_info()
972 return g_dispatch->mallopt(param, value); in debug_mallopt()
1135 g_dispatch->mallopt(M_PURGE_ALL, 0); in write_dump()
DREADME.md346 mallopt(M_LOG_STATS, 0);
349 devices). The mallopt call is not async safe and is not called from the
351 the mallopt is called.
/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.md179 * `mallopt`
/bionic/libc/private/
Dbionic_malloc_dispatch.h76 MallocMallopt mallopt; member
/bionic/libc/include/
Dmalloc.h359 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.cpp191 EXPECT_EQ(0, mallopt(-1000, -1000)); in TEST_F()
/bionic/libc/
Dlibc.map.txt1307 mallopt; # introduced=26
/bionic/tools/versioner/platforms/
Dlibc.map.txt1307 mallopt; # introduced=26
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp172 mallopt,