Author: nextgens
Date: 2008-07-31 16:20:03 +0000 (Thu, 31 Jul 2008)
New Revision: 21541
Modified:
trunk/freenet/src/freenet/support/PooledExecutor.java
Log:
backport of r21506 (Call OOMHandler here)
Modified: trunk/freenet/src/freenet/support/PooledExecutor.java
===================================================================
--- trunk/freenet/src/freenet/support/PooledExecutor.java 2008-07-31
14:59:32 UTC (rev 21540)
+++ trunk/freenet/src/freenet/support/PooledExecutor.java 2008-07-31
16:20:03 UTC (rev 21541)
@@ -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);
}