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

Vladimir Rodionov commented on HBASE-11898:
-------------------------------------------

The additional observed overhead is explained here:
https://bugs.openjdk.java.net/browse/JDK-6642881?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel
Class.getClassLoader() is expensive op because of JNI nature. 
CoprocessorHost.Environment
{code}
    @Override
    public ClassLoader getClassLoader() {
      return impl.getClass().getClassLoader();
    }
{code}
does not do any attempts to cache class loader instance.

> CoprocessorHost.Environment should cache class loader instance
> --------------------------------------------------------------
>
>                 Key: HBASE-11898
>                 URL: https://issues.apache.org/jira/browse/HBASE-11898
>             Project: HBase
>          Issue Type: Bug
>          Components: Coprocessors
>    Affects Versions: 0.98.6
>            Reporter: Vladimir Rodionov
>            Assignee: Vladimir Rodionov
>             Fix For: 0.98.7
>
>
> HBASE-9941 fix causes additional overhead... 
> It looks like for every invocation it does a getClassLoader call.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to