Re: libgo patch committed: Cheaper context switch on x86_64

2019-06-03 Thread Ian Lance Taylor
On Mon, Jun 3, 2019 at 9:44 AM Cherry Zhang wrote: > > On Mon, Jun 3, 2019 at 12:00 PM Jakub Jelinek wrote: >> >> On Mon, Jun 03, 2019 at 05:51:26PM +0200, Thomas Schwinge wrote: >> > Hi! >> > >> > On Fri, 31 May 2019 10:56:43 -0700, Ian Lance Taylor >> > wrote: >> > > This libgo patch by Cherr

Re: libgo patch committed: Cheaper context switch on x86_64

2019-06-03 Thread Cherry Zhang via gcc-patches
On Mon, Jun 3, 2019 at 12:00 PM Jakub Jelinek wrote: > On Mon, Jun 03, 2019 at 05:51:26PM +0200, Thomas Schwinge wrote: > > Hi! > > > > On Fri, 31 May 2019 10:56:43 -0700, Ian Lance Taylor > wrote: > > > This libgo patch by Cherry Zhang implements cheaper goroutine context > > > switches on x86_

Re: libgo patch committed: Cheaper context switch on x86_64

2019-06-03 Thread Jakub Jelinek
On Mon, Jun 03, 2019 at 05:51:26PM +0200, Thomas Schwinge wrote: > Hi! > > On Fri, 31 May 2019 10:56:43 -0700, Ian Lance Taylor wrote: > > This libgo patch by Cherry Zhang implements cheaper goroutine context > > switches on x86_64 GNU/Linux. [...] > > > Bootstrapped and tested on x86_64-pc-lin

Re: libgo patch committed: Cheaper context switch on x86_64

2019-06-03 Thread Thomas Schwinge
Hi! On Fri, 31 May 2019 10:56:43 -0700, Ian Lance Taylor wrote: > This libgo patch by Cherry Zhang implements cheaper goroutine context > switches on x86_64 GNU/Linux. [...] > Bootstrapped and tested on x86_64-pc-linux-gnu. Committed to mainline. > --- libgo/runtime/go-context.S(nonex

libgo patch committed: Cheaper context switch on x86_64

2019-05-31 Thread Ian Lance Taylor
This libgo patch by Cherry Zhang implements cheaper goroutine context switches on x86_64 GNU/Linux. Currently, goroutine switches are implemented with libc getcontext/setcontext functions, which saves/restores the machine register states and also the signal context. This does more than what we ne