Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8255525

[lworld] Single bit check should be used for inline type check

XMLWordPrintable

      Currently, the inline type check needs to check multiple bits in the mark word:

        bool is_inline_type() const {
          return (mask_bits(value(), inline_type_mask_in_place) == inline_type_pattern);
        }

      which translates to an add + cmp. A single bit check could be translated to a test instruction.

            dsimms David Simms
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: