diff options
Diffstat (limited to 'libgo/runtime/malloc.goc')
-rw-r--r-- | libgo/runtime/malloc.goc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libgo/runtime/malloc.goc b/libgo/runtime/malloc.goc index f1f3fcd7522..2a614e5a186 100644 --- a/libgo/runtime/malloc.goc +++ b/libgo/runtime/malloc.goc @@ -491,7 +491,7 @@ runtime_MHeap_SysAlloc(MHeap *h, uintptr n) static Lock settype_lock; void -runtime_settype_flush(M *m, bool sysalloc) +runtime_settype_flush(M *mp, bool sysalloc) { uintptr *buf, *endbuf; uintptr size, ofs, j, t; @@ -503,8 +503,8 @@ runtime_settype_flush(M *m, bool sysalloc) uintptr typ, p; MSpan *s; - buf = m->settype_buf; - endbuf = buf + m->settype_bufsize; + buf = mp->settype_buf; + endbuf = buf + mp->settype_bufsize; runtime_lock(&settype_lock); while(buf < endbuf) { @@ -602,7 +602,7 @@ runtime_settype_flush(M *m, bool sysalloc) } runtime_unlock(&settype_lock); - m->settype_bufsize = 0; + mp->settype_bufsize = 0; } // It is forbidden to use this function if it is possible that @@ -610,7 +610,7 @@ runtime_settype_flush(M *m, bool sysalloc) void runtime_settype(void *v, uintptr t) { - M *m1; + M *mp; uintptr *buf; uintptr i; MSpan *s; @@ -618,16 +618,16 @@ runtime_settype(void *v, uintptr t) if(t == 0) runtime_throw("settype: zero type"); - m1 = runtime_m(); - buf = m1->settype_buf; - i = m1->settype_bufsize; + mp = runtime_m(); + buf = mp->settype_buf; + i = mp->settype_bufsize; buf[i+0] = (uintptr)v; buf[i+1] = t; i += 2; - m1->settype_bufsize = i; + mp->settype_bufsize = i; - if(i == nelem(m1->settype_buf)) { - runtime_settype_flush(m1, false); + if(i == nelem(mp->settype_buf)) { + runtime_settype_flush(mp, false); } if(DebugTypeAtBlockEnd) { |