Author: toad
Date: 2008-07-30 20:57:09 +0000 (Wed, 30 Jul 2008)
New Revision: 21506
Modified:
branches/db4o/freenet/src/freenet/support/PooledExecutor.java
Log:
Call OOMHandler here. BACKPORT.
Modified: branches/db4o/freenet/src/freenet/support/PooledExecutor.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/PooledExecutor.java
2008-07-30 19:21:33 UTC (rev 21505)
+++ branches/db4o/freenet/src/freenet/support/PooledExecutor.java
2008-07-30 20:57:09 UTC (rev 21506)
@@ -184,6 +184,8 @@
// Run the job
try {
job.run();
+ } catch (OutOfMemoryError e) {
+ OOMHandler.handleOOM(e);
} catch(Throwable t) {
Logger.error(this, "Caught " + t + "
running job " + job, t);
}