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

Backports for Julia 1.11.0-rc2 #54925

Merged
merged 36 commits into from
Jul 26, 2024
Merged

Commits on Jun 25, 2024

  1. set VERSION to 1.11.0-rc1

    KristofferC committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    c3a21a2 View commit details
    Browse the repository at this point in the history
  2. LazyString in interpolated error messages in threadingconstructs (#54908

    )
    
    (cherry picked from commit 36a0da0)
    jishnub authored and KristofferC committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    30c4d49 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d728558 View commit details
    Browse the repository at this point in the history
  4. Revert "Revert "Cleanup MemoryRef tests (#54681)""

    This reverts commit 09f450f.
    KristofferC committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    6cf82f9 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Configuration menu
    Copy the full SHA
    b7af64f View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. inference: add missing MustAlias widening in _getfield_tfunc (#54996

    )
    
    Otherwise it may result in missing `⊑` method error in uses cases by
    external abstract interpreters using `MustAliasesLattice` like JET.
    aviatesk committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    74cead1 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Create jl_clear_coverage_data to dynamically reset coverage (#54358)

    There are some use-cases that would benefit from being able to
    reset the code coverage information during runtime. This creates
    the function `jl_clear_coverage_data` to reset the `coverageData`
    global.
    
    (cherry picked from commit 018770d)
    MilesCranmer authored and KristofferC committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    744b24d View commit details
    Browse the repository at this point in the history
  2. LAPACK: Avoid repr call in chkvalidparam (#54952)

    We were calling `repr` here to interpolate the character with the quotes
    into the error message. However, this is overkill for this application,
    and `repr` introduces dynamic dispatch into the call. This PR hard-codes
    the quotes into the string, which matches the pattern followed in the
    other error messages following `chkvalidparam`.
    
    (cherry picked from commit ca0b2a8)
    jishnub authored and KristofferC committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    b3b0416 View commit details
    Browse the repository at this point in the history
  3. fix concurrent module loading return value (#54898)

    Previously this might return `nothing` which would confuse the caller of
    `start_loading` which expects that to mean the Module didn't load. It is
    not entirely clear if this code ever worked, even single-threaded.
    
    Fix #54813
    
    (cherry picked from commit 0ef2bb6)
    vtjnash authored and KristofferC committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    4929aa2 View commit details
    Browse the repository at this point in the history
  4. Add fast method for copyto!(::Memory, ::Memory) (#55082)

    Previously, this method hit the slow generic AbstractArray fallback.
    
    Closes #55079
    
    This is an ad-hoc bandaid that really ought to be fixed by resolving
    #54581.
    
    (cherry picked from commit ec90012)
    jakobnissen authored and KristofferC committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    7e5214d View commit details
    Browse the repository at this point in the history
  5. Use triple quotes in TOML.print when string contains newline (#55084)

    closes #55083
    
    Shouldu this also check for `\r`?
    
    ---------
    
    Co-authored-by: Alex Arslan <ararslan@comcast.net>
    (cherry picked from commit e732706)
    palday authored and KristofferC committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    2314ea6 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. LinearAlgebra: use instead of == for tr tests in symmetric.jl (

    …#55143)
    
    After investigating #54090, I found that the issue was
    not caused by the effects of `checksquare`, but by the use of the
    `@simd` macro within `tr(::Matrix)`:
    
    https://github.com/JuliaLang/julia/blob/0945b9d7740855c82a09fed42fbf6bc561e02c77/stdlib/LinearAlgebra/src/dense.jl#L373-L380
    
    While simply removing the `@simd` macro was considered, the strict
    left-to-right summation without `@simd` otherwise is not necessarily
    more accurate, so I concluded that the problem lies in the test code,
    which tests the (strict) equality of two different `tr` execution
    results. I have modified the test code to use `≈` instead of `==`.
    
    - fixes #54090
    aviatesk committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    c84b516 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. Fix generic triangular solves with empty matrices (#54201)

    (cherry picked from commit 8945914)
    dkarrasch authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    b5c04a4 View commit details
    Browse the repository at this point in the history
  2. Update the aarch64 devdocs to reflect the current state of its support (

    #55141)
    
    The devdocs here reflect a time when aarch64 was much less well
    supported, it also reference Cudadrv which has been archived for years
    
    (cherry picked from commit 2efcfd9)
    gbaraldi authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    d9906cf View commit details
    Browse the repository at this point in the history
  3. don't throw EOFError from sleep (#54955)

    (cherry picked from commit b049f93)
    lgeissbauer-btig authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    2bc291a View commit details
    Browse the repository at this point in the history
  4. Make warn missed transformations pass optional (#54871)

    This makes the `WarnMissedTransformationsPass` compiler pass optional
    and off by default.
    
    (cherry picked from commit 1fc9fe1)
    lcw authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    f9b3b7f View commit details
    Browse the repository at this point in the history
  5. Compat for Base.@nospecializeinfer (#55178)

    This macro was added in v1.10 but was missing a compat notice.
    
    (cherry picked from commit 3290904)
    mikmoore authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    a02dbac View commit details
    Browse the repository at this point in the history
  6. compat notice for a[begin] indexing (#55197)

    `a[begin]` indexing was added by #35779 in Julia 1.6, so this feature
    needs a compat notice in the docstring.
    
    (cherry picked from commit 43df7fb)
    stevengj authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    93e086f View commit details
    Browse the repository at this point in the history
  7. Fix potential underrun with annotation merging (#54917)

    Fixes #54860, see the commit message for more details.
    
    The added test serves as a MWE of the original bug report.
    
    (cherry picked from commit e621c74)
    tecosaur authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    5ba19c1 View commit details
    Browse the repository at this point in the history
  8. correction to compat notice for a[begin] (#55209)

    Correction to #55197: `a[begin]` indexing was added in Julia 1.4
    (#33946), not in Julia 1.6 (which just changed the implementation in
    #35779). My bad.
    
    (cherry picked from commit 06467eb)
    stevengj authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    35f56b1 View commit details
    Browse the repository at this point in the history
  9. document mutable struct const fields (#55203)

    Introduced in #43305
    
    (cherry picked from commit 6b08e80)
    IanButterworth authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    91976c2 View commit details
    Browse the repository at this point in the history
  10. Bump libblastrampoline to v5.10.1 (#54791)

    This release fixes issues with complex valued returns from functions
    such as `cdotc` on Windows x64. See this discussion [0] for initial
    diagnosis, and this PR [1] for the relevant fixes.
    
    [0] JuliaLinearAlgebra/BLISBLAS.jl#15
    [1] JuliaLinearAlgebra/libblastrampoline#129
    
    (cherry picked from commit 3054c00)
    staticfloat authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    4e18948 View commit details
    Browse the repository at this point in the history
  11. SuiteSparse: Bump version (#54950)

    This should have no functional changes, however, it will affect the
    version of non-stdlib JLLs.
    
    I'd like to see if we can add this as a backport candidate to 1.11 since
    it doesn't change Julia functionality at all, but does allow some
    non-stdlib JLLs to be kept current. Otherwise at least the SPEX linear
    solvers and the ParU linear solvers will be missing multiple significant
    features until 1.12.
    
    (cherry picked from commit f3298ee)
    rayegun authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    73353dc View commit details
    Browse the repository at this point in the history
  12. Fix accidental early evaluation of imported using binding (#54956)

    In `using A.B`, we need to evaluate `A.B` to add the module to the using
    list. However, in `using A: B`, we do not care about the value of `A.B`,
    we only operate at the binding level. These two operations share a code
    path and the evaluation of `A.B` happens early and is unused on the
    `using A: B` path. I believe this was an unintentional oversight when
    the latter syntax was added. Fixes #54954.
    
    (cherry picked from commit 89e391b)
    Keno authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    54bd4b9 View commit details
    Browse the repository at this point in the history
  13. LinearAlgebra: LazyString in error messages for Diagonal/Bidiagonal (#…

    …55070)
    
    (cherry picked from commit ec013f1)
    jishnub authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    3387373 View commit details
    Browse the repository at this point in the history
  14. Raise an error when using include_dependency with non-existent file…

    … or directory (#53286)
    
    Replaces #52105
    Fixes #52063
    
    There is a question about whether the `ispath & uperm` check should be
    moved inside the `_track_dependencies[]` check (like it was in #52105),
    which would make it such that any errors are thrown only during
    precompilation.
    
    ---------
    
    Co-authored-by: Qian Long <longqian95@gmail.com>
    Co-authored-by: Jameson Nash <vtjnash@gmail.com>
    (cherry picked from commit 71fa11f)
    fatteneder authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    3f67b31 View commit details
    Browse the repository at this point in the history
  15. RFC: Make include_dependency(path; track_content=true) the default (#…

    …54965)
    
    By changing the default to `true` we make it easier to build relocatable
    packages from already existing ones when 1.11 lands.
    
    This keyword was just added during 1.11, so its not yet too late to
    change its default.
    
    (cherry picked from commit 6cf3a05)
    fatteneder authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    11bba3b View commit details
    Browse the repository at this point in the history
  16. Make ScopedValues public (#54574)

    (cherry picked from commit ce4f090)
    LilithHafner authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    c42fc03 View commit details
    Browse the repository at this point in the history
  17. finish implementation of upgradable stdlibs (#54739)

    This now allows the user to load any number of copies of a module, and
    uses the combination of the environment, explicitly loaded modules, and
    the requirements of the precompile caches to determine the meaning of a
    name and which files need to be loaded. Note however that package
    extensions continue to primarily only apply to the explicitly loaded
    modules, although they may get loaded incidentally as the dependency of
    another package, they won't get defined for every pair of combinations
    of triggering modules.
    
    Fixes #53983
    
    (cherry picked from commit a1a2ac6)
    vtjnash authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    19f838f View commit details
    Browse the repository at this point in the history
  18. #54739-related fixes for loading stdlibs (#54891)

    This fixes a couple unconventional issues people encountered and were
    able to report as bugs against #54739
    
    Note that due to several bugs in REPLExt itself
    (#54889,
    #54888), loading the extension
    may still crash julia in some circumstances, but that is now a Pkg bug,
    and no longer the fault of the loading code.
    
    (cherry picked from commit a7fa1e7)
    vtjnash authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    bddb4ed View commit details
    Browse the repository at this point in the history
  19. fix loading of repeated/concurrent modules (#55066)

    More followup to fix issues with require. There was an accidental
    variable reuse (build_id) that caused it to be unable to load cache
    files in many cases. There was also missing check for a dependency
    already being loaded, resulting in trying to load it twice. Finally, the
    start_loading code may drop the require_lock, but the surrounding code
    was not prepared for that. Now integrate the necessary checks into
    start_loading, instead of needing to duplicate them before and
    afterwards.
    
    Fixes #53983
    Fixes #54940
    Closes #55064
    
    (cherry picked from commit fba928d)
    vtjnash authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    d4f9808 View commit details
    Browse the repository at this point in the history
  20. Reinstate similar for AbstractQ for backward compatibility (#52694)

    Co-authored-by: Steven G. Johnson <stevenj@alum.mit.edu>
    (cherry picked from commit 7ec60b4)
    jishnub authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    66ffcea View commit details
    Browse the repository at this point in the history
  21. bump Pkg to latest v1.11

    KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    6844898 View commit details
    Browse the repository at this point in the history
  22. Make Core.TypeofUnion use the type method table (#55188)

    Ensures that adding or examining the methods of Type{Union{}} in the
    method table returns the correct results.
    
    Fixes #55187
    
    (cherry picked from commit d68befd)
    vtjnash authored and KristofferC committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    b39fd85 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    f51eeca View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. Configuration menu
    Copy the full SHA
    c2dcb7e View commit details
    Browse the repository at this point in the history