The "too small to fail" memory-allocation rule
The "too small to fail" memory-allocation rule
Posted Dec 24, 2014 7:15 UTC (Wed) by ibukanov (subscriber, #3942)Parent article: The "too small to fail" memory-allocation rule
What helped on a memory-constrained system was to preallocate a buffer and monitor available memory. When it became low, the buffer was dropped with a global flag set indicating for the application to switch to a recovery mode. In that mode most of normal activities lead to errors. The application remained in it until enough memory was freed to be able to allocate the buffer back.
Posted Dec 25, 2014 19:07 UTC (Thu)
by fw (subscriber, #26023)
[Link]
The "too small to fail" memory-allocation rule