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

Why is layout_helper_is_objArray using _lh_array_tag_type_value, not _lh_array_tag_obj_value?

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None

      Description

      According the this code:

        static bool layout_helper_is_objArray(jint lh) {
          // _lh_array_tag_obj_value == (lh >> _lh_array_tag_shift);
          return (jint)lh < (jint)(_lh_array_tag_type_value << _lh_array_tag_shift);
        }

      comment, the implementation should use _lh_array_tag_obj_value, not _lh_array_tag_type_value

      Is the comment or code wrong?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gziemski Gerard Ziemski
                Reporter:
                gziemski Gerard Ziemski
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: