Lines Matching refs:stackalloc
317 // stackalloc allocates an n byte stack.
319 // stackalloc must run on the system stack because it uses per-P
323 func stackalloc(n uint32) (stack, []stkbar) {
324 // Stackalloc must be called on scheduler stack, so that we
325 // never try to grow the stack during the code that stackalloc runs.
329 throw("stackalloc not on scheduler stack")
335 print("stackalloc ", n, "\n")
346 throw("out of memory (stackalloc)")
869 new, newstkbar := stackalloc(uint32(newsize))
874 print("copystack gp=", gp, " [", hex(old.lo), " ", hex(old.hi-used), " ", hex(old.hi), "]/", gp.stackAlloc, " -> [", hex(new.lo), " ", hex(new.hi-used), " ", hex(new.hi), "]/", newsize, "\n")
926 oldsize := gp.stackAlloc
927 gp.stackAlloc = newsize
1085 oldsize := int(gp.stackAlloc)
1132 stackfree(gp.stack, gp.stackAlloc)
1156 oldsize := gp.stackAlloc