Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: on linux/PPC64, usleep computes incorrect tv_nsec parameter [1.18 backport] #56396

Closed
gopherbot opened this issue Oct 24, 2022 · 2 comments
Labels
CherryPickApproved Used during the release process for point releases compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge
Milestone

Comments

@gopherbot
Copy link
Contributor

@pmur requested issue #56374 to be considered for backport to the next 1.18 minor release.

@gopherbot please consider a backport to 1.18 and 1.19. This is a subtle bug.

@gopherbot gopherbot added the CherryPickCandidate Used during the release process for point releases label Oct 24, 2022
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Oct 24, 2022
@gopherbot gopherbot added this to the Go1.18.8 milestone Oct 24, 2022
@gopherbot
Copy link
Contributor Author

Change https://go.dev/cl/445156 mentions this issue: [release-branch.go1.18] runtime: fix usleep on linux/PPC64

@heschi heschi added the CherryPickApproved Used during the release process for point releases label Oct 26, 2022
@gopherbot gopherbot removed the CherryPickCandidate Used during the release process for point releases label Oct 26, 2022
@gopherbot gopherbot modified the milestones: Go1.18.8, Go1.18.9 Nov 1, 2022
@gopherbot
Copy link
Contributor Author

Closed by merging e54e808 to release-branch.go1.18.

gopherbot pushed a commit that referenced this issue Nov 8, 2022
The existing implementation fails to convert the remainder
microseconds to nanoseconds. This causes sysmon to consume
much more cpu, and generate lots of context switches.

We can also do a little better here to avoid division by a
constant. I used go to determine the magic numbers.

Fixes #56396

Change-Id: I2e37ec218b9027efab6db4634eed1504c0c1b3c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/444735
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-on: https://go-review.googlesource.com/c/go/+/445156
@golang golang locked and limited conversation to collaborators Nov 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CherryPickApproved Used during the release process for point releases compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

2 participants