File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,20 +4,20 @@ source test/truffle/common.sh.inc
4
4
5
5
file=${1:- host-inlining.txt}
6
6
7
+ too_big=' Out of budget|too big to explore|too many fast-path invokes'
8
+
7
9
if [ -n " $TRUFFLERUBY_HOST_INLINING_TEST " ]; then
8
- # shellcheck disable=SC2016
9
10
ruby tool/extract_host_inlining.rb ' org.truffleruby.language.methods.CallForeignMethodNodeGen.execute' " $file " > out.txt
10
- # shellcheck disable=SC2016
11
11
grep -F ' Root[org.truffleruby.language.methods.CallForeignMethodNodeGen.execute]' out.txt
12
- if ! grep -E ' Out of budget|too big to explore ' out.txt; then
13
- echo ' CallForeignMethodNodeGen.execute should be out of budget (too much code) , did host inlining output change?'
12
+ if ! grep -E " $too_big " out.txt; then
13
+ echo " CallForeignMethodNodeGen.execute should be / $too_big / , did host inlining output change?"
14
14
cat out.txt
15
15
exit 1
16
16
fi
17
17
18
18
ruby tool/extract_host_inlining.rb org.truffleruby.language.dispatch.RubyCallNode.execute " $file " > out.txt
19
19
grep -F ' Root[org.truffleruby.language.dispatch.RubyCallNode.execute]' out.txt
20
- if grep -E ' Out of budget|too big to explore ' out.txt; then
20
+ if grep -E " $too_big " out.txt; then
21
21
echo ' RubyCallNode.execute no longer fits in host inlining budget'
22
22
cat out.txt
23
23
exit 1
You can’t perform that action at this time.
0 commit comments