[pull] master from ruby:master#934
Merged
pull[bot] merged 7 commits intoturkdevops:masterfrom Apr 15, 2026
Merged
Conversation
Adds method annotations so ZJIT can emit the fast CCall path for pure Float cfunc predicates and propagate return types for numeric builtin predicates. Float cfuncs (leaf, no_gc, elidable): nan?, finite? BoolExact infinite? Fixnum | NilClass Integer/Float builtins (BoolExact return type): Integer#zero?, even?, odd? Float#zero?, positive?, negative? All targeted C bodies are pure (isnan/isfinite/isinf, FIXNUM bit tests, FLOAT_ZERO_P) so the annotations are safe. Microbench with --zjit-call-threshold=2, tight while loop, 20M iters: Float#nan? 0.140s -> 0.110s (~21%) Float#finite? 0.145s -> 0.114s (~21%) Float#infinite? 0.129s -> 0.094s (~27%)
Reflects the BoolExact return type now inferred for Integer#zero? after the annotation added in the previous commit.
Add snapshot tests verifying correct HIR generation for each annotated method: - Float cfuncs (nan?, finite?, infinite?) emit CCall with BoolExact or Fixnum|NilClass return type - Integer builtins (zero?, even?, odd?) emit InvokeBuiltin with BoolExact return type - Float builtins (zero?, positive?, negative?) emit InvokeBuiltin with BoolExact return type Add benchmark yml files for Float and Integer predicates to the benchmark/ directory.
Bumps the github-actions group with 2 updates in the / directory: [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) and [taiki-e/install-action](https://github.com/taiki-e/install-action). Updates `lewagon/wait-on-check-action` from 1.6.1 to 1.7.0 - [Release notes](https://github.com/lewagon/wait-on-check-action/releases) - [Changelog](https://github.com/lewagon/wait-on-check-action/blob/master/CHANGELOG.md) - [Commits](lewagon/wait-on-check-action@78dd4dd...9312864) Updates `taiki-e/install-action` from 2.75.10 to 2.75.13 - [Release notes](https://github.com/taiki-e/install-action/releases) - [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md) - [Commits](taiki-e/install-action@85b24a6...eea29cf) --- updated-dependencies: - dependency-name: lewagon/wait-on-check-action dependency-version: 1.7.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: taiki-e/install-action dependency-version: 2.75.13 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
Fix: ruby/json#970 If the parsed exponent overflows a `int32_t` passing it to ryu is incorrect. We could pass it to `rb_cstr_to_dbl` but then Ruby will emit an annoying warning, instead we can coerce to `0.0` and `Inf`. ruby/json@20454ba274
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )