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

C1: Uninitialized PhiResolver::_loop field

XMLWordPrintable

    • b07

        SonarCloud complains that `PhiResolver::_loop` field is not initialized after leaving the constructor.

        There is an assert in `PhiResolver::move`, which implies the default value should be `nullptr`:

        ```
        void PhiResolver::move(ResolveNode* src, ResolveNode* dest) {
        ...
            // cylce in graph detected
            assert(_loop == nullptr, "only one loop valid!");
            _loop = dest;
        ...
        }
        ```

              crakoczy Chad Rakoczy
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: