[infinispan-issues] [JBoss JIRA] (ISPN-2851) add log.info when using backported concurrent hash map
Galder Zamarreño (JIRA)
issues at jboss.org
Tue Jun 19 07:50:00 EDT 2018
[ https://issues.jboss.org/browse/ISPN-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Galder Zamarreño resolved ISPN-2851.
------------------------------------
Resolution: Out of Date
> add log.info when using backported concurrent hash map
> ------------------------------------------------------
>
> Key: ISPN-2851
> URL: https://issues.jboss.org/browse/ISPN-2851
> Project: Infinispan
> Issue Type: Enhancement
> Components: Core
> Affects Versions: 5.2.2.Final
> Reporter: Mathieu Lachance
> Assignee: Galder Zamarreño
> Priority: Minor
>
> it would be nice if there was a bit more logging information when using backported concurrent hash map since it is activation is not only based on the :
> Boolean.getBoolean("infinispan.unsafe.allow_jdk8_chm");
> property as we could think.
> static {
> boolean sunIncompatibleJvm;
> boolean jdk8;
> boolean allowExperimentalMap = Boolean.getBoolean("infinispan.unsafe.allow_jdk8_chm");
> try {
> Class.forName("com.sun.unsafe.Unsafe");
> sunIncompatibleJvm = false;
> } catch (ClassNotFoundException e) {
> sunIncompatibleJvm = true;
> }
>
> try {
> Class.forName("java.util.concurrent.atomic.LongAdder");
> jdk8 = true;
> } catch (ClassNotFoundException e) {
> jdk8 = false;
> }
> if (jdk8 || sunIncompatibleJvm || !allowExperimentalMap){
> MAP_CREATOR = new JdkConcurrentMapCreator();
> }
> else{
> MAP_CREATOR = new BackportedV8ConcurrentMapCreator();
> logger.info("using backported jdk8 concurrent hash map implementation");
> }
> }
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list