-
tzik authored
This CL adds DCHECKs to non-thread-safe base::RefCount to trace racy ref count manipulations. A ref counted object is considered to be bound to a sequence if the count is more than one. After this CL, ref count manipulations to a sequenced-bound one cause DCHECK failure. This CL also adds ScopedAllowCrossThreadRefCountAccess to opt out, and applies the opt-out as needed. BUG=688072 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2666423002 Cr-Original-Commit-Position: refs/heads/master@{#460773} Committed: https://chromium.googlesource.com/chromium/src/+/f9a212dec0fec22e21d7f66ad1aa9414ed1dc068 Review-Url: https://codereview.chromium.org/2666423002 Cr-Commit-Position: refs/heads/master@{#461235}
3f4231f9