qmljs: restructure duchain locking to prevent deadlocks

Review Request #128762 - Created Aug. 25, 2016 and discarded

Information
Sven Brauch
kdevelop
367825
Reviewers
kdevelop
kfunk

We must not hold a duchain lock when contextOfFile() is called. That
might try to add something to the background parser queue, which locks
the background parser mutex; then both locks are held, which causes
deadlocks.

Opened some test project, no crashes, no freezes, and the (I think) reason for the freeze is gone.

Issues

  • 0
  • 16
  • 2
  • 18
Description From Last Updated
Kevin Funk
Sven Brauch
Milian Wolff
Sven Brauch
Sven Brauch
Milian Wolff
David Nolden
Sven Brauch
Kevin Funk
Sven Brauch
Review request changed

Status: Discarded

Change Summary:

Bug which this fix was targeting was fixed differently in the meantime.

Loading...