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

C1: Uninitialized PhiResolver::_loop field

    XMLWordPrintable

Details

    • b07

    Backports

      Description

        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;
        ...
        }
        ```

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: