Re: [go-nuts] How does isAsyncSafePoint check preemptable?

2020-08-07 Thread Ge
Thanks. clear now. 在2020年8月7日星期五 UTC+8 上午1:00:51 写道: > On Thu, Aug 6, 2020 at 7:49 AM HailangGe wrote: > > > > Recently I was trying to understand how asynchronous preemption is > implemented in Go 1.14 and > > basically figured out the call chain. > > > > sysmon > > ↓ > > retake > > ↓ > > pree

Re: [go-nuts] How does isAsyncSafePoint check preemptable?

2020-08-06 Thread Ian Lance Taylor
On Thu, Aug 6, 2020 at 7:49 AM HailangGe wrote: > > Recently I was trying to understand how asynchronous preemption is > implemented in Go 1.14 and > basically figured out the call chain. > > sysmon > ↓ > retake > ↓ > preemptone > ↓ > preemptM > ↓ > signalM(mp,

[go-nuts] How does isAsyncSafePoint check preemptable?

2020-08-06 Thread HailangGe
Recently I was trying to understand how asynchronous preemption is implemented in Go 1.14 and basically figured out the call chain. sysmon ↓ retake ↓ preemptone ↓ preemptM ↓ signalM(mp, sigPreempt)//send SIGURG to mp ↓ doSigPreempt(signal handler)