Skip to content
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

Add missing check for rb_block_call() #165

Merged
merged 1 commit into from
Jul 8, 2021

Conversation

eregon
Copy link
Member

@eregon eregon commented Jul 6, 2021

  • It used to be hardcoded since 0affbf9 but got removed in 23abf3d
  • This means that since that second commit, rb_iterate() was used unintentionally.

Before this fix, it would cause failures in TruffleRuby, since oracle/truffleruby@e7ddba7 (rb_iterate() is obsolete since 1.9 https://github.com/ruby/ruby/blob/master/doc/extension.rdoc#label-Control+Structure, https://bugs.ruby-lang.org/issues/18025)

It would be great to have a release with this fix soon to fix that, do you think that's possible @hsbt @tenderlove?

* It used to be hardcoded since 0affbf9
  but got removed in 23abf3d
* This means that since that second commit, rb_iterate() was used unintentionally.
@eregon
Copy link
Member Author

eregon commented Jul 7, 2021

FYI I'll workaround in TruffleRuby by always defining HAVE_RB_BLOCK_CALL (so existing racc releases work).

We should merge this and have a release so the obsolete rb_iterate() is no longer used, though (https://bugs.ruby-lang.org/issues/18025).

@eregon
Copy link
Member Author

eregon commented Jul 8, 2021

I'll merge this since it is an obvious fix.

@eregon eregon merged commit 8816ced into ruby:master Jul 8, 2021
graalvmbot pushed a commit to oracle/truffleruby that referenced this pull request Jul 9, 2021
graalvmbot pushed a commit to oracle/truffleruby that referenced this pull request Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant