Lines Matching refs:rl
1761 rlimit rl; in TEST() local
1762 ASSERT_EQ(0, getrlimit(RLIMIT_STACK, &rl)); in TEST()
1763 uint64_t original_rlim_cur = rl.rlim_cur; in TEST()
1764 if (rl.rlim_cur == RLIM_INFINITY) { in TEST()
1765 rl.rlim_cur = 8 * 1024 * 1024; // Bionic reports unlimited stacks as 8MiB. in TEST()
1767 EXPECT_EQ(rl.rlim_cur, stack_size); in TEST()
1769 auto guard = android::base::make_scope_guard([&rl, original_rlim_cur]() { in TEST()
1770 rl.rlim_cur = original_rlim_cur; in TEST()
1771 ASSERT_EQ(0, setrlimit(RLIMIT_STACK, &rl)); in TEST()
1777 rl.rlim_cur = rl.rlim_max = 1024; // 1KiB. We know the stack must be at least a page already. in TEST()
1778 rl.rlim_max = RLIM_INFINITY; in TEST()
1779 ASSERT_EQ(0, setrlimit(RLIMIT_STACK, &rl)); in TEST()
1791 rl.rlim_cur = rl.rlim_max = 6666; // Not a whole number of pages. in TEST()
1792 rl.rlim_max = RLIM_INFINITY; in TEST()
1793 ASSERT_EQ(0, setrlimit(RLIMIT_STACK, &rl)); in TEST()