runtime: pointer assignment in tight loop cause long STW #59902
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Use
go build
to build this single file program.And use
export GODEBUG=gctrace=1
to enable gctrace.Then just excute it.
What did you expect to see?
The STW time of GC should in normal range. Maybe microseconds to milliseconds.
What did you see instead?
Actually, The second STW during GC is about one second. I have even observed it will be several minutes.
It seems that this may be related to #36365 . There is a task "Make large pointer-full memmoves/memclrs preemptible" in it. But it seems that it is no more update about it.
The text was updated successfully, but these errors were encountered: