]> Cypherpunks.ru repositories - gostls13.git/commit
Revert "runtime: don't hold worldsema across mark phase"
authorMichael Knyszek <mknyszek@google.com>
Fri, 24 Jan 2020 16:51:11 +0000 (16:51 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 24 Jan 2020 23:27:33 +0000 (23:27 +0000)
commit64c22b70bf00e15615bb17c29f808b55bc339682
tree568f5948390be827a761e65928f048597ab5b7ad
parentad3cef184e55ab53306a466bda100dc72c40fc3b
Revert "runtime: don't hold worldsema across mark phase"

This reverts commit 7b294cdd8df0a9523010f6ffc80c59e64578f34b, CL 182657.

Reason for revert: This change may be causing latency problems
for applications which call ReadMemStats, because it may cause
all goroutines to stop until the GC completes.

https://golang.org/cl/215157 fixes this problem, but it's too
late in the cycle to land that.

Updates #19812.

Change-Id: Iaa26f4dec9b06b9db2a771a44e45f58d0aa8f26d
Reviewed-on: https://go-review.googlesource.com/c/go/+/216358
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/debug.go
src/runtime/mgc.go
src/runtime/proc.go
src/runtime/trace.go
src/runtime/trace/trace_stack_test.go