Lines Matching refs:android_mallopt

1118 TEST(android_mallopt, error_on_unexpected_option) {  in TEST()  argument
1122 EXPECT_EQ(false, android_mallopt(unrecognized_option, nullptr, 0)); in TEST()
1148 TEST(android_mallopt, init_zygote_child_profiling) { in TEST() argument
1153 EXPECT_EQ(true, android_mallopt(M_INIT_ZYGOTE_CHILD_PROFILING, nullptr, 0)); in TEST()
1157 EXPECT_EQ(false, android_mallopt(M_INIT_ZYGOTE_CHILD_PROFILING, nullptr, 0)); in TEST()
1164 EXPECT_EQ(false, android_mallopt(M_INIT_ZYGOTE_CHILD_PROFILING, &unexpected, 1)); in TEST()
1180 ASSERT_TRUE(android_mallopt(M_SET_ALLOCATION_LIMIT_BYTES, &limit, sizeof(limit))); in CheckAllocationFunction()
1189 TEST(android_mallopt, set_allocation_limit) { in TEST() argument
1224 TEST(android_mallopt, set_allocation_limit_multiple) { in TEST() argument
1228 ASSERT_TRUE(android_mallopt(M_SET_ALLOCATION_LIMIT_BYTES, &limit, sizeof(limit))); in TEST()
1230 ASSERT_FALSE(android_mallopt(M_SET_ALLOCATION_LIMIT_BYTES, &limit, sizeof(limit))); in TEST()
1271 TEST(android_mallopt, set_allocation_limit_realloc_increase) { in TEST() argument
1274 ASSERT_TRUE(android_mallopt(M_SET_ALLOCATION_LIMIT_BYTES, &limit, sizeof(limit))); in TEST()
1301 TEST(android_mallopt, set_allocation_limit_realloc_decrease) { in TEST() argument
1304 ASSERT_TRUE(android_mallopt(M_SET_ALLOCATION_LIMIT_BYTES, &limit, sizeof(limit))); in TEST()
1329 TEST(android_mallopt, set_allocation_limit_realloc_free) { in TEST() argument
1332 ASSERT_TRUE(android_mallopt(M_SET_ALLOCATION_LIMIT_BYTES, &limit, sizeof(limit))); in TEST()
1362 if (android_mallopt(M_SET_ALLOCATION_LIMIT_BYTES, &limit, sizeof(limit))) { in SetAllocationLimitMultipleThreads()
1391 TEST(android_mallopt, set_allocation_limit_multiple_threads) { in TEST() argument
1394 ASSERT_TRUE(android_mallopt(M_INIT_ZYGOTE_CHILD_PROFILING, nullptr, 0)); in TEST()
1416 TEST(android_mallopt, DISABLED_multiple_enable_gwp_asan) { in TEST() argument
1422 ASSERT_TRUE(android_mallopt(M_INITIALIZE_GWP_ASAN, &options, sizeof(options))); in TEST()
1424 ASSERT_TRUE(android_mallopt(M_INITIALIZE_GWP_ASAN, &options, sizeof(options))); in TEST()
1428 TEST(android_mallopt, multiple_enable_gwp_asan) { in TEST() argument
1437 TEST(android_mallopt, memtag_stack_is_on) { in TEST() argument
1440 EXPECT_TRUE(android_mallopt(M_MEMTAG_STACK_IS_ON, &memtag_stack, sizeof(memtag_stack))); in TEST()
1741 TEST(android_mallopt, get_decay_time_enabled_errors) { in TEST() argument
1744 EXPECT_FALSE(android_mallopt(M_GET_DECAY_TIME_ENABLED, nullptr, sizeof(bool))); in TEST()
1749 EXPECT_FALSE(android_mallopt(M_GET_DECAY_TIME_ENABLED, &value, sizeof(value))); in TEST()
1756 TEST(android_mallopt, get_decay_time_enabled) { in TEST() argument
1763 EXPECT_TRUE(android_mallopt(M_GET_DECAY_TIME_ENABLED, &value, sizeof(value))); in TEST()
1767 EXPECT_TRUE(android_mallopt(M_GET_DECAY_TIME_ENABLED, &value, sizeof(value))); in TEST()
1771 EXPECT_TRUE(android_mallopt(M_GET_DECAY_TIME_ENABLED, &value, sizeof(value))); in TEST()