Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce ScopedFizzleBlockShutdownTasks
This allows PostTaskAndReplyRelay and BindPostTaskTrampoline to signal that tasks posted to delete a task's reply can be dropped if posted after shutdown, even if the originating sequence is BLOCK_SHUTDOWN. This can happen if a BLOCK_SHUTDOWN sequence posts a task to the main thread and that task doesn't get run during shutdown. In that case, the thread pool would be shutdown and the main thread's task queue deleted. When this happens, any task that has a reply would then trigger a task to be posted to the originating sequence (BLOCK_SHUTDOWN) to destroy the reply, but posting a BLOCK_SHUTDOWN task after shutdown is invalid and triggers a DCHECK. Bug: 1386236,1375270 Change-Id: I940a062f75cf4defc2c3f3ce0f85fc94de18c211 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4054884 Reviewed-by: Gabriel Charette <gab@chromium.org> Commit-Queue: Anthony Vallée-Dubois <anthonyvd@chromium.org> Cr-Commit-Position: refs/heads/main@{#1084519}
- Loading branch information
Anthony Vallee-Dubois
authored and
Chromium LUCI CQ
committed
Dec 16, 2022
1 parent
6b6d234
commit 60885b4
Showing
14 changed files
with
210 additions
and
13 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
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
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
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
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
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
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
Oops, something went wrong.