-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
trimming: fix-up support for Core._apply_iterate
#60062
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
base: master
Are you sure you want to change the base?
Conversation
We only support a few built-in versions of this call (due to JuliaLang#57830), but those should at least be working now with this small tweak. This required a fix-up for built-in functions to be included in the method table for `--trim`'d executables, so that we can dynamically dispatch to them, as the verifier expects.
58cb358 to
94c9252
Compare
| jl_value_t *params[2]; | ||
| params[0] = dt->name->wrapper; | ||
| params[1] = jl_tparam0(jl_anytuple_type); | ||
| jl_datatype_t *tt = (jl_datatype_t*)jl_apply_tuple_type_v(params, 2); |
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.
Needs gc root for tt
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.
GC is disabled just a few lines above this, but sure thing
| end | ||
| # TODO: check for calls to Base.atexit? | ||
| elseif isexpr(stmt, :call) | ||
| error = "unresolved call" |
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 makes things less parallel structured here (normally the function sets the error message, then uses continue to skip it, instead of attempting to catch every possible else clause)
We only support a few built-in versions of this call (due to #57830), but those should at least be working now with this small tweak.
Includes a fix-up for built-in functions to be included in the method table for
--trim'd executables, so that we can dynamically dispatch to them as the verifier expects.