RepoJournal
Go

@golang

Go and the standard library — backend infrastructure at scale

Pick a date

Topics: Go Infrastructure Full archive →

The Wire · Showcase

GO RUNTIME PATCHES ARM MISCOMPILATION, FIXES USERINFO VALIDATION IN CORS

By RepoJournal · Filed · About Go

The Go compiler just shipped critical fixes for ARM64 integer overflow handling and net/http now properly validates origin URLs, while pkgsite quietly ships Vertex AI embeddings infrastructure.

ARM64 and ARM both had a dangerous miscompilation bug in the noov (no-overflow) comparison logic [1]. When the compiler folded comparisons like `a-x*y < 0` into flag-based operations and then absorbed those flags via InvertFlags canonicalization, it swapped comparison directions. This works fine for normal integers but breaks catastrophically at minimum int values. The fix prevents that absorption. Meanwhile, net/http's CrossOriginProtection now properly rejects origins containing userinfo parts [2], closing a validation gap that could silently accept malformed origins. On the runtime side, Plan 9 now gets proper scheduler backoff handling [3] by joining Windows and BSD in the osHasLowResTimer guard, fixing goroutine steal performance dominance at high GOMAXPROCS. The ARM64 code generator also gained a new optimization [4] that fuses adjacent spill/reload instructions into paired STP/LDP operations during final code generation, improving memory traffic efficiency. Across the ecosystem, pkgsite is building vector search with Vertex AI [5], adding database migrations for pgvector [6] and synchronization infrastructure [7], while gopls continues a major CLI refactor [8] that separates global flags from subcommands and adds hierarchical error messages. VS Code Go shipped v0.56.0 [9], moving into v0.58.0-dev.

Action items

References

  1. [1] cmd/compile: prevent arm[64] noov InvertFlags miscompilation at min int golang/go
  2. [2] net/http: reject userinfo in CrossOriginProtection golang/go
  3. [3] runtime: add plan9 to osHasLowResTimer golang/go
  4. [4] cmd/compile/internal/arm64: fuse adjacent spill/reload STR/LDR into STP/LDP golang/go
  5. [5] internal/embeddings: add Vertex AI REST client golang/pkgsite
  6. [6] devtools, migrations: enable pgvector and add embeddings schema golang/pkgsite
  7. [7] internal/worker: integrate embeddings client into worker server configuration golang/pkgsite
  8. [8] gopls/internal/cmd: revamp CLI flag parsing golang/tools
  9. [9] Release v0.56.0 ↗ golang/vscode-go

Quick answers

What shipped in Go on July 16, 2026?
The Go compiler just shipped critical fixes for ARM64 integer overflow handling and net/http now properly validates origin URLs, while pkgsite quietly ships Vertex AI embeddings infrastructure. In total, 64 commits and 2 releases landed.
Who contributed to Go on July 16, 2026?
9 developers shipped this update, including Julien Cretel, qlonglong, David du Colombier, Josh Bleecher Snyder, Andrew Gaul, gopherbot, Hana Kim, and Ethan Lee, and 1 more.
What were the notable Go updates?
cmd/compile: prevent arm[64] noov InvertFlags miscompilation at min int, net/http: reject userinfo in CrossOriginProtection, and runtime: add plan9 to osHasLowResTimer.

More from @golang

Daily updates, in your inbox

Follow Go

Go and the standard library — backend infrastructure at scale We'll email you a link to confirm first.

Free. Confirm via email. Unsubscribe in one click.

— or follow the whole beat:

Elsewhere on the wire