summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/race0.c
blob: b74b03583b7edcdf811b98ca5a4eb57e71183270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Stub implementation of the race detector API.
// +build !race

#include "runtime.h"

uintptr
runtime·raceinit(void)
{
	return 0;
}

void
runtime·racefini(void)
{
}


void
runtime·racemapshadow(void *addr, uintptr size)
{
	USED(addr);
	USED(size);
}

void
runtime·racewritepc(void *addr, void *callpc, void *pc)
{
	USED(addr);
	USED(callpc);
	USED(pc);
}

void
runtime·racereadpc(void *addr, void *callpc, void *pc)
{
	USED(addr);
	USED(callpc);
	USED(pc);
}

void
runtime·racewriterangepc(void *addr, uintptr sz, void *callpc, void *pc)
{
	USED(addr);
	USED(sz);
	USED(callpc);
	USED(pc);
}

void
runtime·racereadrangepc(void *addr, uintptr sz, void *callpc, void *pc)
{
	USED(addr);
	USED(sz);
	USED(callpc);
	USED(pc);
}

void
runtime·raceacquire(void *addr)
{
	USED(addr);
}

void
runtime·raceacquireg(G *gp, void *addr)
{
	USED(gp);
	USED(addr);
}

void
runtime·racerelease(void *addr)
{
	USED(addr);
}

void
runtime·racereleaseg(G *gp, void *addr)
{
	USED(gp);
	USED(addr);
}

void
runtime·racereleasemerge(void *addr)
{
	USED(addr);
}

void
runtime·racereleasemergeg(G *gp, void *addr)
{
	USED(gp);
	USED(addr);
}

void
runtime·racefingo(void)
{
}

void
runtime·racemalloc(void *p, uintptr sz)
{
	USED(p);
	USED(sz);
}

void
runtime·racefree(void *p)
{
	USED(p);
}

uintptr
runtime·racegostart(void *pc)
{
	USED(pc);
	return 0;
}

void
runtime·racegoend(void)
{
}