Bug 281102 - Allow many Java proxies per XPCOM object. r=darin
git-svn-id: svn://10.0.0.236/trunk@169791 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -46,7 +46,8 @@ public class Foo implements IFoo {
|
||||
{
|
||||
mID = aID;
|
||||
++gCount;
|
||||
System.out.println("init: " + mID + " (" + this.hashCode() + "), " +
|
||||
System.out.println("init: " + mID + " (" +
|
||||
Integer.toHexString(this.hashCode()) + "), " +
|
||||
gCount +" total");
|
||||
}
|
||||
|
||||
@@ -65,7 +66,8 @@ public class Foo implements IFoo {
|
||||
protected void finalize() throws Throwable
|
||||
{
|
||||
--gCount;
|
||||
System.out.println("destruct: " + mID + " (" + this.hashCode() + "), " +
|
||||
System.out.println("destruct: " + mID + " (" +
|
||||
Integer.toHexString(this.hashCode()) + "), " +
|
||||
gCount +" remain");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user