github.com/comwrg/go/src@v0.0.0-20220319063731-c238d0440370/runtime/msan0.go (about) 1 // Copyright 2015 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 !msan 6 // +build !msan 7 8 // Dummy MSan support API, used when not built with -msan. 9 10 package runtime 11 12 import ( 13 "unsafe" 14 ) 15 16 const msanenabled = false 17 18 // Because msanenabled is false, none of these functions should be called. 19 20 func msanread(addr unsafe.Pointer, sz uintptr) { throw("msan") } 21 func msanwrite(addr unsafe.Pointer, sz uintptr) { throw("msan") } 22 func msanmalloc(addr unsafe.Pointer, sz uintptr) { throw("msan") } 23 func msanfree(addr unsafe.Pointer, sz uintptr) { throw("msan") } 24 func msanmove(dst, src unsafe.Pointer, sz uintptr) { throw("msan") }