-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update KotlinCoroutineFilter for Kotlin 1.6 #1283
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
Update KotlinCoroutineFilter for Kotlin 1.6 #1283
Conversation
5b1d09c
to
86b594c
Compare
14493cb
to
8e01f01
Compare
&& Opcodes.POP == skipNonOpcodes(cursor.getNext()) | ||
.getOpcode()) { | ||
nextIs(Opcodes.POP); | ||
vars.put("COROUTINE_SUSPENDED", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not fully clear from the PR why this line is needed.
After discussing it, I suggest either adding a comment that this is a safe guard or refactoring the code, so you don't need it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leveretka ok, I did refactoring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above
b29d7a3
to
0ff3fd7
Compare
For the following
Example.kt
execution of
using Kotlin compiler version
1.5.32
(latest as of today in1.5
series) produceswhereas using Kotlin compiler version
1.6.0
producesCurrently the first one is filtered by
KotlinCoroutineFilter
, but not the second.And the diff between them
This relates to the following change in Kotlin compiler - JetBrains/kotlin@f4a1e27
Closes #1258