- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for stackGuardMultiplier (0.16 sec)
-
src/runtime/stack.go
// stackNosplit is the maximum number of bytes that a chain of NOSPLIT // functions can use. // This arithmetic must match that in cmd/internal/objabi/stack.go:StackNosplit. stackNosplit = abi.StackNosplitBase * sys.StackGuardMultiplier // The stack guard is a pointer this many bytes above the // bottom of the stack. // // The guard leaves enough room for a stackNosplit chain of NOSPLIT calls
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 41.1K bytes - Viewed (0) -
src/runtime/proc.go
// We set hi to &size, but there are things above // it. The 1024 is supposed to compensate this, // but is somewhat arbitrary. size := gp.stack.hi if size == 0 { size = 16384 * sys.StackGuardMultiplier } gp.stack.hi = uintptr(noescape(unsafe.Pointer(&size))) gp.stack.lo = gp.stack.hi - size + 1024 } // Initialize stack guard so that we can start calling regular // Go code.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0)