Lines Matching refs:rl
1117 rlimit rl; in TEST() local
1118 ASSERT_EQ(0, getrlimit(RLIMIT_STACK, &rl)); in TEST()
1119 uint64_t original_rlim_cur = rl.rlim_cur; in TEST()
1120 if (rl.rlim_cur == RLIM_INFINITY) { in TEST()
1121 rl.rlim_cur = 8 * 1024 * 1024; // Bionic reports unlimited stacks as 8MiB. in TEST()
1123 auto guard = android::base::make_scope_guard([&rl, original_rlim_cur]() { in TEST()
1124 rl.rlim_cur = original_rlim_cur; in TEST()
1125 ASSERT_EQ(0, setrlimit(RLIMIT_STACK, &rl)); in TEST()
1129 EXPECT_EQ(static_cast<long>(rl.rlim_cur / 4), sysconf(_SC_ARG_MAX)); in TEST()
1132 rl.rlim_cur = 1024; in TEST()
1133 rl.rlim_max = RLIM_INFINITY; in TEST()
1134 ASSERT_EQ(0, setrlimit(RLIMIT_STACK, &rl)); in TEST()
1139 rl.rlim_cur = 128 * sysconf(_SC_PAGE_SIZE); in TEST()
1140 rl.rlim_max = RLIM_INFINITY; in TEST()
1141 ASSERT_EQ(0, setrlimit(RLIMIT_STACK, &rl)); in TEST()