]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix stack cache typos
authorAnthony Martin <ality@pbrane.org>
Tue, 26 Feb 2013 17:59:17 +0000 (09:59 -0800)
committerAnthony Martin <ality@pbrane.org>
Tue, 26 Feb 2013 17:59:17 +0000 (09:59 -0800)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7370050

src/pkg/runtime/stack.c

index d5cc3a73294c825a617a3a10fe593ae972eab0ec..e9a35672f589d4b471ea2f7f25019a1c2519a2c3 100644 (file)
@@ -17,7 +17,7 @@ struct StackCacheNode
 static StackCacheNode *stackcache;
 static Lock stackcachemu;
 
-// stackcacherefill/stackcacherelease implement global cache of stack segments.
+// stackcacherefill/stackcacherelease implement 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;