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

MRI compatibility with IO::sysopen for serial ports on windows #5809

merged 3 commits into from
Aug 2, 2019


Copy link

These changes make JRuby be compatible with MRI's API's and behaviors on Windows serial ports.

Fileno is now real in most cases, but lazily generated in most cases to avoid sucking up 2x the number of file resources.

I put the WinC interface in FilenoUtils arbitrarily, I wasn't sure the best place to put it

…handle instead of fake handles.

Lazily create to avoid taking too many resources.
Copy link

@headius headius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok but need to ensure this falls back to old behavior gracefully when native support is disabled (-Xnative.enabled=false or JVM -Djruby.native.enabled=false).

@headius headius added this to the JRuby milestone Aug 2, 2019
@enebo enebo merged commit 7b6946c into jruby:master Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants