You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ch...@apache.org on 2008/08/05 20:33:54 UTC

svn commit: r682853 - /db/derby/docs/branches/10.4/src/devguide/tdevdvlp20349.dita

Author: chaase3
Date: Tue Aug  5 11:33:54 2008
New Revision: 682853

URL: http://svn.apache.org/viewvc?rev=682853&view=rev
Log:
DERBY-3612:  Developer's Guide needs correction on garbage collection

Merged DERBY-3612.diff to 10.4 docs branch from trunk revision 666226.

Modified:
    db/derby/docs/branches/10.4/src/devguide/tdevdvlp20349.dita

Modified: db/derby/docs/branches/10.4/src/devguide/tdevdvlp20349.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/branches/10.4/src/devguide/tdevdvlp20349.dita?rev=682853&r1=682852&r2=682853&view=diff
==============================================================================
--- db/derby/docs/branches/10.4/src/devguide/tdevdvlp20349.dita (original)
+++ db/derby/docs/branches/10.4/src/devguide/tdevdvlp20349.dita Tue Aug  5 11:33:54 2008
@@ -41,10 +41,12 @@
 the JVM needs to unload <i>org.apache.derby.jdbc.EmbeddedDriver</i>, so that
 it can reload it when it restarts <ph conref="../conrefs.dita#prod/productshortname"></ph>.
 (Loading the local driver starts <ph conref="../conrefs.dita#prod/productshortname"></ph>.) </p><p>You
-cannot explicitly request that the JVM unload a class, but you can ensure
-that the <i>EmbeddedDriver</i> class is unloaded by using a <codeph><i>System.gc()</i></codeph> to
-force it to garbage collect classes that are no longer needed. Running with <codeph><i>-nogc</i></codeph> or <codeph><i>-noclassgc</i></codeph> definitely <i
->prevents</i> the class from being unloaded and makes you unable to restart <ph
+cannot request that the JVM unload a specific class, but you can ask it to
+unload the <i>EmbeddedDriver</i> class by calling
+<codeph><i>System.gc()</i></codeph> to request it to garbage collect classes
+that are no longer needed. Running with the non-standard option 
+<codeph><i>-Xnoclassgc</i></codeph> definitely <i>prevents</i> the class from
+being unloaded and makes you unable to restart <ph
 conref="../conrefs.dita#prod/productshortname"></ph> in the same JVM. </p><p>It
 is also possible to shut down a single database instead of the entire <ph
 conref="../conrefs.dita#prod/productshortname"></ph> system. See <xref href="tdevdvlp40464.dita#tdevdvlp40464"></xref>.