What will happen is that One thread will create context and store it in MAP. Others will create a new one but will return the first one and leak the newly created one.
New Revision: 1180335 URL: http://svn.apache.org/viewvc?rev=1180335&view=rev Log: Bug 51996 - JMS Initial Context leak newly created Context when Multiple Thread enter InitialContextFactory#lookupContext at the same time Modified: jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/InitialContextFactory.java jakarta/jmeter/trunk/xdocs/changes.xml
Good catch!
*** Bug 52154 has been marked as a duplicate of this bug. ***
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2587