DescriptionOilpan: LinkLoaderClient must be a GC mixin.
LinkLoader notifies its 'client' of load completion and other lifecycle
transitions. The assumption is that the client's lifetime is >= that
of the loader object, hence a bare pointer is all required.
This assumption doesn't hold when both LinkLoader and the client is on
the Oilpan heap, nor when LinkLoader is on the heap and the client is
stack allocated (cf. mock client object in LinkLoader unit tests).
Address the unsoundness by making LinkLoaderClient a GC mixin.
TBR=haraken@chromium.org
BUG=
Committed: https://crrev.com/6e6d363a6cf3afc0d4c791fb5689877540c1b222
Cr-Commit-Position: refs/heads/master@{#370654}
Patch Set 1 #
Messages
Total messages: 16 (7 generated)
|