| 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 !race |
| 6 |
|
| 7 |
package race |
| 8 |
|
| 9 |
import ( |
| 10 |
"internal/abi" |
| 11 |
"unsafe" |
| 12 |
) |
| 13 |
|
| 14 |
const Enabled = false |
| 15 |
|
| 16 |
func Acquire(addr unsafe.Pointer) { |
| 17 |
} |
| 18 |
|
| 19 |
func Release(addr unsafe.Pointer) { |
| 20 |
} |
| 21 |
|
| 22 |
func ReleaseMerge(addr unsafe.Pointer) { |
| 23 |
} |
| 24 |
|
| 25 |
func Disable() { |
| 26 |
} |
| 27 |
|
| 28 |
func Enable() { |
| 29 |
} |
| 30 |
|
| 31 |
func Read(addr unsafe.Pointer) { |
| 32 |
} |
| 33 |
|
| 34 |
func ReadPC(addr unsafe.Pointer, callerpc, pc uintptr) { |
| 35 |
} |
| 36 |
|
| 37 |
func ReadObjectPC(t *abi.Type, addr unsafe.Pointer, callerpc, pc uintptr) { |
| 38 |
} |
| 39 |
|
| 40 |
func Write(addr unsafe.Pointer) { |
| 41 |
} |
| 42 |
|
| 43 |
func WritePC(addr unsafe.Pointer, callerpc, pc uintptr) { |
| 44 |
} |
| 45 |
|
| 46 |
func WriteObjectPC(t *abi.Type, addr unsafe.Pointer, callerpc, pc uintptr) { |
| 47 |
} |
| 48 |
|
| 49 |
func ReadRange(addr unsafe.Pointer, len int) { |
| 50 |
} |
| 51 |
|
| 52 |
func WriteRange(addr unsafe.Pointer, len int) { |
| 53 |
} |
| 54 |
|
| 55 |
func Errors() int { return 0 } |