[infinispan-issues] [JBoss JIRA] (ISPN-6803) Precompute a bitset for each flag
Dan Berindei (JIRA)
issues at jboss.org
Mon Jun 27 13:48:00 EDT 2016
Dan Berindei created ISPN-6803:
----------------------------------
Summary: Precompute a bitset for each flag
Key: ISPN-6803
URL: https://issues.jboss.org/browse/ISPN-6803
Project: Infinispan
Issue Type: Task
Components: Core
Affects Versions: 9.0.0.Alpha2
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 9.0.0.Alpha3
Commands now use keep track of flags as "bitsets" that are actually {{long}}.
However, flag checks still refer to the {{Flag}} instances themselves, and because the ordinal is not a static field, it cannot be optimized away by HotSpot. We can avoid that by precomputing a bitset for each flag, and making it {{static final}}.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the infinispan-issues
mailing list