Source file src/runtime/secret_nosecret.go
1 // Copyright 2025 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 !(amd64 || arm64) || !linux 6 7 package runtime 8 9 import "unsafe" 10 11 // Stubs for platforms that do not implement runtime/secret 12 13 //go:linkname secret_count runtime/secret.count 14 func secret_count() int32 { return 0 } 15 16 //go:linkname secret_inc runtime/secret.inc 17 func secret_inc() {} 18 19 //go:linkname secret_dec runtime/secret.dec 20 func secret_dec() {} 21 22 //go:linkname secret_eraseSecrets runtime/secret.eraseSecrets 23 func secret_eraseSecrets() {} 24 25 func addSecret(p unsafe.Pointer) {} 26 27 type specialSecret struct{} 28 29 //go:linkname secret_getStack runtime/secret.getStack 30 func secret_getStack() (uintptr, uintptr) { return 0, 0 } 31 32 func noopSignal(mp *m) {} 33