Skip to content

Conversation

@tripleCC
Copy link

As described in the associated YouTrack issue,there seems to be no need to restore this variable for suspend instance method.

for (referenceToSpill in referencesToSpillBySuspensionPointIndex[suspensionPointIndex]) {
generateSpillAndUnspill(methodNode, suspension, referenceToSpill, suspendLambdaParameters)
// skip restoring this
val isInstanceThisVariable = !isStatic(methodNode.access) && referenceToSpill.slot == 0
Copy link
Member

Choose a reason for hiding this comment

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

Please, move the variable into the generateSpillAndUnspill function. This way, you get rid of the parameter.

Copy link
Author

Choose a reason for hiding this comment

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

done

@ilmirus
Copy link
Member

ilmirus commented Jan 7, 2025

Thank you! I have updated the change and manually committed it to master.

@ilmirus ilmirus closed this Jan 7, 2025
@udalov
Copy link
Member

udalov commented Jan 7, 2025

f856d5c

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