Skip to content

Commit c02c812

Browse files
committed
runtime: mark traceEnabled as no:split
The traceEnabled function splits the stack and is being called by reentersyscall that shouldn't call anything that splits the stack. Fixes #61975
1 parent 610d47a commit c02c812

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/trace.go

+2
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ func traceBufPtrOf(b *traceBuf) traceBufPtr {
257257
}
258258

259259
// traceEnabled returns true if the trace is currently enabled.
260+
//
261+
//go:nosplit
260262
func traceEnabled() bool {
261263
return trace.enabled
262264
}

0 commit comments

Comments
 (0)