Skip to content

Conversation

@vtjnash
Copy link
Member

@vtjnash vtjnash commented Apr 29, 2025

Prevent infinite inference when dealing with LimitedAccuracy by declining to cache them. Presence in the cache triggers further compilation to resolve it, so removing infinite work from the cache also prevents infinite work at pre-compile/jit compile time.

Fix #57098
Fix #57873

@vtjnash vtjnash added compiler:inference Type inference backport 1.12 Change should be backported to release-1.12 labels Apr 29, 2025
Prevent infinite inference when dealing with LimitedAccuracy by
declining to cache them. Presence in the cache triggers further
compilation to resolve it, so removing infinite work from the cache also
prevents infinite work at pre-compile/jit compile time.

Fix #57098
Fix #57873
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label May 1, 2025
@vtjnash vtjnash merged commit 48bd673 into master May 2, 2025
5 of 8 checks passed
@vtjnash vtjnash deleted the jn/57873+57098 branch May 2, 2025 17:12
@KristofferC KristofferC mentioned this pull request May 5, 2025
53 tasks
KristofferC pushed a commit that referenced this pull request May 5, 2025
Prevent infinite inference when dealing with LimitedAccuracy by
declining to cache them. Presence in the cache triggers further
compilation to resolve it, so removing infinite work from the cache also
prevents infinite work at pre-compile/jit compile time.

Fix #57098
Fix #57873

(cherry picked from commit 48bd673)
@giordano giordano removed the merge me PR is reviewed. Merge when all tests are passing label May 5, 2025
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label May 9, 2025
charleskawczynski pushed a commit to charleskawczynski/julia that referenced this pull request May 12, 2025
)

Prevent infinite inference when dealing with LimitedAccuracy by
declining to cache them. Presence in the cache triggers further
compilation to resolve it, so removing infinite work from the cache also
prevents infinite work at pre-compile/jit compile time.

Fix JuliaLang#57098
Fix JuliaLang#57873
charleskawczynski pushed a commit to charleskawczynski/julia that referenced this pull request May 12, 2025
)

Prevent infinite inference when dealing with LimitedAccuracy by
declining to cache them. Presence in the cache triggers further
compilation to resolve it, so removing infinite work from the cache also
prevents infinite work at pre-compile/jit compile time.

Fix JuliaLang#57098
Fix JuliaLang#57873
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler:inference Type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simple recursive functions can hang in inference type inference hang on nightly since #56880

3 participants