github.com/zebozhuang/go@v0.0.0-20200207033046-f8a98f6f5c5d/src/syscall/msan.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 // +build msan 6 7 package syscall 8 9 import ( 10 "runtime" 11 "unsafe" 12 ) 13 14 const msanenabled = true 15 16 func msanRead(addr unsafe.Pointer, len int) { 17 runtime.MSanRead(addr, len) 18 } 19 20 func msanWrite(addr unsafe.Pointer, len int) { 21 runtime.MSanWrite(addr, len) 22 }