Skip to content
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

Refactor re-calculation of stackmap frames #1449

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marchof
Copy link
Member

@marchof marchof commented May 15, 2023

  • Try to make code more readable by adding a utility class to track types and variable positions on locals
  • Re-use locals array to avoid object creations

While trying to understand the new code in #893 I was thinking how to refactor the code to make it more comprehensible (at least for me).

@Godin Please feel free to reject this proposal if you don't think it helps.

* Try to make code more readable by adding a utility class to track
types and variable positions on locals
* Re-use locals array to avoid object creations
@marchof marchof requested a review from Godin May 15, 2023 21:30

private final Locals newLocals = new Locals();

private static class Locals {
Copy link
Member Author

Choose a reason for hiding this comment

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

Make this class package private and add unit tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant