Microsoft KB Archive/12245

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:50, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

INF: Heap Placement in Memory ID Number: Q12245

2.00 3.00 WINDOWS

Summary:

The Windows system uses LocalInit(ds,0,size_in_bytes) to align the heap. The first 16 bytes in DS are the NULL segment. It contains a block of “reserved pointers.” These are the heap pointers. The heap is located in DS by subtracting the size of the heap from the end of DGROUP and filling in the start of the heap pointer with the resulting offset from the end of DGROUP. This procedure avoids data-stack/heap collision.