Skip to content
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

Fix some inference problems in logging #38292

Merged
merged 1 commit into from
Nov 6, 2020
Merged

Fix some inference problems in logging #38292

merged 1 commit into from
Nov 6, 2020

Conversation

timholy
Copy link
Member

@timholy timholy commented Nov 3, 2020

Aside from the preferences system (xref #38285) and TOML parsing,
these trigger what appear to be the only remaining sources of vulnerability to
invalidation of Base.require among Julia's exported names,
which are the main names we can expect to be specialized by packages.

My main uncertainty is whether adding ::LogLevel is OK, CC @c42f.

EDIT: in case it's not clear, Base.require deserves special attention: if your goal is to slow down package loading, you could hardly do better than invalidate Base.require. Bonus points for invalidating it with multiple package dependencies, since it would need recompilation each time it gets invalidated before the next package in the sequence can load.

Aside from the preferences system (xref #38285) and TOML parsing,
these appear to trigger the only remaining sources of vulnerability to
invalidation of `Base.require` among Julia's *exported* names,
which are the main names we can expect to be specialized by packages.
@timholy timholy added the compiler:latency Compiler latency label Nov 3, 2020
@timholy timholy requested a review from c42f November 3, 2020 11:55
@timholy
Copy link
Member Author

timholy commented Nov 6, 2020

Since tests pass, let's give it a whirl; we can always back that part out if it's trouble.

@timholy timholy merged commit 01fe6ef into master Nov 6, 2020
@timholy timholy deleted the teh/infer_logging branch November 6, 2020 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:latency Compiler latency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant