I am not certain but the reason probably is the change to go-routine
preemption in 1.14. From https://golang.org/doc/go1.14#runtime
…
Goroutines are now asynchronously preemptible. As a result, loops
without function calls no longer potentially deadlock the scheduler or
significantly delay garbage collection. This is supported on all
platforms except windows/arm, darwin/arm, js/wasm, and plan9/*.
…
Before that busy loops in go routines needed a function call to be
preemptible.
Hope that helps!
On 25.07.20 09:38, Groups Discussion wrote:
Hi all,
writing a stress test case for one of my apps I noticed a very strange
thing: my test case works well on go 1.14 but it doesn't work on go 1.13.
I wrote a minimal reproducer
https://play.golang.org/p/uHkKMINncUB
to make it work on go 1.13 I have to add the sleep at line 41. In Go
playground it timeouts, without sleeping, even on 1.14.6, on real hw I
tried it 1000 times, without sleeping, with no issues on go 1.14 while
it fails every time on go 1.13 (tested 1.13.12 and 1.13.14)
I'm just curious to understand if there is something wrong with my code,
even if it is not idiomatic, and if a such busy synchronization wait is
expected to work in 1.14 only
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
<mailto:golang-nuts+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/0dbc0ba3-0b4d-42bd-8edf-076e92507251o%40googlegroups.com
<https://groups.google.com/d/msgid/golang-nuts/0dbc0ba3-0b4d-42bd-8edf-076e92507251o%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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/caaa6f5f-033e-2cea-7615-7c2072c2129a%40mb0.org.