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

ObjectValue::set_visited(bool) sets _visited false

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b11
    • CPU:
      generic

      Description

      The setter is error-prone. it unconditionally sets _visited false.
      it's useless because the member variable is initialized to false.

      file: debuginfo.hpp
      class ObjectValue: public ScopeValue {
      ...
        void set_visited(bool visited) { _visited = false; }
      }

      link: https://github.com/openjdk/jdk/blob/master/src/hotspot/share/code/debugInfo.hpp#L152

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              xliu Xin Liu
              Reporter:
              xliu Xin Liu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: