1 // Copyright 2021 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.
7 // Dummy ASan support API, used when not built with -asan.
15 const asanenabled = false
17 // Because asanenabled is false, none of these functions should be called.
19 func asanread(addr unsafe.Pointer, sz uintptr) { throw("asan") }
20 func asanwrite(addr unsafe.Pointer, sz uintptr) { throw("asan") }
21 func asanunpoison(addr unsafe.Pointer, sz uintptr) { throw("asan") }
22 func asanpoison(addr unsafe.Pointer, sz uintptr) { throw("asan") }
23 func asanregisterglobals(addr unsafe.Pointer, sz uintptr) { throw("asan") }