Skip to content

Allow replacement of jl_typeinf_func #31444

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

Merged
merged 1 commit into from
Mar 28, 2019
Merged

Allow replacement of jl_typeinf_func #31444

merged 1 commit into from
Mar 28, 2019

Conversation

timholy
Copy link
Member

@timholy timholy commented Mar 22, 2019

Fixes #31429. Chances are you don't want to invalidate the entire compile cache, so direct access via cglobal seems like the most sensible option. The jl_typeinf_world export doesn't seem strictly necessary, but I include it here for symmetry.

@vtjnash
Copy link
Member

vtjnash commented Mar 25, 2019

I think I'd like to keep the existing API, but I agree it should skip doing extra work if jl_typeinf_world was already set (it's a performance optimization for the build, so it makes sense not to do it when it costs performance instead)

@timholy timholy force-pushed the teh/replace_inference branch from d21736d to 7d7b2dd Compare March 26, 2019 10:33
@timholy
Copy link
Member Author

timholy commented Mar 26, 2019

Seems reasonable. Done.

@timholy timholy changed the title DLLEXPORT jl_typeinf_func Allow replacement of jl_typeinf_func Mar 26, 2019
@timholy timholy merged commit c0ebd97 into master Mar 28, 2019
@timholy timholy deleted the teh/replace_inference branch March 28, 2019 13:23
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.

2 participants