aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/libgo/runtime/race.h
diff options
context:
space:
mode:
authorsynergydev <synergye@codefi.re>2013-10-17 18:16:42 -0700
committersynergydev <synergye@codefi.re>2013-10-17 18:16:42 -0700
commit61c0330cc243abf13fdd01f377a7f80bd3989eb1 (patch)
tree119b08ae76294f23e2b1b7e72ff9a06afa9e8509 /gcc-4.8/libgo/runtime/race.h
parent1c712bf7621f3859c33fd3afaa61fdcaf3fdfd76 (diff)
downloadtoolchain_gcc-61c0330cc243abf13fdd01f377a7f80bd3989eb1.tar.gz
toolchain_gcc-61c0330cc243abf13fdd01f377a7f80bd3989eb1.tar.bz2
toolchain_gcc-61c0330cc243abf13fdd01f377a7f80bd3989eb1.zip
[4.8] Merge GCC 4.8.2
Change-Id: I0f1fcf69c5076d8534c5c45562745e1a37adb197
Diffstat (limited to 'gcc-4.8/libgo/runtime/race.h')
-rw-r--r--gcc-4.8/libgo/runtime/race.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc-4.8/libgo/runtime/race.h b/gcc-4.8/libgo/runtime/race.h
index 9f3b3ec66..3357bed31 100644
--- a/gcc-4.8/libgo/runtime/race.h
+++ b/gcc-4.8/libgo/runtime/race.h
@@ -11,17 +11,19 @@ enum { raceenabled = 0 };
#endif
// Initialize race detection subsystem.
-void runtime_raceinit(void);
+uintptr runtime_raceinit(void);
// Finalize race detection subsystem, does not return.
void runtime_racefini(void);
void runtime_racemapshadow(void *addr, uintptr size);
void runtime_racemalloc(void *p, uintptr sz, void *pc);
void runtime_racefree(void *p);
-void runtime_racegostart(int32 goid, void *pc);
-void runtime_racegoend(int32 goid);
+uintptr runtime_racegostart(void *pc);
+void runtime_racegoend(void);
void runtime_racewritepc(void *addr, void *callpc, void *pc);
void runtime_racereadpc(void *addr, void *callpc, void *pc);
+void runtime_racewriterangepc(void *addr, uintptr sz, uintptr step, void *callpc, void *pc);
+void runtime_racereadrangepc(void *addr, uintptr sz, uintptr step, void *callpc, void *pc);
void runtime_racefingo(void);
void runtime_raceacquire(void *addr);
void runtime_raceacquireg(G *gp, void *addr);