-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure QuicChromiumPacketWriter isn't still tracked when deleted. (#4691
) Attempt to address increased crashes in the QuicChromiumPacketWriter destructor. The QuicChromiumPacketWriter destructor crashes seem to indicate that there is a double free. The destructor is called from both the QuicConnection destructor and during QuicConnection::MigratePath. A double free appears to only be possible after MigratePath is called with the same writer as currently used, but on a connection that is not connected. The increase possibly means a race between a connection teardown and migration was made more likely to occur as a result of recent performance improvements. This adds a check and pointer reset that should avoid having a stale QuicChromiumPacketWriter pointer in the QuicConnection. This also moves the WeakPtr instantiation that detects object destruction closer to the evaluation. b/388316262 b/388616504
- Loading branch information
Showing
2 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters