db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r679624 - /db/derby/docs/trunk/src/devguide/cdevbabejgjd.dita
Date Fri, 25 Jul 2008 00:11:01 GMT
Author: kmarsden
Date: Thu Jul 24 17:11:01 2008
New Revision: 679624

URL: http://svn.apache.org/viewvc?rev=679624&view=rev
Log:
DERBY-3745 Derby can leak classloaders in an app server environment
Change to add getClassLoader and setContextClassLoader to optional permissions


Modified:
    db/derby/docs/trunk/src/devguide/cdevbabejgjd.dita

Modified: db/derby/docs/trunk/src/devguide/cdevbabejgjd.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/devguide/cdevbabejgjd.dita?rev=679624&r1=679623&r2=679624&view=diff
==============================================================================
--- db/derby/docs/trunk/src/devguide/cdevbabejgjd.dita (original)
+++ db/derby/docs/trunk/src/devguide/cdevbabejgjd.dita Thu Jul 24 17:11:01 2008
@@ -91,6 +91,12 @@
 procedure. For more information, see the section which describes this procedure
 in <cite><ph conref="../conrefs.dita#pub/citref"></ph></cite>. </dd>
 </dlentry><dlentry>
+<dt>permission java.lang.RuntimePermission "setContextClassLoader"</dt>
+<dd>Allows <ph conref="../conrefs.dita#prod/productshortname"></ph> to
set the context class loader for long running threads to null to avoid potential for class
loader leaks in application server environments when the application server starts <ph
conref="../conrefs.dita#prod/productshortname"></ph> in a custom class loader. </dd>
+</dlentry><dlentry>
+<dt>permission java.lang.RuntimePermission "getClassLoader"</dt>
+<dd> This permission is also needed when setting the context class loader to avoid
class loader leaks. The class loader for the parent is saved and set to null before creation
of the thread and restored afterwards. </dd>
+</dlentry><dlentry>
 <dt>permission javax.management.MBeanServerPermission "createMBeanServer";</dt>
 <dd>Allows Derby to create an MBean server. If the JVM running Derby supports
 the platform MBean server, Derby will automatically try to create such a



Mime
View raw message