Skip to content

Fix a test that was flaky because of BlockHound #2572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 9, 2021

Conversation

dkhalanskyjb
Copy link
Collaborator

RunningThreadStackMergeTest.testStackMergeWithContext was failing:
https://teamcity.jetbrains.com/buildConfiguration/KotlinTools_KotlinxTrain_Kotlin140_LibrariesBranchesFor150Release/3329282?buildTab=tests&status=failed&expandedTest=4424896350783031328

kotlinx.coroutines.debug.internal.DebugProbesImpl.updateState
sometimes parks in order to acquire a lock, which leads BlockHound
to detect an illegal blocking call. Now, blocking calls inside
DebugProbesImpl are permitted. Though allowing updateState
would suffice, the other users of the lock seem safe, too, and are
allowed even when it doesn't make much sense to call them from
coroutines.

`kotlinx.coroutines.debug.internal.DebugProbesImpl.updateState`
sometimes parks in order to acquire a lock, which leads BlockHound
to detect an illegal blocking call. Now, blocking calls inside
`DebugProbesImpl` are permitted. Though allowing `updateState`
would suffice, the other users of the lock seem safe, too, and are
allowed even when it doesn't make much sense to call them from
coroutines.
@dkhalanskyjb dkhalanskyjb requested a review from qwwdfsad March 9, 2021 08:38
@qwwdfsad qwwdfsad merged commit defd0ec into develop Mar 9, 2021
@qwwdfsad qwwdfsad deleted the fix-blockhound-test branch March 9, 2021 09:02
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