Skip to content

remove_instance_variable: Handle running out of shapes#8811

Merged
byroot merged 1 commit intoruby:masterfrom
Shopify:out-of-shape-remove-ivar
Nov 1, 2023
Merged

remove_instance_variable: Handle running out of shapes#8811
byroot merged 1 commit intoruby:masterfrom
Shopify:out-of-shape-remove-ivar

Conversation

@byroot
Copy link
Copy Markdown
Member

@byroot byroot commented Nov 1, 2023

remove_shape_recursive wasn't considering that if we run out of shapes, it might have to transition to SHAPE_TOO_COMPLEX.

When this happens, we now return with an error and the caller initiates the evacuation.

@casperisfine casperisfine force-pushed the out-of-shape-remove-ivar branch 2 times, most recently from e771a83 to f6b83cb Compare November 1, 2023 12:54
@byroot byroot enabled auto-merge (rebase) November 1, 2023 12:56
`remove_shape_recursive` wasn't considering that if we run out of
shapes, it might have to transition to SHAPE_TOO_COMPLEX.

When this happens, we now return with an error and the caller
initiates the evacuation.
auto-merge was automatically disabled November 1, 2023 13:09

Head branch was pushed to by a user without write access

@casperisfine casperisfine force-pushed the out-of-shape-remove-ivar branch from f6b83cb to 9b45727 Compare November 1, 2023 13:09
@byroot byroot enabled auto-merge (rebase) November 1, 2023 13:09
@byroot byroot merged commit b77148a into ruby:master Nov 1, 2023
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.

1 participant