Skip to content

Conversation

@lifengl
Copy link
Member

@lifengl lifengl commented May 25, 2022

IsMainThreadMaybeBlocked return true after the current main thread blocking JTF is completed.

This is a wrong behavior, and leads the method to return wrong value for spin-off tasks, and makes it less usable to detect performance issues.

@lifengl lifengl requested a review from AArnott May 25, 2022 20:12
@lifengl
Copy link
Member Author

lifengl commented May 25, 2022

@jialongcheng : thanks to report this issue.

@AArnott AArnott added this to the v17.3 milestone May 25, 2022
@AArnott AArnott added the bug label May 25, 2022
@AArnott AArnott changed the title Fix IsMainThreadMaybeBlocked to return wrong value after the main task completed Fix IsMainThreadMaybeBlocked to return false value after the main task completed May 25, 2022
@lifengl lifengl merged commit 2801f69 into main May 25, 2022
@lifengl lifengl deleted the dev/lifengl/finishedTask branch May 25, 2022 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants