commit | 736b413cfbb7f1cc5f380e80b710e2a47ec1284c | [log] [tgz] |
---|---|---|
author | Bence Béky <bnc@chromium.org> | Tue Oct 31 14:11:33 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Oct 31 14:11:33 2017 |
tree | 52e400db121b20adfcb5258b367c218244d85db0 | |
parent | 32ad80b5a42847ca4580201ec596c01c19b20246 [diff] |
Remove lazy deletion of WeakPtrs in Http2PushPromiseIndex. SpdySession closes all active streams before destruction, as documented by DCHECK(active_streams_.empty()) in DcheckDraining() which is called in the destructor. This guarantees that UnclaimedPushedStreamContainer will be empty by this time (because every entry in that container must be an active stream), also that there will never be invalidated weak pointers in Http2PushPromiseIndex (because every entry in that container must also be in unclaimed_pushed_streams_ of the corresponding SpdySession). Therefore lazy deletion in Http2PushPromiseIndex never happens. Bug: 554220 Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: I4bb8c094af8212adcf39e8731698b562f184453e Reviewed-on: https://chromium-review.googlesource.com/744506 Reviewed-by: Helen Li <xunjieli@chromium.org> Commit-Queue: Bence Béky <bnc@chromium.org> Cr-Commit-Position: refs/heads/master@{#512822}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .