db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-1439) Investigate removing the antiGC thread in embedded Derby
Date Thu, 21 Oct 2010 12:36:17 GMT

     [ https://issues.apache.org/jira/browse/DERBY-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Knut Anders Hatlen updated DERBY-1439:

    Attachment: d1439.diff

Attaching a new patch that addresses the problem with the first patch. The patch makes the
following changes:

M       java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java

Remove the AntiGC class and the code that starts and stops the AntiGC thread.

M       java/engine/org/apache/derby/iapi/services/i18n/MessageService.java

Make setFinder() void since its return value is no longer used.

M       java/engine/org/apache/derby/impl/services/monitor/FileMonitor.java

Create a new daemon thread group if all the previously booted databases have been shut down
and the old thread group have been destroyed.

All the regression tests ran cleanly with the patch.

> Investigate removing the antiGC thread in embedded Derby
> --------------------------------------------------------
>                 Key: DERBY-1439
>                 URL: https://issues.apache.org/jira/browse/DERBY-1439
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services
>            Reporter: Daniel John Debrunner
>            Priority: Minor
>         Attachments: d1439.diff, patch1.diff
> The antiGC thread was originally created to avoid the DriverManager class being garbage
collected when no refrences existed to it and it had loaded the embedded JDBC driver (and
hence shutting down the engine). This was an issue with JDK 1.1. Since Derby does not support
jdk1.1 and garbage collection of classes is clearly defined, it is possible the thread serves
no useful purpose.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message