We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 120f445 commit 7a06243Copy full SHA for 7a06243
test/nosplit.go
@@ -70,6 +70,18 @@ start 0 call start
70
start 0 nosplit call start
71
REJECT
72
73
+# Non-trivial recursion runs out of space.
74
+start 0 call f1
75
+f1 0 nosplit call f2
76
+f2 0 nosplit call f1
77
+REJECT
78
+# Same but cycle starts below nosplit entry.
79
80
81
+f2 0 nosplit call f3
82
+f3 0 nosplit call f2
83
84
+
85
# Chains of ordinary functions okay.
86
start 0 call f1
87
f1 80 call f2
@@ -105,6 +117,14 @@ f8 16 nosplit call end
105
117
end 1000
106
118
107
119
120
+# Two paths both go over the stack limit.
121
122
+f1 80 nosplit call f2 call f3
123
+f2 40 nosplit call f4
124
+f3 96 nosplit
125
+f4 40 nosplit
126
127
108
128
# Test cases near the 128-byte limit.
109
129
110
130
# Ordinary stack split frame is always okay.
0 commit comments