Skip to content

Save original callers callInfo in tracepoint#8692

Merged
enebo merged 1 commit intojruby:jruby-9.4from
enebo:fix_tracepoint_kwargs
Mar 12, 2025
Merged

Save original callers callInfo in tracepoint#8692
enebo merged 1 commit intojruby:jruby-9.4from
enebo:fix_tracepoint_kwargs

Conversation

@enebo
Copy link
Member

@enebo enebo commented Mar 12, 2025

tracepoint ends up dyncalling into a Ruby method and that method basically replaces the original callInfo for the method you will call right after calling your tracepoint ruby code. The fix is to just save it off until you are done and restore it before the traced method is called.

This should be generalized for all tracepoint events since the fix is in the main events method.

Fixes #8688

@enebo enebo added this to the JRuby 9.4.13.0 milestone Mar 12, 2025
@enebo enebo merged commit 67555c8 into jruby:jruby-9.4 Mar 12, 2025
96 checks passed
@enebo enebo deleted the fix_tracepoint_kwargs branch March 12, 2025 21:35
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