~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to src/pkg/runtime/race.h

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-07-08 05:52:37 UTC
  • mfrom: (29.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130708055237-at01839e0hp8z3ni
Tags: 2:1.1-1ubuntu1
016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2012 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
// Definitions related to data race detection.
 
6
 
 
7
#ifdef RACE
 
8
enum { raceenabled = 1 };
 
9
#else
 
10
enum { raceenabled = 0 };
 
11
#endif
 
12
 
 
13
// Initialize race detection subsystem.
 
14
uintptr runtime·raceinit(void);
 
15
// Finalize race detection subsystem, does not return.
 
16
void    runtime·racefini(void);
 
17
 
 
18
void    runtime·racemapshadow(void *addr, uintptr size);
 
19
void    runtime·racemalloc(void *p, uintptr sz, void *pc);
 
20
void    runtime·racefree(void *p);
 
21
uintptr runtime·racegostart(void *pc);
 
22
void    runtime·racegoend(void);
 
23
void    runtime·racewritepc(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 *callpc, void *pc);
 
26
void    runtime·racereadrangepc(void *addr, uintptr sz, uintptr step, void *callpc, void *pc);
 
27
void    runtime·racefingo(void);
 
28
void    runtime·raceacquire(void *addr);
 
29
void    runtime·raceacquireg(G *gp, void *addr);
 
30
void    runtime·racerelease(void *addr);
 
31
void    runtime·racereleaseg(G *gp, void *addr);
 
32
void    runtime·racereleasemerge(void *addr);
 
33
void    runtime·racereleasemergeg(G *gp, void *addr);