-
Notifications
You must be signed in to change notification settings - Fork 225
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
Add support for OTP-22 #212
Conversation
I'll have a look into the failing tests, most of them seem to relate to an issue with copied binaries. |
Actually, I see those exact same panics on master, and they have been there forever, so the issue was not introduced in this PR. Are those intentionally being ignored? I'll have a look at the failing resource cleanup test. |
Apparently we have to yield explicitly after triggering the GC to actually see all resources being released on OTP-22.
Just for future reference, I haven't bisected it, but I think the responsible merge is this one: erlang/otp@bc3de71, a fix for bug https://bugs.erlang.org/browse/ERL-863. In particular commit erlang/otp@7a0a52a, which changes how resource destructors are scheduled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nif_2_14, nif_2_15]; | ||
version_opts(Ver) -> | ||
io:format( | ||
"This OTP release uses the unsupported Erlang NIF version ~p.\n\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/the/an
This OTP release uses an unsupported...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, the message contains the version, so it reads This OTP release uses the unsupported Erlang NIF version 2.15
;)
end ++ | ||
case proplists:get_bool(nif_2_15, Opts) of | ||
true -> [ | ||
{"ErlNifTermType", "enif_term_type", "env: *mut ErlNifEnv, term: *const ERL_NIF_TERM"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nice!
Thanks! |
Fixes #211.