summaryrefslogtreecommitdiffstats
path: root/libgo/runtime/mcentral.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-16 06:54:42 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-16 06:54:42 +0000
commitf4ca453c9530ff24478cae090c9979b97fdd7411 (patch)
tree0e8fda573576bb4181dba29d0e88380a8c38fafd /libgo/runtime/mcentral.c
parent84a4a7d4b2fecf754bc0b7fce55b05912a054ef4 (diff)
downloadppe42-gcc-f4ca453c9530ff24478cae090c9979b97fdd7411.tar.gz
ppe42-gcc-f4ca453c9530ff24478cae090c9979b97fdd7411.zip
libgo: Update to Go 1.1.1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200974 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/mcentral.c')
-rw-r--r--libgo/runtime/mcentral.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libgo/runtime/mcentral.c b/libgo/runtime/mcentral.c
index b405438f9f9..b3108a1c061 100644
--- a/libgo/runtime/mcentral.c
+++ b/libgo/runtime/mcentral.c
@@ -108,7 +108,7 @@ MCentral_Free(MCentral *c, void *v)
int32 size;
// Find span for v.
- s = runtime_MHeap_Lookup(&runtime_mheap, v);
+ s = runtime_MHeap_Lookup(runtime_mheap, v);
if(s == nil || s->ref == 0)
runtime_throw("invalid free");
@@ -133,7 +133,7 @@ MCentral_Free(MCentral *c, void *v)
s->freelist = nil;
c->nfree -= (s->npages << PageShift) / size;
runtime_unlock(c);
- runtime_MHeap_Free(&runtime_mheap, s, 0);
+ runtime_MHeap_Free(runtime_mheap, s, 0);
runtime_lock(c);
}
}
@@ -168,7 +168,7 @@ runtime_MCentral_FreeSpan(MCentral *c, MSpan *s, int32 n, MLink *start, MLink *e
c->nfree -= (s->npages << PageShift) / size;
runtime_unlock(c);
runtime_unmarkspan((byte*)(s->start<<PageShift), s->npages<<PageShift);
- runtime_MHeap_Free(&runtime_mheap, s, 0);
+ runtime_MHeap_Free(runtime_mheap, s, 0);
} else {
runtime_unlock(c);
}
@@ -200,7 +200,7 @@ MCentral_Grow(MCentral *c)
runtime_unlock(c);
runtime_MGetSizeClassInfo(c->sizeclass, &size, &npages, &n);
- s = runtime_MHeap_Alloc(&runtime_mheap, npages, c->sizeclass, 0, 1);
+ s = runtime_MHeap_Alloc(runtime_mheap, npages, c->sizeclass, 0, 1);
if(s == nil) {
// TODO(rsc): Log out of memory
runtime_lock(c);
OpenPOWER on IntegriCloud