aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/mcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/mcache.c')
-rw-r--r--src/pkg/runtime/mcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/mcache.c b/src/pkg/runtime/mcache.c
index 26e3db2dca..13437a50cd 100644
--- a/src/pkg/runtime/mcache.c
+++ b/src/pkg/runtime/mcache.c
@@ -57,7 +57,7 @@ runtime·MCache_Refill(MCache *c, int32 sizeclass)
MCacheList *l;
MSpan *s;
- m->locks++;
+ g->m->locks++;
// Return the current cached span to the central lists.
s = c->alloc[sizeclass];
if(s->freelist != nil)
@@ -83,7 +83,7 @@ runtime·MCache_Refill(MCache *c, int32 sizeclass)
runtime·throw("empty span");
}
c->alloc[sizeclass] = s;
- m->locks--;
+ g->m->locks--;
return s;
}