1
0
mirror of https://github.com/golang/go synced 2024-11-27 02:01:23 -07:00
go/misc/cgo/test/testdata
Michael Anthony Knyszek 4c943abb95 runtime: fix comments on the behavior of SetGCPercent
Fixes for #49680, #49695, #45867, and #49370 all assumed that
SetGCPercent(-1) doesn't block until the GC's mark phase is done, but
it actually does. The cause of 3 of those 4 failures comes from the fact
that at the beginning of the sweep phase, the GC does try to preempt
every P once, and this may run concurrently with test code. In the
fourth case, the issue was likely that only *one* of the debug_test.go
tests was missing a call to SetGCPercent(-1). Just to be safe, leave a
TODO there for now to remove the extraneous runtime.GC calls, but leave
the calls in.

Updates #49680, #49695, #45867, and #49370.

Change-Id: Ibf4e64addfba18312526968bcf40f1f5d54eb3f1
Reviewed-on: https://go-review.googlesource.com/c/go/+/369815
Reviewed-by: Austin Clements <austin@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2021-12-07 17:46:04 +00:00
..
gcc68255
issue8756
issue8828
issue9026 misc/cgo/test: tweak to pass with GCC 10 2019-12-20 20:12:18 +00:00
issue9400 all: use more precise build tags 2021-02-23 19:55:03 +00:00
issue9510a
issue9510b
issue20266
issue23555a
issue23555b
issue24161arg
issue24161e0 cmd/go: fix cgo test when min macOS version is set 2020-01-24 17:36:44 +00:00
issue24161e1 cmd/go: fix cgo test when min macOS version is set 2020-01-24 17:36:44 +00:00
issue24161e2 cmd/go: fix cgo test when min macOS version is set 2020-01-24 17:36:44 +00:00
issue24161res
issue26213
issue26430
issue26743
issue27054 cmd/cgo,cmd/fix,misc/cgo: map the EGLConfig C type to uintptr in Go 2020-05-31 09:48:08 +00:00
issue27340
issue29563 cmd/link: permit duplicate weak symbols 2019-03-29 17:46:01 +00:00
issue30527
issue41761a cmd/compile: export notinheap annotation to object file 2020-10-05 18:52:43 +00:00
issue43639 cmd/cgo: fix unused parameter warnings in generated _cgo_main.c 2021-08-16 23:03:03 +00:00
cgo_linux_test.go
cgo_test.go
gcc68255.go
issue8756.go
issue8828.go
issue9026.go
issue9400_linux.go runtime: fix comments on the behavior of SetGCPercent 2021-12-07 17:46:04 +00:00
issue9510.go
issue20266.go
issue23555.go
issue24161_darwin_test.go misc/cgo/test: re-enable darwin cgo tests in race mode 2020-01-10 10:04:49 +00:00
issue26430.go
issue26743.go
issue27340.go
issue29563.go cmd/link: permit duplicate weak symbols 2019-03-29 17:46:01 +00:00
issue30527.go
issue41761.go cmd/compile: export notinheap annotation to object file 2020-10-05 18:52:43 +00:00
issue43639.go cmd/cgo: fix unused parameter warnings in generated _cgo_main.c 2021-08-16 23:03:03 +00:00
test26213.go