Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-6803

Precompute a bitset for each flag

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 9.0.0.Alpha2
    • 9.0.0.Beta2
    • Core
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              dberinde@redhat.com Dan Berindei
              dberinde@redhat.com Dan Berindei
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: