On Monday 06 April 2009 15:39:09 saces at freenetproject.org wrote:
> Author: saces
> Date: 2009-04-06 14:39:09 +0000 (Mon, 06 Apr 2009)
> New Revision: 26561
> 
> Modified:
>    trunk/freenet/src/freenet/pluginmanager/PluginTalker.java
> Log:
> re-throw thread/vm fatals, the node should be notified about them.
> 
> 
> Modified: trunk/freenet/src/freenet/pluginmanager/PluginTalker.java
> ===================================================================
> --- trunk/freenet/src/freenet/pluginmanager/PluginTalker.java 2009-04-06 
11:39:50 UTC (rev 26560)
> +++ trunk/freenet/src/freenet/pluginmanager/PluginTalker.java 2009-04-06 
14:39:09 UTC (rev 26561)
> @@ -61,8 +61,12 @@
>  
>                               try {
>                                       plugin.handle(replysender, plugparams, 
> data2, access);
> +                             } catch (ThreadDeath td) {
> +                                     throw td;  // Fatal, thread is stop()'ed
> +                             } catch (VirtualMachineError vme) {
> +                                     throw vme; // OOM is included here

Not sure why this is useful? It's being run by an executor...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20090407/29dfac37/attachment.pgp>

Reply via email to