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

IR improperly masks errors in defined-guarded conditional #2776

Closed
headius opened this issue Mar 29, 2015 · 2 comments
Closed

IR improperly masks errors in defined-guarded conditional #2776

headius opened this issue Mar 29, 2015 · 2 comments

Comments

@headius
Copy link
Member

headius commented Mar 29, 2015

This code raises NotImplementedError running under the JIT, but completes successfully (incorrectly) under IR interpreter:

if defined?(Process::RLIMIT_AS)
  Process.rlimit # This should raise
end

I have not started examining the IR this is producing, nor why it works properly in JIT.

@headius headius added this to the JRuby 9.0.0.0 milestone Mar 29, 2015
@headius
Copy link
Member Author

headius commented Mar 29, 2015

Tagging @subbuss and @enebo.

@headius
Copy link
Member Author

headius commented Mar 29, 2015

@subbuss Very nice :-) I was going to circle back to this after today's audit, but yay for having it fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant