DescriptionRemove default initializtion of BirthPlace in Tracked.
Previously, MessageLoop::PostTask set the BirthPlace of the Task object
(subclass of Tracked), which would decrement the counter for the
Location("NoFunctionName", "NeedToSetBirthPlace", -1) Birth, and replace
it with a more appropriate Location provided by the FROM_HERE argument.
With the MessageLoop restructuring in r82300, tracking of Births is moved
up from the Task object into the MessageLoop::PendingTask structure. The
side-effect is that the default birth is never decremented, and we double
count each task's creation.
This default Birth is effectively a count of "tasks that were created, but
not posted" without a stored reference to location, so removing it is
the simplest fix to the double counting.
BUG=none
TEST=about:tasks looks sane.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90290
Patch Set 1 #
Total comments: 1
Patch Set 2 : address Jim's comment. #Patch Set 3 : Fix unittests that were characterizing behavior. #Patch Set 4 : copyright fix #Messages
Total messages: 4 (0 generated)
|