You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (Jira)" <ji...@apache.org> on 2022/06/30 22:06:00 UTC

[jira] [Commented] (CRYPTO-166) Library is reloaded multiple times

    [ https://issues.apache.org/jira/browse/CRYPTO-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17561195#comment-17561195 ] 

Sebb commented on CRYPTO-166:
-----------------------------

This applies to the OpenSslInfoNative.c module, which it turns out is only used by the Crypto main class.

However it would be better to load it just once.

> Library is reloaded multiple times
> ----------------------------------
>
>                 Key: CRYPTO-166
>                 URL: https://issues.apache.org/jira/browse/CRYPTO-166
>             Project: Commons Crypto
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>            Reporter: Sebb
>            Priority: Minor
>
> It looks like the JNI code keeps reloading the library, from which it then has to retrieve the symbols it needs.
> This is inefficient, and it means the handle reference count is increased unnecessarily.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)