<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Allocator on Shai Asher</title><link>https://slow-is-smooth.io/tags/allocator/</link><description>Recent content in Allocator on Shai Asher</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Sun, 07 Oct 2018 09:00:00 +0300</lastBuildDate><atom:link href="https://slow-is-smooth.io/tags/allocator/index.xml" rel="self" type="application/rss+xml"/><item><title>The Allocator Under Every new</title><link>https://slow-is-smooth.io/blog/the-allocator-under-every-new/</link><pubDate>Sun, 07 Oct 2018 09:00:00 +0300</pubDate><guid>https://slow-is-smooth.io/blog/the-allocator-under-every-new/</guid><description>&lt;p&gt;Ask Go&amp;rsquo;s heap for 33 bytes and it hands back 48. Ask for 32,769 and it hands back 40,960. Keep&#10;every second one of a million small integers and you free nothing at all. And until August, a C&#10;library that mapped 64 kilobytes of memory in the wrong place could kill a Go program as soon as its&#10;heap grew into that place, with an error that blamed neither. Go 1.11, released on 24 August,&#10;fixed the last of these by changing where the heap lives. The others are how Go&amp;rsquo;s allocator is&#10;designed, and they are worth knowing.&lt;/p&gt;</description></item></channel></rss>