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

Change comment in verificationType.hpp to refer to _sym

XMLWordPrintable

    • b19

      https://github.com/openjdk/jdk/blob/26efff758684b9c5615fb3b087538d713e6eca10/src/hotspot/share/classfile/verificationType.hpp#L50-L61C10

      The comment mentions _handle, but there's no such field in this class

      class VerificationType {
        private:
          // Least significant bits of _handle are always 0, so we use these as
          // the indicator that the _handle is valid. Otherwise, the _data field
          // contains encoded data (as specified below). Should the VM change
          // and the lower bits on oops aren't 0, the assert in the constructor
          // will catch this and we'll have to add a descriminator tag to this
          // structure.
          union {
            Symbol* _sym;
            uintptr_t _data;
          } _u;

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: