diff options
author | Dmitriy Vyukov <dvyukov@google.com> | 2012-10-02 10:05:46 +0400 |
---|---|---|
committer | Dmitriy Vyukov <dvyukov@google.com> | 2012-10-02 10:05:46 +0400 |
commit | 2a182be60b878679a7a6ee49bca1d86ba4b87b7a (patch) | |
tree | ba49be44b2808f3dab4e171bd658a272ae207ef1 /src/cmd/gc/builtin.c | |
parent | ec5582249e55d031cee0ff8fdc4e42685f3c3902 (diff) | |
download | go-2a182be60b878679a7a6ee49bca1d86ba4b87b7a.tar.gz |
race: gc changes
This is the first part of a bigger change that adds data race detection feature:
http://codereview.appspot.com/6456044
This change makes gc compiler instrument memory accesses when supplied with -b flag.
R=rsc, nigeltao, lvd
CC=golang-dev
http://codereview.appspot.com/6497074
Diffstat (limited to 'src/cmd/gc/builtin.c')
-rw-r--r-- | src/cmd/gc/builtin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/gc/builtin.c b/src/cmd/gc/builtin.c index 6354fa22c..1313b3d16 100644 --- a/src/cmd/gc/builtin.c +++ b/src/cmd/gc/builtin.c @@ -104,6 +104,10 @@ char *runtimeimport = "func @\"\".int64tofloat64(? int64) (? float64)\n" "func @\"\".uint64tofloat64(? uint64) (? float64)\n" "func @\"\".complex128div(@\"\".num complex128, @\"\".den complex128) (@\"\".quo complex128)\n" + "func @\"\".racefuncenter()\n" + "func @\"\".racefuncexit()\n" + "func @\"\".raceread(? uintptr)\n" + "func @\"\".racewrite(? uintptr)\n" "\n" "$$\n"; char *unsafeimport = |