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

Francesco Nigro updated ARTEMIS-3618:
-------------------------------------
    Description: 
Currently {{ClientConsumerImpl}}, responsible of calling JMS 
{{MessageListener::onMessage}}, is installing/restoring the listener thread's 
context ClassLoader by using a secured action regardless any security manager 
is installed.
This secured action (using {{AccessController::doPrivileged}}) is very 
heavyweight and can often be as costy as the user/application code handling the 
received message (see https://bugs.openjdk.java.net/browse/JDK-8062162 for more 
info)

> Artemis CORE client can skip a secured action on MessageListener's hot path
> ---------------------------------------------------------------------------
>
>                 Key: ARTEMIS-3618
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3618
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Francesco Nigro
>            Assignee: Francesco Nigro
>            Priority: Major
>
> Currently {{ClientConsumerImpl}}, responsible of calling JMS 
> {{MessageListener::onMessage}}, is installing/restoring the listener thread's 
> context ClassLoader by using a secured action regardless any security manager 
> is installed.
> This secured action (using {{AccessController::doPrivileged}}) is very 
> heavyweight and can often be as costy as the user/application code handling 
> the received message (see https://bugs.openjdk.java.net/browse/JDK-8062162 
> for more info)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to