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

Comments

Projects
None yet
1 participant
@headius
Copy link
Member

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

This comment has been minimized.

Copy link
Member Author

commented Mar 29, 2015

Tagging @subbuss and @enebo.

headius added a commit that referenced this issue Mar 29, 2015

@subbuss subbuss closed this in dbffda3 Mar 29, 2015

@headius

This comment has been minimized.

Copy link
Member Author

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
You can’t perform that action at this time.