summaryrefslogtreecommitdiff
path: root/jurt
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-11 13:27:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-11 13:27:26 +0100
commitb09964e97f65f7ca6e7dfaf33e34f2bbefe4e02b (patch)
tree7e2cd8ec08a883660eeee55d00f05c8b304ff93f /jurt
parentebd2d28c64146dd3c0686556f7ec344c8b92c624 (diff)
update documentation
Change-Id: Icd966a850b7c5e276e8b1d74566a4ea02e5b4a5c
Diffstat (limited to 'jurt')
-rw-r--r--jurt/com/sun/star/lib/util/AsynchronousFinalizer.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/jurt/com/sun/star/lib/util/AsynchronousFinalizer.java b/jurt/com/sun/star/lib/util/AsynchronousFinalizer.java
index 71743b25241b..908a53e8bc0c 100644
--- a/jurt/com/sun/star/lib/util/AsynchronousFinalizer.java
+++ b/jurt/com/sun/star/lib/util/AsynchronousFinalizer.java
@@ -24,15 +24,17 @@ import java.util.LinkedList;
* Helper class to asynchronously execute finalize methods.
*
* <p>Current JVMs seem not to be robust against long-running finalize methods,
- * in that such long-running finalize methods may lead to OutOfMemoryErrors. This
- * class mitigates the problem by asynchronously shifting the bodies of
+ * in that such long-running finalize methods may lead to OutOfMemoryErrors.
+ * This class mitigates the problem by asynchronously shifting the bodies of
* potentially long-running finalize methods into an extra thread. Classes that
* make use of this in their finalize methods are the proxies used in the
* intra-process JNI UNO bridge and the inter-process Java URP UNO bridge (where
* in both cases finalizers lead to synchronous UNO release calls).</p>
*
- * <p>If JVMs are getting more mature and should no longer have problems with
- * long-running finalize methods, this class could be removed again.</p>
+ * <p>Irrespective whether JVMs are getting more mature and should no longer
+ * have problems with long-running finalize methods, at least the JNI UNO bridge
+ * needs some way to stop finalization of proxies (to C++ objects) well before
+ * process exit, as provided by drain().</p>
*/
public final class AsynchronousFinalizer {
public AsynchronousFinalizer() {