Source file src/runtime/stackswitch_stub.go
1 // Copyright 2026 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build !wasm || !wasm.stackswitch 6 7 package runtime 8 9 // wasmContPerG is the per-g state of WebAssembly stack switching 10 // (GOWASM=stackswitch). It's empty in every other 11 // build, so it adds nothing to the g. 12 type wasmContPerG struct{} 13 14 func wasmContAlloc(gp *g) {} 15