1*b06fab00SAlexandre Ghiti#!/bin/sh
2*b06fab00SAlexandre Ghiti# SPDX-License-Identifier: GPL-2.0
3*b06fab00SAlexandre Ghiti
4*b06fab00SAlexandre Ghitioriginal_stack_limit=$(ulimit -s)
5*b06fab00SAlexandre Ghiti
6*b06fab00SAlexandre Ghiti./mmap_default
7*b06fab00SAlexandre Ghiti
8*b06fab00SAlexandre Ghiti# Force mmap_bottomup to be ran with bottomup memory due to
9*b06fab00SAlexandre Ghiti# the unlimited stack
10*b06fab00SAlexandre Ghitiulimit -s unlimited
11*b06fab00SAlexandre Ghiti./mmap_bottomup
12*b06fab00SAlexandre Ghitiulimit -s $original_stack_limit
13