16-bit Windows applications tried to deal with OOM
16-bit Windows applications tried to deal with OOM
Posted Oct 11, 2020 12:38 UTC (Sun) by quboid (subscriber, #54017)In reply to: Zig heading toward a self-hosting compiler by dvdeug
Parent article: Zig heading toward a self-hosting compiler
The 16-bit Windows SDK had a tool called STRESS.EXE which, among other things, could cause memory allocation failures in order to check that your program coped with them correctly.
16-bit Windows required large memory allocations (GlobalAlloc) to be locked when being used and unlocked when not so that Windows could move the memory around without an MMU. It was even possible to specify that allocated memory was discardable and you didn't know whether you'd still have the memory when you tried to lock it to use it again - this was great for caches and is a feature I wish my web browser had today. :-)
Mike.
Posted Oct 11, 2020 21:14 UTC (Sun)
by dtlin (subscriber, #36537)
[Link]
Posted Oct 11, 2020 22:28 UTC (Sun)
by roc (subscriber, #30627)
[Link] (1 responses)
Posted Oct 15, 2020 16:19 UTC (Thu)
by lysse (guest, #3190)
[Link]
16-bit Windows applications tried to deal with OOM
16-bit Windows applications tried to deal with OOM
16-bit Windows applications tried to deal with OOM
