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

Uninitialized klassVtable::_verify_count field

XMLWordPrintable

    • b02

      SonarCloud reports an uninitialized field in `klassVtable::_verify_count`.

      ```
      class klassVtable {
      #ifndef PRODUCT
        int _verify_count; // to make verify faster
      #endif
      ```

      There is at least one use that touches the uninitialized value:

      ```
      #ifndef PRODUCT
        // avoid redundant verifies
        if (!forced && _verify_count == Universe::verify_count()) return;
        _verify_count = Universe::verify_count();
      #endif
      ```

            easlan Elif Aslan
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: