]> rtime.felk.cvut.cz Git - orte.git/commit
JORTE: don't use finalizers in Java classes
authorMartin Vajnar <martin.vajnar@gmail.com>
Tue, 16 Jul 2013 09:48:07 +0000 (11:48 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 23 Sep 2013 09:06:26 +0000 (11:06 +0200)
commit5a479a52509fc020d1036d0c52050a94342a88d6
tree8956c351c5e370cbce7891fde3eadbe5ea042c87
parent0e04a572440e09854c99c41eaeeda1b6b9e87cbb
JORTE: don't use finalizers in Java classes

This replaces finalizers with explicit destroy() functions, because the
order in which objects with no reference in the VM are garbage-collected
is not guaranteed. This caused trouble with finalization of DomainApp
and Publisher (or Subscriber). If the DomainApp was destroyed before
the Publisher (or Subscriber) the Publisher's finalizer would have been
stuck (eventually leading to TimeoutException to be thrown).
orte/java/src/org/ocera/orte/DomainApp.java
orte/java/src/org/ocera/orte/DomainMgr.java
orte/java/src/org/ocera/orte/Publication.java
orte/java/src/org/ocera/orte/Subscription.java
orte/java/src/org/ocera/orte/examples/hello/Publisher.java
orte/java/src/org/ocera/orte/examples/hello/Subscriber.java
orte/java/src/org/ocera/orte/types/DomainProp.java
orte/libjorte/JORTEDomainPropDestroy.c