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/744506Reviewed-by:Helen Li <xunjieli@chromium.org> Commit-Queue: Bence Béky <bnc@chromium.org> Cr-Commit-Position: refs/heads/master@{#512822}
Showing
Please register or sign in to comment