[ 
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.

Reply via email to