Skip to content

Remove Class#new from backtrace#9396

Merged
headius merged 1 commit into
masterfrom
headius-patch-1
May 2, 2026
Merged

Remove Class#new from backtrace#9396
headius merged 1 commit into
masterfrom
headius-patch-1

Conversation

@headius

@headius headius commented Apr 24, 2026

Copy link
Copy Markdown
Member

CRuby in 4.0 optimized Class#new which removes it from the backtrace. We have had the same optimization for many years but until JIT the frame would remain in the backtrace.

Fixes #9395.

CRuby in 4.0 optimized Class#new which removes it from the backtrace. We have had the same optimization for many years but until JIT the frame would remain in the backtrace.

Fixes #9395.
@headius headius added this to the JRuby 10.1.1.0 milestone Apr 24, 2026
@headius
headius merged commit 4143ed8 into master May 2, 2026
218 checks passed
@headius
headius deleted the headius-patch-1 branch May 2, 2026 19:58
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.

Difference in what caller returns in JRuby 10.1 and Ruby 4.0

1 participant