Remove unsafe access in dtor
Oilpan destruction order is non-deterministic, and it is unsafe to access other on-heap objects from a dtor. This CL removes such accesses, in favor of letting Oilpan clear out WeakMembers automatically. If threading issues or other crashes happen, the USING_PRE_FINALIZER macro should be used for cleanup instead. Bug: 1137555, 1137557, 1137588 Change-Id: I97fed30743f7000e296b94a29d02e2cfa5c034b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2468188 Commit-Queue: Thomas Guilbert <tguilbert@chromium.org> Commit-Queue: Klaus Weidner <klausw@chromium.org> Auto-Submit: Thomas Guilbert <tguilbert@chromium.org> Reviewed-by:Klaus Weidner <klausw@chromium.org> Cr-Commit-Position: refs/heads/master@{#816720}
Showing
Please register or sign in to comment