Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[worker] Use private copy of mode data. JB#45312
When a dynamic mode is activated from the worker thread, a pointer to shared mode data is cached. If mode data gets invalidated due to the main thread reloading configuration files, the worker thread will dereference a stale pointer during mode deactivation. Cache clone of mode data instead of just holding pointer to shared data. Note that this only fixes logical error in expected behavior during config reload, there is still race condition in mode data duplication stage. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
3 changed files
with
6 additions
and
5 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