[go/release-branch.go1.26] [release-branch.go1.26] runtime: fix timespec definition on 32bits systems

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Apr 29, 2026, 3:36:08 PM (21 hours ago) Apr 29
to Jorropo, Michael Pratt, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Cherry Mui, golang...@luci-project-accounts.iam.gserviceaccount.com, David Chase, Carlos Amedee, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
[release-branch.go1.26] runtime: fix timespec definition on 32bits systems

The nsec field of timespec is a C long even when using
64bits time on 32bits systems.

This is because by timespec API if nsec never holds more than a
second worth of nanoseconds.
If it would theses would increment the sec field while the nsec
field would get the amount of nanoseconds modulus a second.

For #77934
Fixes #77935

Change-Id: I9803998ba70123eb3b226379bd72b11cae972c38
Reviewed-on: https://go-review.googlesource.com/c/go/+/751341
Reviewed-by: Michael Pratt <mpr...@google.com>
Auto-Submit: Jorropo <jorro...@gmail.com>
Reviewed-by: David Chase <drc...@google.com>
LUCI-TryBot-Result: Go LUCI <golang...@luci-project-accounts.iam.gserviceaccount.com>
(cherry picked from commit ba402cd756a02cd80bcd76a2f7afc22ae2041c6c)
Reviewed-on: https://go-review.googlesource.com/c/go/+/772020
Auto-Submit: Michael Pratt <mpr...@google.com>
Reviewed-by: Jorropo <jorro...@gmail.com>
Reviewed-by: Cherry Mui <cher...@google.com>
LUCI-TryBot-Result: golang...@luci-project-accounts.iam.gserviceaccount.com <golang...@luci-project-accounts.iam.gserviceaccount.com>
Files:
  • M src/runtime/defs_linux_386.go
  • M src/runtime/defs_linux_arm.go
  • M src/runtime/defs_linux_mipsx.go
  • M src/runtime/os_linux32.go
Change size: S
Delta: 4 files changed, 17 insertions(+), 14 deletions(-)
Branch: refs/heads/release-branch.go1.26
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: release-branch.go1.26
Gerrit-Change-Id: I9803998ba70123eb3b226379bd72b11cae972c38
Gerrit-Change-Number: 772020
Gerrit-PatchSet: 2
Gerrit-Owner: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: Carlos Amedee <car...@golang.org>
Gerrit-Reviewer: Cherry Mui <cher...@google.com>
Gerrit-Reviewer: David Chase <drc...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Jorropo <jorro...@gmail.com>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages