Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Out of memory panic
Re: Out of memory panic [message #36309 is a reply to message #36264] Sat, 19 May 2012 14:05 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
IMHO in modern OS with virtual memory, a true out-of-memory error is almost impossible.
What you usually get is a system slowdown because of swapping.

OTOH, memory corruptions often are reported as out of memory, and in my experience, there's nothing you can do about it... most recovery routines need working allocators.

The only solution I can think about is to have a separate block of preallocated memory usable by emergency routine as a pool for newly allocated blocks while trying to close gracefully the application, maybe saving some work.
Or, even if not preallocated, the memory could be requested as a big block from OS and then the allocators could switch to that block while shutting down.

Max
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ...nize class
Next Topic: Value: String to int - problem or feature?
Goto Forum:
  


Current Time: Thu May 16 19:24:13 CEST 2024

Total time taken to generate the page: 0.01621 seconds