-
Notifications
You must be signed in to change notification settings - Fork 191
Add a tool to generate the native configuration #777
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
Conversation
* The generator relies on it.
* It is a pointer (represented as a NativePointer by NFI) on Darwin.
* It also seems not defined on Linux.
* Add Rubinius::Config#lookup for fetch value or nil. * The type of a struct field is optional for a FFI::Struct with config. * Define Process::RLIMIT_* constants only if they are available.
@chrisseaton Could you run |
Now that we have more control over the generation of these files, it could be valuable to make a map with ropes instead. We currently have to do a fair bit of work scanning byte arrays at startup. But we can handle that in a future PR. |
@nirvdrum Yes, we can do many more things :) This PR is about replacing the external process and making it easy to extend what we generate, but not yet extending it. |
* From the Fedora 26 Docker image in tool/docker/fedora.
.java
file (previously they were set to 0).Rubinius::Config[key]
raises a KeyError if key does not exist. UseRubinius::Config#lookup
if you want value-or-nil semantics.