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?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P4
    • 10
    • 9
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: