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