diff options
| author | Anthony Martin <ality@pbrane.org> | 2013-02-26 09:59:17 -0800 |
|---|---|---|
| committer | Anthony Martin <ality@pbrane.org> | 2013-02-26 09:59:17 -0800 |
| commit | 16eb2c0b7ae66dae708b4ca59f68a13652a95d6a (patch) | |
| tree | 1dfe9c962ff7897592c1dec93be36304766604eb /src/pkg/runtime/stack.c | |
| parent | 2b39e418be9d70e8933a7e598555a11188c7bd6d (diff) | |
| download | go-16eb2c0b7ae66dae708b4ca59f68a13652a95d6a.tar.xz | |
runtime: fix stack cache typos
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7370050
Diffstat (limited to 'src/pkg/runtime/stack.c')
| -rw-r--r-- | src/pkg/runtime/stack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/stack.c b/src/pkg/runtime/stack.c index d5cc3a7329..e9a35672f5 100644 --- a/src/pkg/runtime/stack.c +++ b/src/pkg/runtime/stack.c @@ -17,7 +17,7 @@ struct StackCacheNode static StackCacheNode *stackcache; static Lock stackcachemu; -// stackcacherefill/stackcacherelease implement global cache of stack segments. +// stackcacherefill/stackcacherelease implement a global cache of stack segments. // The cache is required to prevent unlimited growth of per-thread caches. static void stackcacherefill(void) @@ -33,7 +33,7 @@ stackcacherefill(void) if(n == nil) { n = (StackCacheNode*)runtime·SysAlloc(FixedStack*StackCacheBatch); if(n == nil) - runtime·throw("out of memory (staccachekrefill)"); + runtime·throw("out of memory (stackcacherefill)"); runtime·xadd64(&mstats.stacks_sys, FixedStack*StackCacheBatch); for(i = 0; i < StackCacheBatch-1; i++) n->batch[i] = (byte*)n + (i+1)*FixedStack; |
