Skip to content

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

Merged
enebo merged 3 commits intojruby:masterfrom
byteit101:winio
Aug 2, 2019
Merged

MRI compatibility with IO::sysopen for serial ports on windows#5809
enebo merged 3 commits intojruby:masterfrom
byteit101:winio

Conversation

@byteit101
Copy link
Member

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
Member

@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 9.2.8.0 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants