From: mh Date: Thu, 7 Feb 2002 10:11:50 +0000 (+0000) Subject: let's see what happens in terms of memory usage/GC'ing if we comment out the finalize... X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=35f23ad7715f36e8d6f1f37fce83e0710cfe4b95;p=mir.git let's see what happens in terms of memory usage/GC'ing if we comment out the finalize method. --- diff --git a/source/mir/entity/Entity.java b/source/mir/entity/Entity.java index f0d165b8..9b341b49 100755 --- a/source/mir/entity/Entity.java +++ b/source/mir/entity/Entity.java @@ -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