Get the latest tech news

Why is the first C++ (m)allocation always 72 KB?


Why is the first C++ (m)allocation always 72 KB?? It’s the ’emergency pool’ for exceptions, here’s how I uncovered it using GDB and digging through the source code of libstdc++, glibc and Valgrind!

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of C++

C++

Photo of m)allocation

m)allocation

Related news:

News photo

Show HN: SNKV – SQLite's B-tree as a key-value store (C/C++ and Python bindings)

News photo

Canvas_ity: A tiny, single-header <canvas>-like 2D rasterizer for C++

News photo

Reproducible and traceable configuration for Conan C and C++ package manager