s the call to add1() got inlined in bar(). The compiler might have
> simplified add1() first, since sum1 wasn’t being used anywhere. Then
> perhaps it inlined what was left.
>
>
>
> You might want to use sum1 by printing it (not inside the loop!).
>
>
>
> John
>
.com [mailto:
> golan...@googlegroups.com ] *On Behalf Of *???
> *Sent:* 2017 September 04, Mon 02:10
> *To:* golang-nuts
> *Subject:* Re: [go-nuts] golang gc stop the world how to stop cpu busy
> goroutine?
>
>
>
> package main
>
>
>
> import &q
From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On
Behalf Of ???
Sent: 2017 September 04, Mon 00:47
To: golang-nuts
Subject: [go-nuts] golang gc stop the world how to stop cpu busy goroutine?
when have one or two cpu busy goroutine in my server (example for loop
when have one or two cpu busy goroutine in my server (example for loop
empty), the gc stop the world how to stop the goroutine ?
--
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,