I find the mcall function!
On Friday, September 4, 2020 at 6:13:54 PM UTC+8 xie cui wrote:

> as we know,  call function gogo can jump to other other goroutine. when 
> goroutine1 switch to goroutine2 it must save the current context of 
> goroutine1(sp pc. so). i can find the function runtime·gosave to save 
> current context, but i cann't find where the code call gosave, can some 
> explain when context switch where is the to call gosave, or maybe context 
> save is in other code? 
> if it call gosave to save context, what is the possible stack when call 
> gosave?
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/golang-nuts/222e8d67-a089-4096-90b1-75fb56ed27a0n%40googlegroups.com.

Reply via email to