You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It does a runtime.printf and returns false, causing later failures. Should it panic
instead, as most other OOM conditions do, for those sysiphean programmers who want to
try to recover?
The text was updated successfully, but these errors were encountered:
Note that most out-of-memory conditions call runtime·throw, which can not be recovered.
Right now if MHeap_Grow runs out of memory, it will eventually call runtime·throw in
largealloc or in runtime·MCache_Refill.
It's not possible to recover from OOM in Go programs. What if OOM happens in the middle
of GC while allocating some metadata? Or in scheduler during allocation of a new thread
which is intended to prevent deadlock due to lack of worker threads?
All OOM conditions throw and terminate program.
The text was updated successfully, but these errors were encountered: