DescriptionOilpan: handle delayed removal of PromiseTracker promises.
When a PromiseTracker is disabled as part of shutting down, it clears
its ID -> vector(PromiseData) map. However, once the unfulfilled
promises in that cleared map later on have their weak callbacks
invoked, we weren't prepared for the map being empty. Add the required
empty map check.
A further twist for Oilpan is that the ScopedPersistents held on the
PromiseData objects need to be cleared out eagerly to prevent v8
assuming that these objects will leak -- they won't, but will only be
cleared at the next Oilpan GC. Be more eager, and promptly clear out
the references.
R=haraken
BUG=414163
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181979
Patch Set 1 #
Total comments: 3
Patch Set 2 : Make promiseHash map lookup more reliable #Messages
Total messages: 17 (6 generated)
|