https://bugs.kde.org/show_bug.cgi?id=444055

Jonathan Verner <jonathan.ver...@matfyz.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/kdev
                   |                            |elop/kdev-python/-/commit/b
                   |                            |9dbd1fb37e34daacf396d2bfdb6
                   |                            |85527e8ecdfe
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #2 from Jonathan Verner <jonathan.ver...@matfyz.cz> ---
Git commit b9dbd1fb37e34daacf396d2bfdb685527e8ecdfe by Jonathan L. Verner.
Committed on 15/11/2021 at 14:40.
Pushed by brauch into branch 'master'.

Lock the DUChain when retrieving the declaration for a StructureType

The call to `KDevelop::IdentifiedType::declaration` requires the DUChain
to be at least read locked, since it calls
`KDevelop::DUChain::chainForIndex`,
which is documented to require a read lock on the DUChain

The commit also removes a (slightly) related misdocumentation of
`Helper::resolveAliasDeclaration`, which claimed to need a read
lock while doing the locking itself.

M  +1    -0    duchain/expressionvisitor.cpp
M  +0    -1    duchain/helpers.h

https://invent.kde.org/kdevelop/kdev-python/-/commit/b9dbd1fb37e34daacf396d2bfdb685527e8ecdfe

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to