Windows 11 Still Ships Windows 95's Memory Manager
Original source
Why Windows 11 still ships with Windows 95's memory manager hidden inside it
Hacker News →Windows 11’s compatibility layer includes a complete recompilation of Windows 95’s memory manager, activated through a shim called EmulateHeap. This allows older applications to run against the original heap allocation behavior rather than modern Windows memory management, addressing apps that relied on Windows 95’s specific memory handling quirks.
The practice traces back to SimCity, which Microsoft patched by modifying Windows 95’s behavior directly to accommodate a use-after-free bug in the game. When subsequent applications broke on later Windows versions due to similar assumptions about memory behavior, Microsoft opted to embed the actual Windows 95 heap manager source code into the compatibility framework, recompiling it for modern systems.
The compatibility shim is visible in the Compatibility Administrator tool and loads only when explicitly enabled for targeted applications. Despite this backward-looking approach, Microsoft’s compatibility layer has shown inconsistent results with some games, and the company has discontinued support for other legacy software entirely, citing engineering constraints.
Read the full article
Continue reading at Hacker News →This is an AI-generated summary. Read the original for the full story.