aboutsummaryrefslogtreecommitdiff
path: root/scripts/alloc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/alloc.sh')
-rwxr-xr-xscripts/alloc.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/alloc.sh b/scripts/alloc.sh
index c5c46feb..aff3505d 100755
--- a/scripts/alloc.sh
+++ b/scripts/alloc.sh
@@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
-# Copyright (c) 2018-2021 Gavin D. Howard and contributors.
+# Copyright (c) 2018-2023 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -45,6 +45,8 @@
script="$0"
scriptdir=$(dirname "$script")
+. "$scriptdir/functions.sh"
+
export LANG=C
virtlimit=1000000
@@ -72,13 +74,13 @@ define g(n) {
iterations=2000000
for (l=0; l < 100; l++) {
- iterations
- j = f(0, iterations$)
- iterations += 100000
- print "here\n"
- n=10^235929600
- g(n)
- print "success\n"
- n=0
+ iterations
+ j = f(0, iterations$)
+ iterations += 100000
+ print "here\n"
+ n=10^235929600
+ g(n)
+ print "success\n"
+ n=0
}
*EOF