Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Delta Between Two Patch Sets: src/pkg/runtime/race.h

Issue 7229044: code review 7229044: runtime: implement range access functions in race detector. (Closed)
Left Patch Set: Created 12 years, 1 month ago
Right Patch Set: diff -r 229081515358 https://go.googlecode.com/hg/ Created 12 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | src/pkg/runtime/race.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2012 The Go Authors. All rights reserved. 1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // Definitions related to data race detection. 5 // Definitions related to data race detection.
6 6
7 #ifdef RACE 7 #ifdef RACE
8 enum { raceenabled = 1 }; 8 enum { raceenabled = 1 };
9 #else 9 #else
10 enum { raceenabled = 0 }; 10 enum { raceenabled = 0 };
11 #endif 11 #endif
12 12
13 // Initialize race detection subsystem. 13 // Initialize race detection subsystem.
14 void runtime·raceinit(void); 14 void runtime·raceinit(void);
15 // Finalize race detection subsystem, does not return. 15 // Finalize race detection subsystem, does not return.
16 void runtime·racefini(void); 16 void runtime·racefini(void);
17 17
18 void runtime·racemapshadow(void *addr, uintptr size); 18 void runtime·racemapshadow(void *addr, uintptr size);
19 void runtime·racemalloc(void *p, uintptr sz, void *pc); 19 void runtime·racemalloc(void *p, uintptr sz, void *pc);
20 void runtime·racefree(void *p); 20 void runtime·racefree(void *p);
21 void runtime·racegostart(int32 goid, void *pc); 21 void runtime·racegostart(int32 goid, void *pc);
22 void runtime·racegoend(int32 goid); 22 void runtime·racegoend(int32 goid);
23 void runtime·racewritepc(void *addr, void *callpc, void *pc); 23 void runtime·racewritepc(void *addr, void *callpc, void *pc);
24 void runtime·racereadpc(void *addr, void *callpc, void *pc); 24 void runtime·racereadpc(void *addr, void *callpc, void *pc);
25 void runtime·racewriterangepc(void *addr, uintptr sz, uintptr step, void *cal lpc, void *pc);
26 void runtime·racereadrangepc(void *addr, uintptr sz, uintptr step, void *call pc, void *pc);
25 void runtime·racefingo(void); 27 void runtime·racefingo(void);
26 void runtime·raceacquire(void *addr); 28 void runtime·raceacquire(void *addr);
27 void runtime·raceacquireg(G *gp, void *addr); 29 void runtime·raceacquireg(G *gp, void *addr);
28 void runtime·racerelease(void *addr); 30 void runtime·racerelease(void *addr);
29 void runtime·racereleaseg(G *gp, void *addr); 31 void runtime·racereleaseg(G *gp, void *addr);
30 void runtime·racereleasemerge(void *addr); 32 void runtime·racereleasemerge(void *addr);
31 void runtime·racereleasemergeg(G *gp, void *addr); 33 void runtime·racereleasemergeg(G *gp, void *addr);
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b