sandygao 2002/09/24 06:44:37
Modified: java/src/org/apache/xerces/dom CoreDocumentImpl.java
Log:
Temporarily comment out the finalize() method, because
1. It seems that finalizers are not guaranteed to be called, so the
functionality is not implemented.
2. It affects the performance greatly in multi-thread environment.
Revision Changes Path
1.32 +8 -3 xml-xerces/java/src/org/apache/xerces/dom/CoreDocumentImpl.java
Index: CoreDocumentImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/CoreDocumentImpl.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- CoreDocumentImpl.java 23 Sep 2002 16:44:42 -0000 1.31
+++ CoreDocumentImpl.java 24 Sep 2002 13:44:37 -0000 1.32
@@ -2274,7 +2274,12 @@
* which would affect all nodes and not just the ones that have a user
* data.
*/
- public void finalize() {
+ // Temporarily comment out this method, because
+ // 1. It seems that finalizers are not guaranteed to be called, so the
+ // functionality is not implemented.
+ // 2. It affects the performance greatly in multi-thread environment.
+ // -SG
+ /*public void finalize() {
if (userData == null) {
return;
}
@@ -2294,7 +2299,7 @@
}
}
}
- }
+ }*/
/**
* NON-DOM: copy configuration properties from the parsing configuration.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]