Sync/gh go1.26 with upstream#1
Merged
dgilarranz-ik merged 0 commit intoJul 21, 2026
Merged
Conversation
haritzsaiz
changed the base branch from
release-branch.go1.26
to
release-branch.go1.27
July 15, 2026 09:34
dgilarranz-ik
force-pushed
the
release-branch.go1.27
branch
from
July 21, 2026 07:28
08afb68 to
aec3277
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several important runtime, os, and syscall improvements and bug fixes, as well as test coverage for recent changes. The most significant updates include ensuring that all directory changes via
(*File).Chdirare properly logged for test caching, improving error handling and context propagation in signal handling, and fixing a runtime memory allocation bug. Additional changes enhance syscall safety after process forks and clarify documentation.Testlog integration and working directory tracking:
testlog.Logger().Chdirin(*File).Chdiron both POSIX and Plan 9 systems to ensure all working directory changes are recorded for the Go test cache, and added a new testTestFileChdirTestlogto verify this behavior (src/os/file_posix.go,src/os/file_plan9.go,src/os/os_test.go). [1] [2] [3] [4] [5]Signal handling and context improvements:
Ismethod forsignalErrorto allow it to be compared withcontext.Canceled, and added a test to check thatNotifyContextpropagates the correct cause (src/os/signal/signal.go,src/os/signal/signal_test.go). [1] [2]Runtime and memory management fixes:
moveSliceNoCapto correctly calculate and return the new slice capacity, preventing incorrect memory handling (src/runtime/slice.go).test/fixedbugs/issue80004.goto check for pointer bitmask errors in memory allocation that could cause the garbage collector to misinterpret non-pointer fields as pointers.Syscall safety and documentation:
//go:noraceto prevent race instrumentation after fork or in signal handlers, and clarified the documentation about stack growth and pointer safety (src/syscall/exec_libc2.go,src/syscall/syscall_darwin.go). [1] [2] [3] [4] [5] [6] [7] [8]Other changes:
src/cmd/go/testdata/mod/example.com_importcrypto_v1.0.0.txt,src/cmd/go/testdata/script/mod_get_fips140_issue73649.txt). [1] [2]src/internal/runtime/gc/scan/scan_amd64.go).