Author: j16sdiz
Date: 2008-05-05 13:59:31 +0000 (Mon, 05 May 2008)
New Revision: 19765

Modified:
   trunk/freenet/src/freenet/client/FECCodec.java
   trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java
Log:
oomhook: apply the hook


Modified: trunk/freenet/src/freenet/client/FECCodec.java
===================================================================
--- trunk/freenet/src/freenet/client/FECCodec.java      2008-05-05 13:41:57 UTC 
(rev 19764)
+++ trunk/freenet/src/freenet/client/FECCodec.java      2008-05-05 13:59:31 UTC 
(rev 19765)
@@ -14,6 +14,7 @@
 import freenet.node.PrioRunnable;
 import freenet.support.Executor;
 import freenet.support.Logger;
+import freenet.support.OOMHandler;
 import freenet.support.OOMHook;
 import freenet.support.api.Bucket;
 import freenet.support.api.BucketFactory;
@@ -42,6 +43,8 @@
                this.executor = executor;
                this.k = k;
                this.n = n;
+               
+               OOMHandler.addOOMHook(this);
        }

        /**

Modified: trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java    
2008-05-05 13:41:57 UTC (rev 19764)
+++ trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java    
2008-05-05 13:59:31 UTC (rev 19765)
@@ -698,7 +698,7 @@
                        HashMap hm = (HashMap) (target.get(before));
                        if(hm == null) {
                                hm = new HashMap();
-                               target.put(before, hm);
+                               target.put(before.intern(), hm);
                        }
                        add(e, after, hm);
                }


Reply via email to