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

ObjectValue::set_visited(bool) sets _visited false

XMLWordPrintable

    • b11
    • generic

      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

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

              Created:
              Updated:
              Resolved: