Skip to content

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

2 participants