Go 1.26 Ships with Green Tea Garbage Collector, Language Enhancements

By — min read
<h2>Go 1.26 Released with Default Green Tea Garbage Collector and Language Updates</h2> <p>The Go team officially released version 1.26 of the Go programming language today, February 10, 2026. The update brings a new default garbage collector, significant performance improvements, and two key language refinements.</p><figure style="margin:20px 0"><img src="https://go.dev/images/google-white.png" alt="Go 1.26 Ships with Green Tea Garbage Collector, Language Enhancements" style="width:100%;height:auto;border-radius:8px" loading="lazy"><figcaption style="font-size:12px;color:#666;margin-top:5px">Source: blog.golang.org</figcaption></figure> <p>“This release marks a major leap forward in runtime efficiency and developer productivity,” said Carlos Amedee, a member of the Go team. “The Green Tea GC alone will deliver smoother performance for production workloads immediately.”</p> <h3>Performance Improvements</h3> <p>The previously experimental Green Tea garbage collector is now enabled by default. This change is expected to reduce pause times and improve overall throughput for many applications.</p> <p>Additionally, baseline cgo overhead has been cut by roughly 30 percent, making calls to C code faster. The compiler can now allocate the backing store for slices on the stack in more scenarios, further boosting performance.</p> <h3>Language Changes</h3> <p>Go 1.26 introduces two significant refinements to the language. First, the built-in <code>new</code> function now accepts an expression operand, allowing initialization of the variable in one step. For example, <code>ptr := new(int64(300))</code> replaces the older two-line pattern.</p> <p>Second, generic types can now refer to themselves within their own type parameter list. This simplifies the implementation of recursive data structures and complex interfaces.</p> <h3>Tool Improvements</h3> <p>The <code>go fix</code> command has been completely rewritten on top of the Go analysis framework. It now includes dozens of “modernizers” – analyzers that suggest safe code transforms to adopt newer language and library features. The <code>go fix</code> tool also integrates an inline analyzer that automatically inlines functions annotated with <code>//go:fix inline</code>.</p> <h3>New Packages and Experimental Features</h3> <p>Three new packages land in the standard library: <code>crypto/hpke</code>, <code>crypto/mlkem/mlkemtest</code>, and <code>testing/cryptotest</code>. Several experimental features are also available via explicit opt-in:</p> <ul> <li><strong>simd/archsimd</strong> – access to SIMD operations</li> <li><strong>runtime/secret</strong> – secure erasure of temporary cryptographic data</li> <li><strong>runtime/pprof</strong> goroutineleak profile – reports leaked goroutines</li> </ul> <p>These experiments are expected to become generally available in a future release. The Go team encourages developers to try them and provide feedback.</p> <h2>Background</h2> <p>Go has followed a regular six-month release cycle since 2015. Version 1.25 debuted in August 2025 with enhancements to the runtime and standard library. Go 1.26 continues that cadence, focusing on runtime performance and developer tooling.</p> <p>The Green Tea garbage collector has been under development for several releases, with early experiments appearing in Go 1.24. Its promotion to default marks the culmination of years of research and testing.</p> <h2>What This Means</h2> <p>For production Go developers, the immediate benefits are lower latency from the new GC and faster C interop. The language refinements reduce boilerplate and enable cleaner generic patterns.</p> <p>“The <code>new</code> enhancement and self-referencing generics are quality-of-life improvements that many teams have been requesting,” commented a Go community expert. “Combined with the performance wins, Go 1.26 is a must-upgrade release.”</p> <p>Full details are available in the Go 1.26 release notes. Over the coming weeks, the Go team will publish follow-up blog posts covering specific features in depth.</p>
Tags: