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

Node indices should be treated as unsigned integers

    Details

      Description

      Node::_idx is declared as node_idx_t (unsigned int) but at several places we cast it to int. For example, in escape.cpp:

      uint ni = n->_idx;
      [...]
      const TypeOopPtr* tinst = t->cast_to_instance_id(ni);

      with TypeOopPtr::cast_to_instance_id(int instance_id). This should be fixed to use unsigned int consistently.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                thartmann Tobias Hartmann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: