Skip to content

Fix event loop re-entrancy issue on merged thread policy#171

Merged
seungsoo47 merged 3 commits into
flutter-tizen:masterfrom
seungsoo47:dev.embedder.message_loop.260521
May 27, 2026
Merged

Fix event loop re-entrancy issue on merged thread policy#171
seungsoo47 merged 3 commits into
flutter-tizen:masterfrom
seungsoo47:dev.embedder.message_loop.260521

Conversation

@seungsoo47
Copy link
Copy Markdown
Contributor

This PR resolves an event loop re-entrancy issue under the merged UI/Platform thread policy by using a local variable to prevent memory corruption and task dispatch failures.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies TizenPlatformEventLoop::OnTaskExpired to move expired_tasks_ into a local vector under a mutex lock before executing the tasks. A review comment suggests explicitly clearing expired_tasks_ after the move to avoid leaving it in an unspecified state, which could trigger static analysis warnings or lead to undefined behavior when reused.

Comment thread flutter/shell/platform/tizen/tizen_event_loop.cc
Comment thread flutter/shell/platform/tizen/tizen_event_loop.cc Outdated
Comment thread flutter/shell/platform/tizen/tizen_event_loop.cc
@seungsoo47 seungsoo47 merged commit 96a0a3e into flutter-tizen:master May 27, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants