Skip to content

[debug] Reduce instrumentation footprint #943

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 2 commits into from
May 21, 2025
Merged

[debug] Reduce instrumentation footprint #943

merged 2 commits into from
May 21, 2025

Conversation

alexander-yakushev
Copy link
Member

@alexander-yakushev alexander-yakushev commented May 20, 2025

We care about instrumentation size because when instrumenting large functions, we run into the JVM method size limit (65KB). This PR adds two improvements:

  • Inject DebugSupport/doBreak instead of c.n.m.debug/break. Invoking a method requires less bytecode than calling a function. A method also has overrides for common primitives.
  • Generate a more compact code for constructing a locals map.

  • You've added tests to cover your change(s)
  • You've updated the README

Copy link
Member

@bbatsov bbatsov left a comment

Choose a reason for hiding this comment

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

The changes look good to me.

@alexander-yakushev alexander-yakushev merged commit 527ff7d into master May 21, 2025
18 checks passed
@alexander-yakushev alexander-yakushev deleted the debug branch May 21, 2025 08:57
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