Hi

I am trying to figure out the process of creation of the very first 
g(goroutine), together with the very fist m, and p. It seems that the 
deepest code I can find is at proc.go 
<https://github.com/golang/go/blob/master/src/runtime/proc.go#L110>, and 
the getg() function is my dead end, which has no implementation written by 
golang. So, here is my q:

1. I guess before the user main() function be executed, a lot of work has 
already been finished, including creating the very first g/m/p, where the 
code is? It seems to be asm code? I do have some problem reading/digging 
asm code.

2. Could any one explain the whole process of creating the very first g/m/p?

Thanks.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to