let's see what happens in terms of memory usage/GC'ing if we comment out the finalize...
authormh <mh>
Thu, 7 Feb 2002 10:11:50 +0000 (10:11 +0000)
committermh <mh>
Thu, 7 Feb 2002 10:11:50 +0000 (10:11 +0000)
source/mir/entity/Entity.java

index f0d165b..9b341b4 100755 (executable)
@@ -171,8 +171,10 @@ public class Entity implements TemplateHashModel, TemplateModelRoot
     this.changed = true;
     if (isField(theProp))
       theValuesHash.put(theProp, theValue);
-    else
+    else {
+      System.err.println("Property not found: " + theProp+theValue);
       theLog.printWarning("Property not found: " + theProp+theValue);
+    }
 
   }
 
@@ -253,7 +255,7 @@ public class Entity implements TemplateHashModel, TemplateModelRoot
   /**
    * Gibt eine Instanz frei
    */
-  public void finalize () {
+  /*public void finalize () {
     instances--;
     Integer i = new Integer(instances);
     System.err.println("Removing abstract entity instance: "+i.toString());
@@ -262,7 +264,7 @@ public class Entity implements TemplateHashModel, TemplateModelRoot
     } catch (Throwable t) {
       System.err.println(t.toString());
     }
-  }
+  }*/
 
 
   // Now implements freemarkers TemplateHashModel