piątek, 18 kwietnia 2025 o 23:52:29 UTC+2 Keith Randall napisał(a):

Ah, I think I understand what you're getting at.
You'll want to read this: 
https://github.com/golang/go/blob/b44b360dd40a537e953225d70ca96361e2c57600/src/runtime/stack.go#L21
TL;DR the thing the header is checking against isn't the bottom of stack, 
it is a mark some constant above the bottom.


This is what I needed. Thanks a lot Keith :) 
 

> what frame size is safe

StackSmall, which is 128 bytes.

Cool
 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/a7dde098-3357-477d-919f-66b7a8e54a36n%40googlegroups.com.

Reply via email to