[Swift-devel] behaviour on out-of-memory
Ben Clifford
benc at hawaga.org.uk
Fri Feb 8 11:19:37 CST 2008
On Fri, 8 Feb 2008, Mihael Hategan wrote:
> Yep. Hard problem. In general, OOMs are tricky to handle. I was thinking
> of pre-allocating some space to use in such cases for clean shutdown,
> but given the concurrency, this may or may not work properly.
For my purposes, I don't really need anything cleaner than the JVM exiting
with an error code sometime around the memory running out.
I hacked in a try/catch around karajan's EventWorker.run() which is
catching enough for me at the moment.
--
More information about the Swift-devel
mailing list