You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2011/01/30 16:04:43 UTC

[jira] Closed: (FELIX-2805) [Framework] Cache PackageAdmin.getBundle() result for system bundle classes

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

Richard S. Hall closed FELIX-2805.
----------------------------------

    Resolution: Fixed

Committed a patch.

> [Framework] Cache PackageAdmin.getBundle() result for system bundle classes
> ---------------------------------------------------------------------------
>
>                 Key: FELIX-2805
>                 URL: https://issues.apache.org/jira/browse/FELIX-2805
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-3.0.7
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-3.0.8
>
>
> The implementation of PackageAdmin.getBundle() tries to return the system bundle for classes coming from packages exported by the system bundle, although technically these classes come from the class path. To determine if a class comes from the system bundle, it must be loaded by the system bundle, which delegates to the parent class loader, and this is compared to the specified class to determine if they are indeed the same class. This can be costly given the search space of the parent class loader. We could introduce a weak hash map to maintain a cache of results to improve performance.

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