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

Uninitialized klassVtable::_verify_count field

    XMLWordPrintable

Details

    • b02

    Description

      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
      ```

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: