DescriptionIn the new task model, use explicit dependencies on the type provider.
Previously, some of the tasks got the type provider from the context,
which meant we were at risk of invoking the task manager reentrantly
(which might have broken some task manager assumptions and potentially
degraded responsiveness). With this CL, all tasks that need the type
provider get it using an explicit input.
Assertions are added so that if we accidentally introduce future code
paths that invoke the task manager in a reentrant fashion, we will see
the problem during unit tests.
R=brianwilkerson@google.com, scheglov@google.com
Committed: https://code.google.com/p/dart/source/detail?r=45794
Patch Set 1 #Patch Set 2 : Reformat #
Total comments: 5
Patch Set 3 : Alternate location for isTaskRunning flag #
Total comments: 8
Messages
Total messages: 11 (1 generated)
|