You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by "Pepijn Noltes (JIRA)" <ji...@apache.org> on 2017/02/20 14:58:44 UTC

[jira] [Assigned] (CELIX-400) Private libaries are loaded two times

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

Pepijn Noltes reassigned CELIX-400:
-----------------------------------

    Assignee: Pepijn Noltes

> Private libaries are loaded two times
> -------------------------------------
>
>                 Key: CELIX-400
>                 URL: https://issues.apache.org/jira/browse/CELIX-400
>             Project: Celix
>          Issue Type: Bug
>            Reporter: Pepijn Noltes
>            Assignee: Pepijn Noltes
>            Priority: Minor
>
> When creating a bundle, in most cases, the first private library (in the Private-Library manifest statement) is the activator. 
> Typically the activator library, if needed, loads all the required private libraries as dependencies. This works because the activator library is created with a $ORIGIN rpath (or @loader_path for OSX). 
> At the moment all private library are stated in the Private-Library statement even if they are already loaded as result of loading the activator bundle. Generally this is not a problem and should not result in in extra use of memory, but if this is combined with shared libraries which use .init or  __attribute__((constructor)) mechanismes this can have some undesired side effect. 
> This is currently the case when using Cpputest. This could be fixed by default not adding all private libraries to the Private-Library manifest statement, e.g. make it an opt-in option



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)