Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add ParseContext singleton helper #4466
Because no capability for parse-local state existed,
The result was fragile... a subtle symptom (#4416) was that after a buildfile was invalidated in the daemon, the singleton targets it contained would not be recreated, causing them to go missing completely. A more obvious symptom was that
Add support for parse-level state via a new method
As an orthogonal change, move from using a lock to guard the collection of created objects to using a thread-local collection.
Daemon runs that involve intermediate/'scoped'/'provided' targets that have been invalidated will succeed. Fixes #4416