Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
5500cbf
debug/elf: prevent offset overflow
callthingsoff Sep 25, 2025
6d51f93
runtime: jump instead of branch in netbsd/arm64 entry point
qmuntal Sep 29, 2025
d42d56b
encoding/xml: make use of reflect.TypeAssert
apocelipes Sep 24, 2025
fe3ba74
cmd/link: skip TestFlagW on platforms without DWARF symbol table
millerresearch Sep 27, 2025
ae8eba0
cmd/link: use correct length for pcln.cutab
ianlancetaylor Sep 29, 2025
047c2ab
cmd/link: don't pass -Wl,-S on Solaris
cherrymui Sep 26, 2025
4e9006a
crypto/tls: quote protocols in ALPN error message
rolandshoemaker Sep 29, 2025
4b77733
internal/syscall/windows: regenerate GetFileSizeEx
qmuntal Sep 29, 2025
eaf2345
cmd/link: use a .def file to mark exported symbols on Windows
qmuntal Sep 22, 2025
690fc2f
internal/poll: remove buf field from operation
qmuntal Sep 16, 2025
db3cb3f
runtime: correct reference to getStackMap in comment
ianlancetaylor Sep 29, 2025
db4fade
crypto/internal/fips140/mlkem: make CAST conditional
FiloSottile Sep 22, 2025
fc88e18
crypto/internal/fips140/entropy: add CPU jitter-based entropy source
FiloSottile Sep 11, 2025
75c87df
internal/poll: pass the I/O mode instead of an overlapped object in e…
qmuntal Sep 16, 2025
db10db6
internal/poll: remove operation fields from FD
qmuntal Sep 16, 2025
742f920
cmd/compile, runtime: always enable Wasm signext and satconv features
cherrymui Sep 29, 2025
6e95748
cmd/link/internal/arm64: support Mach-O ARM64_RELOC_POINTER_TO_GOT in…
qmuntal Sep 12, 2025
7c8166d
cmd/link/internal/arm64: support Mach-O ARM64_RELOC_SUBTRACTOR in int…
qmuntal Sep 12, 2025
a846bb0
errors: add AsType
jub0bs Sep 29, 2025
300d9d2
runtime: initialise debug settings much earlier in startup process
9muir Sep 18, 2025
97da068
cmd/compile: eliminate nil checks on .dict arg
jakebailey Sep 8, 2025
08afc50
mime: extend "builtinTypes" to include a more complete list of common…
AidanWelch Sep 25, 2025
19cc102
mime: reduce allocs incurred by ParseMediaType
jub0bs Sep 22, 2025
fcb893f
cmd/compile/internal/ssa: remove redundant "type:" prefix check
fengyoulin Sep 5, 2025
4ff8a45
test/codegen: codify handling of floating point constants on arm64
4a6f656c Sep 15, 2025
c925715
runtime: unify ppc64/ppc64le library entry point
qmuntal Sep 24, 2025
eb1c7f6
runtime: move loong64 library entry point to os-agnostic file
qmuntal Sep 24, 2025
be0fed8
cmd/go/testdata/script/test_fuzz_fuzztime.txt: disable
adonovan Sep 30, 2025
3f451f2
testing/synctest: fix inverted test failure message in TestContextAft…
fgm Oct 1, 2025
8ad27fb
doc/go_spec.html: update date
adonovan Oct 1, 2025
633dd1d
encoding/json: fix Decoder.InputOffset regression in goexperiment.jsonv2
dsnet Sep 15, 2025
5799c13
crypto/tls: rm marshalEncryptedClientHelloConfigList dead code
cpu Sep 29, 2025
84db201
cmd/compile: propagate len([]T{}) to make builtin to allow stack allo…
mateusz834 Sep 26, 2025
8c68a1c
runtime,net/http/pprof: goroutine leak detection by using the garbage…
VladSaiocUber Oct 2, 2025
707454b
cmd/go: update `go help mod edit` with the tool and ignore sections
mvdan Aug 30, 2025
f03c392
runtime: fix aix/ppc64 library initialization
qmuntal Oct 1, 2025
0e4e2e6
runtime: skip TestGoroutineLeakProfile under mayMoreStackPreempt
mknyszek Oct 2, 2025
4008e07
io/fs: move path name documentation up to the package doc comment
neild Oct 2, 2025
bbdff9e
net/http: update bundled x/net/http2 and delete obsolete http2inTests
nicholashusin Oct 2, 2025
5384500
net/http/httputil: deprecate ReverseProxy.Director
neild Oct 2, 2025
d5b9503
cmd/cgo: fix unaligned arguments typedmemmove crash on iOS
timcooijmans Sep 30, 2025
adce7f1
cmd/link: support .def file with MSVC clang toolchain
cherrymui Oct 2, 2025
630799c
crypto/tls: add flag to render HTML BoGo report
cpu Jun 30, 2025
a7917ee
internal/buildcfg: enable specializedmalloc experiment
matloob Mar 17, 2025
c54dc14
runtime: support valgrind (but not asan) in specialized malloc functions
matloob Oct 1, 2025
ebb72be
cmd/compile: don't treat devel compiler as a released compiler
cherrymui Jun 20, 2025
ab04395
cmd/compile: minor tweak for race detector
dr2chase Jul 2, 2025
10e7968
cmd/compile: accounts rematerialize ops's output reginfo
JunyangShao Aug 12, 2025
ec70d19
cmd/compile: rewrite to elide Slicemask from len==c>0 slicing
dr2chase Aug 20, 2025
1caa95a
cmd/compile: enhance prove to deal with double-offset IsInBounds checks
dr2chase Sep 3, 2025
18cd4a1
cmd/compile: use the right type for spill slot
cherrymui Sep 16, 2025
ad3db25
cmd/compile: handle rematerialized op for incompatible reg constraint
JunyangShao Sep 16, 2025
20c9377
cmd/compile: enhance the chunked indexing case to include reslicing
dr2chase Sep 17, 2025
d91148c
cmd/compile: enhance prove to infer bounds in slice len/cap calculations
dr2chase Sep 17, 2025
003b5ce
cmd/compile: fix SIMD const rematerialization condition
JunyangShao Sep 19, 2025
38b26f2
cmd/compile: remove stores to unread parameters
cherrymui Sep 22, 2025
1bca4c1
cmd/compile: improve slicemask removal
dr2chase Sep 17, 2025
ee5369b
cmd/link: add LIBRARY statement only with -buildmode=cshared
qmuntal Oct 3, 2025
2a71af1
net/url: improve URL docs
mateusz834 Sep 24, 2025
3a05e7b
spec: close tag
eikemeier Oct 5, 2025
e74b224
crypto/tls: streamline BoGo testing w/ -bogo-local-dir
cpu Jul 11, 2025
ac2ec82
runtime: bump thread count slack for TestReadMetricsSched
mknyszek Oct 3, 2025
c2fb151
testing/synctest: remove Run
seankhliao Oct 5, 2025
2441645
cmd/go: export type State
jitsu-net Aug 20, 2025
f331212
runtime: remove batching from spanSPMC free
prattmic Oct 6, 2025
719dfcf
cmd/compile: redo arm64 LR/FP save and restore
randall77 May 17, 2025
4fca798
runtime: delete redundant code in the page allocator
Sep 29, 2025
1d62e92
test/codegen: make sure assignment results are used.
cherrymui Oct 4, 2025
7bfeb43
cmd/go: refactor usage of `initialized`
jitsu-net Aug 20, 2025
7fbf54b
internal/buildcfg: enable greenteagc experiment by default
mknyszek Mar 9, 2025
c1e6e49
fmt: reduce Errorf("x") allocations to match errors.New("x")
thepudds Oct 3, 2025
4c0fd3a
internal/goexperiment: remove the synctest GOEXPERIMENT
mateusz834 Oct 6, 2025
6469954
runtime: assert p.destroy runs with GC not running
prattmic Oct 6, 2025
c938051
Revert "cmd/compile: redo arm64 LR/FP save and restore"
randall77 Oct 7, 2025
f86ddb5
cmd/go: refactor usage of `ForceUseModules`
jitsu-net Aug 20, 2025
2e52060
cmd/go: refactor usage of `RootMode`
jitsu-net Aug 20, 2025
11d5484
runtime: fix self-deadlock on sbrk platforms
mknyszek Oct 7, 2025
6f79265
cmd/go: refactor usage of `modRoots`
jitsu-net Aug 20, 2025
6e4007e
crypto/x509: mitigate DoS vector when intermediate certificate contai…
thatnealpatel Sep 11, 2025
3fc4c79
crypto/x509: improve domain name verification
thatnealpatel Sep 15, 2025
9b9d02c
net/http: add httpcookiemaxnum GODEBUG option to limit number of cook…
nicholashusin Sep 30, 2025
8709a41
encoding/asn1: prevent memory exhaustion when parsing using internal/…
nicholashusin Sep 3, 2025
3ee7617
runtime: free spanQueue on P destroy
prattmic Oct 6, 2025
7dd54e1
runtime: make work.spanSPMCs.all doubly-linked
prattmic Oct 6, 2025
f6f4e8b
net/url: enforce stricter parsing of bracketed IPv6 hostnames
ethanalee-work Aug 29, 2025
5ce8cd1
encoding/pem: make Decode complexity linear
rolandshoemaker Sep 30, 2025
5ede095
net/textproto: avoid quadratic complexity in Reader.ReadResponse
neild Sep 30, 2025
4631656
net/mail: avoid quadratic behavior in mail address parsing
neild Sep 25, 2025
f7a68d3
archive/tar: set a limit on the size of GNU sparse file 1.0 regions
neild Sep 11, 2025
f2d0d05
cmd/go: refactor usage of `MainModules`
jitsu-net Aug 20, 2025
cb81270
Revert "crypto/internal/fips140/subtle: add assembly implementation o…
randall77 Oct 7, 2025
a1661e7
Revert "crypto/internal/fips140/subtle: add assembly implementation o…
randall77 Oct 7, 2025
1623927
cmd/go: refactor usage of `requirements`
jitsu-net Aug 21, 2025
bb1ca7a
cmd/go, testing: add TB.ArtifactDir and -artifacts flag
neild Aug 15, 2025
78b4303
cmd/go: refactor usage of `workFilePath`
jitsu-net Aug 21, 2025
97fd6bd
cmd/compile: fuse NaN checks with other comparisons
Aug 18, 2025
e5d004c
net/http: update HTTP/2 documentation to reference new config features
neild Oct 7, 2025
e1ca1de
net/http: format pprof.go
VladSaiocUber Oct 6, 2025
d4830c6
cmd/internal/obj: fix Link.Diag printf errors
adonovan Oct 8, 2025
d945600
cmd/gofmt: change -d to exit 1 if diffs exist
robbiemcmichael Oct 6, 2025
941e591
runtime: cleanup comments from asm_ppc64x.s improvements
pmur Oct 1, 2025
ae094a1
crypto/internal/fips140test: make entropy file pair names match
FiloSottile Sep 29, 2025
de9da0d
cmd/compile/internal/devirtualize: improve concrete type analysis
mateusz834 Oct 7, 2025
ee16319
path/filepath: return cleaned path from Rel
guerinoni Oct 6, 2025
4837fbe
net/http/httptest: check whether response bodies are allowed
seankhliao Oct 5, 2025
0e466a8
cmd/compile: modify float-to-[u]int so that amd64 and arm64 match
dr2chase Jul 21, 2025
78d75b3
cmd/compile: make 386 float-to-int conversions match amd64
dr2chase Sep 30, 2025
b9f3acc
runtime: adjust softfloat corner cases to match amd64/arm64
dr2chase Oct 6, 2025
8d81028
cmd/compile: make wasm match other platforms for FP->int32/64 convers…
dr2chase Oct 1, 2025
9db7e30
net/url: allow IP-literals with IPv4-mapped IPv6 addresses
rolandshoemaker Oct 9, 2025
80f3bb5
reflect: remove timeout in TestChanOfGC
mknyszek Oct 9, 2025
19a30ea
cmd/compile: call generated size-specialized malloc functions directly
matloob Sep 29, 2025
954fdcc
cmd/compile: declare no output register for loong64 LoweredAtomic{And…
xen0n Oct 9, 2025
c53cb64
internal/buildcfg: enable greenteagc experiment for loong64
xen0n Oct 9, 2025
5368e77
net/http: run TestRequestWriteTransport with fake time to avoid flakes
neild Oct 9, 2025
955a5a0
runtime: support arm64 Neon in async preemption
Aug 13, 2025
6f4c63b
cmd/go: unify "go fix" and "go vet"
adonovan Sep 26, 2025
69e8279
net/http: set cookie host to Request.Host when available
seankhliao Oct 8, 2025
584a89f
all: omit unnecessary reassignment
cuishuang Oct 10, 2025
aced4c7
net/http: strip request body headers on POST to GET redirects
seankhliao Oct 9, 2025
e3be2d1
net/url: disallow raw IPv6 addresses in host
seankhliao Oct 9, 2025
e8a5353
runtime: fail TestGoroutineLeakProfile on data race
mknyszek Oct 9, 2025
48bb7a6
cmd/compile: repair bisection behavior for float-to-unsigned conversion
dr2chase Oct 10, 2025
b497a29
encoding/json: fix regression in quoted numbers under goexperiment.js…
dsnet Oct 6, 2025
8aa1efa
cmd/link: in TestFallocate, only check number of blocks on Darwin
cherrymui Oct 11, 2025
1cd7168
crypto/x509: rework fix for CVE-2025-58187
rolandshoemaker Oct 9, 2025
6bcd97d
all: replace calls to errors.As with errors.AsType
jub0bs Oct 1, 2025
0e64ee1
encoding/json/v2: report EOF for top-level values in UnmarshalDecode
dsnet Oct 11, 2025
9b8742f
cmd/compile: don't depend on arch-dependent conversions in the compiler
randall77 Oct 13, 2025
9fdd690
strconv: add tests that Java once mishandled
rsc Oct 9, 2025
1abc6b0
go/types, types2: permit type cycles through type parameter lists
Oct 13, 2025
6fd8e88
encoding/json/v2: restrict presence of default options
dsnet Oct 11, 2025
60f6d2f
crypto/internal/fips140/entropy: support SHA-384 sizes for ACVP tests
FiloSottile Oct 8, 2025
f6b9d56
crypto/internal/fips140/entropy: fix benign race
FiloSottile Oct 8, 2025
3765758
go/types, types2: minor cleanup (remove TODO)
Oct 13, 2025
5a9ef44
cmd/compile/internal/devirtualize: fix OCONVNOP assertion
mateusz834 Oct 12, 2025
0a239bc
Revert "net/url: disallow raw IPv6 addresses in host"
neild Oct 14, 2025
0ddb5ed
cmd/compile/internal/devirtualize: use FatalfAt instead of Fatalf whe…
mateusz834 Oct 12, 2025
4dbf1a5
cmd/compile/internal/devirtualize: do not track assignments to non-PAUTO
mateusz834 Oct 12, 2025
11d3d2f
cmd/internal/obj/arm64: add support for PAC instructions
billatarm Sep 8, 2025
ee5af46
encoding/json: avoid misleading errors under goexperiment.jsonv2
dsnet Oct 11, 2025
3bc9d9f
Revert "cmd/compile: make wasm match other platforms for FP->int32/64…
dr2chase Oct 14, 2025
bb2a142
Revert "runtime: adjust softfloat corner cases to match amd64/arm64"
dr2chase Oct 14, 2025
6d5b137
Revert "cmd/compile: make 386 float-to-int conversions match amd64"
dr2chase Oct 14, 2025
7056c71
cmd/compile: disable use of new saturating float-to-int conversions
dr2chase Oct 14, 2025
36086e8
cmd/go: create temporary cleanup script
jitsu-net Oct 2, 2025
5113496
runtime/pprof: skip flaky test TestProfilerStackDepth/heap for now
matloob Oct 15, 2025
5b29875
cmd/go: inject State parameter into `run.runRun`
jitsu-net Aug 21, 2025
61d1ff6
cmd/compile: use block starting position for phi line number
randall77 Oct 8, 2025
5c9a26c
cmd/compile: use arm64 neon in LoweredMemmove/LoweredMemmoveLoop
vleonen Jul 25, 2025
bb5eb51
runtime/pprof: fix errors in pprof_test
matloob Oct 15, 2025
b5a29cc
cmd/distpack: add fix tool to inventory
adonovan Oct 15, 2025
519ae51
cmd/compile: eliminate bound check for slices of the same length
fengyoulin Aug 26, 2025
284379c
cmd/compile: remove rematerializable values from live set across calls
amusman Sep 28, 2025
6346349
cmd/compile: replace angle brackets with square
willfaught Sep 20, 2025
31f8287
go/types, types2: fix misleading internal comment
Oct 15, 2025
0984dcd
cmd/compile: fix an error in comments
mohanson Oct 15, 2025
f1fed74
cmd: fix three printf problems reported by newest vet
adonovan Oct 15, 2025
b68cebd
net/http/httptest: record failed ResponseWriter writes
neild Oct 14, 2025
27f9a67
runtime: increase repeat count for alloc test
randall77 Oct 15, 2025
45eee55
cmd/internal/obj: move ARM64RegisterExtension from cmd/asm/internal/arch
vleonen Sep 6, 2025
6cbe092
cmd: update to x/tools@7d9453cc
adonovan Sep 26, 2025
e7351c0
runtime: use DC ZVA instead of its encoding in WORD in arm64 memclr
vleonen Aug 23, 2025
41f5659
go/types, types2: remove superfluous unalias call (minor cleanup)
Oct 16, 2025
1099436
go/types, types2: change and enforce lifecycle of Named.fromRHS and N…
Aug 20, 2025
0c14000
go/types, types2: remove under(Type) in favor of Type.Underlying()
Oct 16, 2025
36863d6
runtime: unify riscv64 library entry point
qmuntal Sep 24, 2025
0983090
encoding/pem: properly decode strange PEM data
rolandshoemaker Oct 15, 2025
dbbb1bf
all: correct name for comments
callthingsoff Oct 16, 2025
5137c47
go/types, types2: remove references to under function in comments
Oct 16, 2025
b5aefe0
all: remove unnecessary loop variable copies in tests
tklauser Oct 14, 2025
80876f4
cmd/go/internal/vet: tweak help doc
adonovan Oct 17, 2025
a5f55a4
cmd/fix: add modernize and inline analyzers
adonovan Oct 10, 2025
4ad5585
runtime: fix _rt0_ppc64x_lib on aix
qmuntal Oct 8, 2025
3e43f48
encoding/asn1: use reflect.TypeAssert to improve performance
apocelipes Oct 20, 2025
8d0bef7
runtime: add linkname documentation and guidance
prattmic Aug 29, 2024
58a8fdb
cmd/go: inject State parameter into `bug.runBug`
jitsu-net Oct 2, 2025
f7eaea0
cmd/go: inject state parameter into `clean.runClean`
jitsu-net Oct 8, 2025
29a8162
cmd/go: inject state parameter into `fmtcmd.runFmt`
jitsu-net Oct 3, 2025
35e8309
cmd/go: inject State parameter into `list.runList`
jitsu-net Oct 1, 2025
441e719
cmd/go: inject State parameter into `test.runTest`
jitsu-net Oct 2, 2025
a420aa2
cmd/go: inject State parameter into `tool.runTool`
jitsu-net Oct 8, 2025
386d811
cmd/go: make setState work with any State instance
jitsu-net Oct 16, 2025
0d3044f
cmd/go: make Reset work with any State instance
jitsu-net Oct 16, 2025
bcf7da1
cmd/go: convert functions to methods
jitsu-net Oct 16, 2025
4dc3dd9
cmd/go: add loaderstate to Switcher
jitsu-net Oct 16, 2025
e7c66a5
cmd/go: inject State parameter into `toolchain.Select`
jitsu-net Oct 3, 2025
e176dff
cmd/go: inject State parameter into `modcmd.runDownload`
jitsu-net Oct 8, 2025
92aa3e9
cmd/go: inject State parameter into `modcmd.runInit`
jitsu-net Oct 2, 2025
0f820ac
cmd/go: inject State parameter into `modcmd.runVendor`
jitsu-net Oct 2, 2025
f859799
cmd/go: inject State parameter into `modcmd.runVerify`
jitsu-net Oct 2, 2025
9769a61
cmd/go: inject State parameter into `modget.runGet`
jitsu-net Oct 1, 2025
d9e6f95
cmd/go: inject State parameter into `workcmd.runSync`
jitsu-net Oct 2, 2025
e94a500
cmd/go: inject State parameter into `work.runBuild`
jitsu-net Oct 3, 2025
d57c3fd
cmd/go: inject State parameter into `work.runInstall`
jitsu-net Oct 8, 2025
7503856
cmd/go: inject loaderstate into matcher function
jitsu-net Oct 2, 2025
df33c17
runtime: add _Gdeadextra status
mknyszek Feb 3, 2025
dc9a3e2
runtime: fix generation skew with trace reentrancy
mknyszek Sep 30, 2025
e425176
cmd/asm: fix typo in comment
4a6f656c Oct 20, 2025
7b81a1e
net/url: reduce allocs in Encode
jub0bs Oct 18, 2025
ee4d2c3
runtime/trace: dump test traces on validation failure
mknyszek Oct 9, 2025
f838faf
runtime: wrap procyield assembly and check for 0
mknyszek Oct 17, 2025
79ae97f
runtime: make procyieldAsm no longer loop infinitely if passed 0
mknyszek Oct 17, 2025
99cf4d6
runtime: save lasx and lsx registers in loong64 async preemption
abner-chenc Sep 11, 2025
8539691
crypto/internal/fips140/entropy: move to crypto/internal/entropy/v1.0.0
FiloSottile Oct 8, 2025
9a5a120
runtime: clean dead architectures from go:build constraint
Jorropo Oct 17, 2025
b0dcb95
cmd/compile: leave the horses alone
Jorropo Oct 18, 2025
694182d
cmd/internal/obj/ppc64: improve large prologue generation
pmur Oct 8, 2025
a5a249d
all: eliminate unnecessary type conversions
callthingsoff Oct 19, 2025
306eacb
cmd/go/testdata/script: disable list_empty_importpath test on Windows
matloob Oct 20, 2025
2163a58
crypto/internal/fips140/entropy: increase AllocsPerRun iterations
qmuntal Oct 17, 2025
46cc532
cmd/compile/internal/ssa: fix typo in comment
callthingsoff Oct 20, 2025
b31dc77
os: support deleting read-only files in RemoveAll on older Windows ve…
qmuntal Oct 21, 2025
4620db7
runtime: use timer_settime64 on 32-bit Linux
abdullahkiani007 Oct 18, 2025
8a6c64f
syscall: use rawSyscall6 to call ptrace in forkAndExecInChild
qmuntal Oct 2, 2025
8f74f9d
sync: re-enable race even when panicking
aktau Oct 21, 2025
c9c78c0
strconv: embed testdata in test
rsc Oct 17, 2025
261c561
all: gofmt -w
callthingsoff Oct 21, 2025
4a0115c
runtime,syscall: implement and use syscalln on darwin
qmuntal Aug 26, 2025
39fd61d
go/types, types2: guard Named.underlying with Named.mu
Oct 17, 2025
6c3d0d2
path/filepath: reword documentation for Rel
matttproud Oct 16, 2025
06e57e6
go/types, types2: only report version errors if new(expr) is ok other…
Oct 20, 2025
4e695dd
go/ast: add ParseDirective for parsing directive comments
aclements Aug 29, 2025
29d43df
go/build, cmd/go: use ast.ParseDirective for go:embed
aclements Sep 11, 2025
4bdb55b
go/types, types2: rename Named.under to Named.resolveUnderlying
Oct 16, 2025
5a42af7
go/types, types2: in resolveUnderlying, only compute path when needed
Oct 20, 2025
d09a8c8
go/types, types2: simplify locking in Named.resolveUnderlying
Oct 21, 2025
557b4d6
comment: change slice to string in function comment/help
redteampanda-ng Oct 22, 2025
78e1263
runtime/cgo: improve error messages after ptr panic
ariel-anieli Oct 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions api/next/51945.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pkg errors, func AsType[$0 error](error) ($0, bool) #51945
13 changes: 13 additions & 0 deletions api/next/68021.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pkg go/ast, func ParseDirective(token.Pos, string) (Directive, bool) #68021
pkg go/ast, method (*Directive) End() token.Pos #68021
pkg go/ast, method (*Directive) ParseArgs() ([]DirectiveArg, error) #68021
pkg go/ast, method (*Directive) Pos() token.Pos #68021
pkg go/ast, type Directive struct #68021
pkg go/ast, type Directive struct, Args string #68021
pkg go/ast, type Directive struct, ArgsPos token.Pos #68021
pkg go/ast, type Directive struct, Name string #68021
pkg go/ast, type Directive struct, Slash token.Pos #68021
pkg go/ast, type Directive struct, Tool string #68021
pkg go/ast, type DirectiveArg struct #68021
pkg go/ast, type DirectiveArg struct, Arg string #68021
pkg go/ast, type DirectiveArg struct, Pos token.Pos #68021
4 changes: 4 additions & 0 deletions api/next/71287.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pkg testing, method (*B) ArtifactDir() string #71287
pkg testing, method (*F) ArtifactDir() string #71287
pkg testing, method (*T) ArtifactDir() string #71287
pkg testing, type TB interface, ArtifactDir() string #71287
1 change: 1 addition & 0 deletions api/next/73161.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pkg net/http/httputil, type ReverseProxy struct, Director //deprecated #73161
12 changes: 6 additions & 6 deletions doc/go_spec.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
"Subtitle": "Language version go1.25 (Feb 25, 2025)",
"Subtitle": "Language version go1.26 (Oct 1, 2025)",
"Path": "/ref/spec"
}-->

Expand Down Expand Up @@ -3173,7 +3173,7 @@ <h3 id="Composite_literals">Composite literals</h3>

<p>
Unless the LiteralType is a type parameter,
its <a href="#Underlying_types">underlying type
its <a href="#Underlying_types">underlying type</a>
must be a struct, array, slice, or map type
(the syntax enforces this constraint except when the type is given
as a TypeName).
Expand Down Expand Up @@ -4873,7 +4873,7 @@ <h4 id="Operator_precedence">Operator precedence</h4>
x &lt;= f() // x &lt;= f()
^a &gt;&gt; b // (^a) >> b
f() || g() // f() || g()
x == y+1 &amp;&amp; &lt;-chanInt &gt; 0 // (x == (y+1)) && ((<-chanInt) > 0)
x == y+1 &amp;&amp; &lt;-chanInt &gt; 0 // (x == (y+1)) && ((&lt;-chanInt) > 0)
</pre>


Expand Down Expand Up @@ -6635,7 +6635,7 @@ <h4 id="For_clause">For statements with <code>for</code> clause</h4>

<pre>
var prints []func()
for i := 0; i < 5; i++ {
for i := 0; i &lt; 5; i++ {
prints = append(prints, func() { println(i) })
i++
}
Expand Down Expand Up @@ -6772,7 +6772,7 @@ <h4 id="For_range">For statements with <code>range</code> clause</h4>
variable, which must be of integer type.
Otherwise, if the iteration variable is declared by the "range" clause or is absent,
the type of the iteration values is the <a href="#Constants">default type</a> for <code>n</code>.
If <code>n</code> &lt= 0, the loop does not run any iterations.
If <code>n</code> &lt;= 0, the loop does not run any iterations.
</li>

<li>
Expand Down Expand Up @@ -7799,7 +7799,7 @@ <h3 id="Min_and_max">Min and max</h3>
</p>

<pre>
min(x, y) == if x <= y then x else y
min(x, y) == if x &lt;= y then x else y
min(x, y, z) == min(min(x, y), z)
</pre>

Expand Down
10 changes: 10 additions & 0 deletions doc/godebug.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@ for example,
see the [runtime documentation](/pkg/runtime#hdr-Environment_Variables)
and the [go command documentation](/cmd/go#hdr-Build_and_test_caching).

### Go 1.26

Go 1.26 added a new `httpcookiemaxnum` setting that controls the maximum number
of cookies that net/http will accept when parsing HTTP headers. If the number of
cookie in a header exceeds the number set in `httpcookiemaxnum`, cookie parsing
will fail early. The default value is `httpcookiemaxnum=3000`. Setting
`httpcookiemaxnum=0` will allow the cookie parsing to accept an indefinite
number of cookies. To avoid denial of service attacks, this setting and default
was backported to Go 1.25.2 and Go 1.24.8.

### Go 1.25

Go 1.25 added a new `decoratemappings` setting that controls whether the Go
Expand Down
10 changes: 10 additions & 0 deletions doc/next/3-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,15 @@
a replacement for `go tool doc`: it takes the same flags and arguments and
has the same behavior.

<!-- go.dev/issue/75432 -->
The `go fix` command, following the pattern of `go vet` in Go 1.10,
now uses the Go analysis framework (`golang.org/x/tools/go/analysis`).
This means the same analyzers that provide diagnostics in `go vet`
can be used to suggest and apply fixes in `go fix`.
The `go fix` command's historical fixers, all of which were obsolete,
have been removed and replaced by a suite of new analyzers that
offer fixes to use newer features of the language and library.
<!-- I'll write a blog post that discusses this at length. --adonovan -->

### Cgo {#cgo}

2 changes: 2 additions & 0 deletions doc/next/6-stdlib/99-minor/errors/51945.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The new [AsType] function is a generic version of [As]. It is type-safe, faster,
and, in most cases, easier to use.
4 changes: 4 additions & 0 deletions doc/next/6-stdlib/99-minor/go/ast/68021.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The new [ParseDirective] function parses [directive
comments](/doc/comment#Syntax), which are comments such as `//go:generate`.
Source code tools can support their own directive comments and this new API
should help them implement the conventional syntax.
11 changes: 11 additions & 0 deletions doc/next/6-stdlib/99-minor/net/http/httputil/73161.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
The [ReverseProxy.Director] configuration field is deprecated
in favor of [ReverseProxy.Rewrite].

A malicious client can remove headers added by a `Director` function
by designating those headers as hop-by-hop. Since there is no way to address
this problem within the scope of the `Director` API, we added a new
`Rewrite` hook in Go 1.20. `Rewrite` hooks are provided with both the
unmodified inbound request received by the proxy and the outbound request
which will be sent by the proxy.

Since the `Director` hook is fundamentally unsafe, we are now deprecating it.
18 changes: 18 additions & 0 deletions doc/next/6-stdlib/99-minor/testing/71287.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The new methods [T.ArtifactDir], [B.ArtifactDir], and [F.ArtifactDir]
return a directory in which to write test output files (artifacts).

When the `-artifacts` flag is provided to `go test`,
this directory will be located under the output directory
(specified with `-outputdir`, or the current directory by default).
Otherwise, artifacts are stored in a temporary directory
which is removed after the test completes.

The first call to `ArtifactDir` when `-artifacts` is provided
writes the location of the directory to the test log.

For example, in a test named `TestArtifacts`,
`t.ArtifactDir()` emits:

```
=== ARTIFACTS Test /path/to/artifact/dir
```
1 change: 1 addition & 0 deletions src/archive/tar/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var (
errMissData = errors.New("archive/tar: sparse file references non-existent data")
errUnrefData = errors.New("archive/tar: sparse file contains unreferenced data")
errWriteHole = errors.New("archive/tar: write non-NUL byte in sparse hole")
errSparseTooLong = errors.New("archive/tar: sparse map too long")
)

type headerError []string
Expand Down
9 changes: 7 additions & 2 deletions src/archive/tar/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,17 @@ func readGNUSparseMap1x0(r io.Reader) (sparseDatas, error) {
cntNewline int64
buf bytes.Buffer
blk block
totalSize int
)

// feedTokens copies data in blocks from r into buf until there are
// at least cnt newlines in buf. It will not read more blocks than needed.
feedTokens := func(n int64) error {
for cntNewline < n {
totalSize += len(blk)
if totalSize > maxSpecialFileSize {
return errSparseTooLong
}
if _, err := mustReadFull(r, blk[:]); err != nil {
return err
}
Expand Down Expand Up @@ -569,8 +574,8 @@ func readGNUSparseMap1x0(r io.Reader) (sparseDatas, error) {
}

// Parse for all member entries.
// numEntries is trusted after this since a potential attacker must have
// committed resources proportional to what this library used.
// numEntries is trusted after this since feedTokens limits the number of
// tokens based on maxSpecialFileSize.
if err := feedTokens(2 * numEntries); err != nil {
return nil, err
}
Expand Down
5 changes: 5 additions & 0 deletions src/archive/tar/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,11 @@ func TestReader(t *testing.T) {
},
Format: FormatPAX,
}},
}, {
// Small compressed file that uncompresses to
// a file with a very large GNU 1.0 sparse map.
file: "testdata/gnu-sparse-many-zeros.tar.bz2",
err: errSparseTooLong,
}}

for _, v := range vectors {
Expand Down
Binary file not shown.
2 changes: 0 additions & 2 deletions src/archive/zip/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,6 @@ func TestFS(t *testing.T) {
[]string{"a/b/c"},
},
} {
test := test
t.Run(test.file, func(t *testing.T) {
t.Parallel()
z, err := OpenReader(test.file)
Expand Down Expand Up @@ -1247,7 +1246,6 @@ func TestFSWalk(t *testing.T) {
wantErr: true,
},
} {
test := test
t.Run(test.file, func(t *testing.T) {
t.Parallel()
z, err := OpenReader(test.file)
Expand Down
143 changes: 0 additions & 143 deletions src/cmd/asm/internal/arch/arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,149 +195,6 @@ func ARM64RegisterShift(reg, op, count int16) (int64, error) {
return int64(reg&31)<<16 | int64(op)<<22 | int64(uint16(count)), nil
}

// ARM64RegisterExtension constructs an ARM64 register with extension or arrangement.
func ARM64RegisterExtension(a *obj.Addr, ext string, reg, num int16, isAmount, isIndex bool) error {
Rnum := (reg & 31) + int16(num<<5)
if isAmount {
if num < 0 || num > 7 {
return errors.New("index shift amount is out of range")
}
}
if reg <= arm64.REG_R31 && reg >= arm64.REG_R0 {
if !isAmount {
return errors.New("invalid register extension")
}
switch ext {
case "UXTB":
if a.Type == obj.TYPE_MEM {
return errors.New("invalid shift for the register offset addressing mode")
}
a.Reg = arm64.REG_UXTB + Rnum
case "UXTH":
if a.Type == obj.TYPE_MEM {
return errors.New("invalid shift for the register offset addressing mode")
}
a.Reg = arm64.REG_UXTH + Rnum
case "UXTW":
// effective address of memory is a base register value and an offset register value.
if a.Type == obj.TYPE_MEM {
a.Index = arm64.REG_UXTW + Rnum
} else {
a.Reg = arm64.REG_UXTW + Rnum
}
case "UXTX":
if a.Type == obj.TYPE_MEM {
return errors.New("invalid shift for the register offset addressing mode")
}
a.Reg = arm64.REG_UXTX + Rnum
case "SXTB":
if a.Type == obj.TYPE_MEM {
return errors.New("invalid shift for the register offset addressing mode")
}
a.Reg = arm64.REG_SXTB + Rnum
case "SXTH":
if a.Type == obj.TYPE_MEM {
return errors.New("invalid shift for the register offset addressing mode")
}
a.Reg = arm64.REG_SXTH + Rnum
case "SXTW":
if a.Type == obj.TYPE_MEM {
a.Index = arm64.REG_SXTW + Rnum
} else {
a.Reg = arm64.REG_SXTW + Rnum
}
case "SXTX":
if a.Type == obj.TYPE_MEM {
a.Index = arm64.REG_SXTX + Rnum
} else {
a.Reg = arm64.REG_SXTX + Rnum
}
case "LSL":
a.Index = arm64.REG_LSL + Rnum
default:
return errors.New("unsupported general register extension type: " + ext)

}
} else if reg <= arm64.REG_V31 && reg >= arm64.REG_V0 {
switch ext {
case "B8":
if isIndex {
return errors.New("invalid register extension")
}
a.Reg = arm64.REG_ARNG + (reg & 31) + ((arm64.ARNG_8B & 15) << 5)
case "B16":
if isIndex {
return errors.New("invalid register extension")
}
a.Reg = arm64.REG_ARNG + (reg & 31) + ((arm64.ARNG_16B & 15) << 5)
case "H4":
if isIndex {
return errors.New("invalid register extension")
}
a.Reg = arm64.REG_ARNG + (reg & 31) + ((arm64.ARNG_4H & 15) << 5)
case "H8":
if isIndex {
return errors.New("invalid register extension")
}
a.Reg = arm64.REG_ARNG + (reg & 31) + ((arm64.ARNG_8H & 15) << 5)
case "S2":
if isIndex {
return errors.New("invalid register extension")
}
a.Reg = arm64.REG_ARNG + (reg & 31) + ((arm64.ARNG_2S & 15) << 5)
case "S4":
if isIndex {
return errors.New("invalid register extension")
}
a.Reg = arm64.REG_ARNG + (reg & 31) + ((arm64.ARNG_4S & 15) << 5)
case "D1":
if isIndex {
return errors.New("invalid register extension")
}
a.Reg = arm64.REG_ARNG + (reg & 31) + ((arm64.ARNG_1D & 15) << 5)
case "D2":
if isIndex {
return errors.New("invalid register extension")
}
a.Reg = arm64.REG_ARNG + (reg & 31) + ((arm64.ARNG_2D & 15) << 5)
case "Q1":
if isIndex {
return errors.New("invalid register extension")
}
a.Reg = arm64.REG_ARNG + (reg & 31) + ((arm64.ARNG_1Q & 15) << 5)
case "B":
if !isIndex {
return nil
}
a.Reg = arm64.REG_ELEM + (reg & 31) + ((arm64.ARNG_B & 15) << 5)
a.Index = num
case "H":
if !isIndex {
return nil
}
a.Reg = arm64.REG_ELEM + (reg & 31) + ((arm64.ARNG_H & 15) << 5)
a.Index = num
case "S":
if !isIndex {
return nil
}
a.Reg = arm64.REG_ELEM + (reg & 31) + ((arm64.ARNG_S & 15) << 5)
a.Index = num
case "D":
if !isIndex {
return nil
}
a.Reg = arm64.REG_ELEM + (reg & 31) + ((arm64.ARNG_D & 15) << 5)
a.Index = num
default:
return errors.New("unsupported simd register extension type: " + ext)
}
} else {
return errors.New("invalid register and extension combination")
}
return nil
}

// ARM64RegisterArrangement constructs an ARM64 vector register arrangement.
func ARM64RegisterArrangement(reg int16, name, arng string) (int64, error) {
var curQ, curSize uint16
Expand Down
6 changes: 3 additions & 3 deletions src/cmd/asm/internal/asm/asm.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (p *Parser) asmData(operands [][]lex.Token) {
case obj.TYPE_CONST:
switch sz {
case 1, 2, 4, 8:
nameAddr.Sym.WriteInt(p.ctxt, nameAddr.Offset, int(sz), valueAddr.Offset)
nameAddr.Sym.WriteInt(p.ctxt, nameAddr.Offset, sz, valueAddr.Offset)
default:
p.errorf("bad int size for DATA argument: %d", sz)
}
Expand All @@ -262,10 +262,10 @@ func (p *Parser) asmData(operands [][]lex.Token) {
p.errorf("bad float size for DATA argument: %d", sz)
}
case obj.TYPE_SCONST:
nameAddr.Sym.WriteString(p.ctxt, nameAddr.Offset, int(sz), valueAddr.Val.(string))
nameAddr.Sym.WriteString(p.ctxt, nameAddr.Offset, sz, valueAddr.Val.(string))
case obj.TYPE_ADDR:
if sz == p.arch.PtrSize {
nameAddr.Sym.WriteAddr(p.ctxt, nameAddr.Offset, int(sz), valueAddr.Sym, valueAddr.Offset)
nameAddr.Sym.WriteAddr(p.ctxt, nameAddr.Offset, sz, valueAddr.Sym, valueAddr.Offset)
} else {
p.errorf("bad addr size for DATA argument: %d", sz)
}
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/asm/internal/asm/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ func (p *Parser) registerExtension(a *obj.Addr, name string, prefix rune) {

switch p.arch.Family {
case sys.ARM64:
err := arch.ARM64RegisterExtension(a, ext, reg, num, isAmount, isIndex)
err := arm64.ARM64RegisterExtension(a, ext, reg, num, isAmount, isIndex)
if err != nil {
p.errorf("%v", err)
}
Expand Down
Loading