aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/malloc.goc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-12-23 20:33:53 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-12-23 20:33:53 +0000
commitbca4b95c4a7eb77ced04997b09b4c34e47de58bb (patch)
tree263b8df1c4218950fd5dd44d3001d3bb74b4e87a /libgo/runtime/malloc.goc
parent3feb029833c3f53ce4753f78ef6a2ce5b11492d9 (diff)
downloadgcc-bca4b95c4a7eb77ced04997b09b4c34e47de58bb.zip
gcc-bca4b95c4a7eb77ced04997b09b4c34e47de58bb.tar.gz
gcc-bca4b95c4a7eb77ced04997b09b4c34e47de58bb.tar.bz2
runtime: Remove undefined references to runtime_race*.
From-SVN: r219049
Diffstat (limited to 'libgo/runtime/malloc.goc')
-rw-r--r--libgo/runtime/malloc.goc8
1 files changed, 0 insertions, 8 deletions
diff --git a/libgo/runtime/malloc.goc b/libgo/runtime/malloc.goc
index c5e64c8..f240ffb 100644
--- a/libgo/runtime/malloc.goc
+++ b/libgo/runtime/malloc.goc
@@ -16,7 +16,6 @@ package runtime
#include "malloc.h"
#include "interface.h"
#include "go-type.h"
-#include "race.h"
// Map gccgo field names to gc field names.
// Eface aka __go_empty_interface.
@@ -249,9 +248,6 @@ runtime_mallocgc(uintptr size, uintptr typ, uint32 flag)
if(UseSpanType && !(flag & FlagNoScan) && typ != 0)
settype(s, v, typ);
- if(raceenabled)
- runtime_racemalloc(v, size);
-
if(runtime_debug.allocfreetrace)
runtime_tracealloc(v, size, typ);
@@ -697,8 +693,6 @@ runtime_MHeap_SysAlloc(MHeap *h, uintptr n)
h->arena_used += n;
runtime_MHeap_MapBits(h);
runtime_MHeap_MapSpans(h);
- if(raceenabled)
- runtime_racemapshadow(p, n);
if(((uintptr)p & (PageSize-1)) != 0)
runtime_throw("misrounded allocation in MHeap_SysAlloc");
@@ -732,8 +726,6 @@ runtime_MHeap_SysAlloc(MHeap *h, uintptr n)
h->arena_end = p_end;
runtime_MHeap_MapBits(h);
runtime_MHeap_MapSpans(h);
- if(raceenabled)
- runtime_racemapshadow(p, n);
}
if(((uintptr)p & (PageSize-1)) != 0)