1
0
mirror of https://github.com/golang/go synced 2024-11-23 06:00:08 -07:00
go/misc/cgo/test
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
..
testdata runtime: fix comments on the behavior of SetGCPercent 2021-12-07 17:46:04 +00:00
backdoor.go
buildid_linux.go
callback_c_gc.c
callback_c_gccgo.c
callback_c.c
callback.go runtime: unify asmcgocall and systemstack traceback setup 2021-02-19 00:02:06 +00:00
cgo_linux_test.go syscall: support POSIX semantics for Linux syscalls 2020-10-23 20:53:14 +00:00
cgo_stubs_android_test.go
cgo_test.go runtime/cgo: add example of Handle with void* parameter 2021-11-20 00:37:28 +00:00
cgo_thread_lock.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
cgo_unix_test.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
cthread_unix.c
cthread_windows.c
issue1435.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue4029.c cmd/link: support cgo internal/linking on darwin/arm64 2020-10-20 02:25:52 +00:00
issue4029.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue4029w.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue4273.c
issue4273b.c
issue4339.c
issue4339.h
issue5548_c.c
issue5740a.c
issue5740b.c
issue6833_c.c
issue6907export_c.c
issue6997_linux.c
issue6997_linux.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue7234_test.go
issue8148.c misc/cgo/test: do not redeclare exported Go functions 2021-04-23 21:42:52 +00:00
issue8148.go misc/cgo/test: do not redeclare exported Go functions 2021-04-23 21:42:52 +00:00
issue8331.h
issue8517_windows.c
issue8517_windows.go
issue8517.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue8694.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue8811.c
issue18146.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue20910.c
issue21897.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue21897b.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue31891.c
issue42018_windows.go cmd/cgo: add go:notinheap annotation to Windows handle types 2021-09-22 18:10:24 +00:00
issue42018.go cmd/cgo: add go:notinheap annotation to Windows handle types 2021-09-22 18:10:24 +00:00
issue42495.go cmd/cgo: fix initialization of empty argument types 2020-11-13 15:15:15 +00:00
overlaydir_test.go
pkg_test.go all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
setgid_linux.go all: simplify the spelling of Linux 2021-04-13 13:56:21 +00:00
sigaltstack.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
sigprocmask.c
sigprocmask.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
test_unix.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
test_windows.go
test.go runtime/cgo: add example of Handle with void* parameter 2021-11-20 00:37:28 +00:00
testx.c misc/cgo/test: do not redeclare exported Go functions 2021-04-23 21:42:52 +00:00
testx.go misc/cgo/test: remove unnecessary forward declaration 2021-11-22 18:50:19 +00:00
typeparam.go cmd/cgo: update to handle ast.IndexListExpr 2021-10-07 18:02:14 +00:00