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.8.4 #47488

Merged
merged 26 commits into from
Dec 16, 2022
Merged

Backports for Julia 1.8.4 #47488

merged 26 commits into from
Dec 16, 2022

Commits on Nov 15, 2022

  1. move src and dst to next buffer position (#47229)

    Co-authored-by: Gabriel Baraldi <[email protected]>
    (cherry picked from commit 9e1dac0)
    awfeequdng authored and DilumAluthge committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    1b5c405 View commit details
    Browse the repository at this point in the history
  2. CircleCI caching: allow ftime to be ceil(ftime_req) in Base.stale_cac…

    …hefile (#47433)
    
    * CircleCI caching: allow ftime to be ceil(ftime_req) in Base.stale_cachefile
    
    It appears that [caching functionalities](https://circleci.com/docs/caching/) provided by CircleCi, a leading CI/CD provider, can truncate timestamps to full seconds, resulting in re-compilations as below:
    ```
    Rejecting stale cache file /root/.julia/compiled/v1.8/ComponentArrays/cYHSD_3rQji.ji (mtime 1.6673960929277816e9) because file /root/.julia/packages/ComponentArrays/YyD7i/src/ComponentArrays.jl
    ```
    
    This PR relaxes the `is_stale` check to be robust against rounding-to-second timestamp mutations.
    
    I can provide a minimal CircleCI configuration file to reproduce if this is helpful.
    
    (cherry picked from commit bf92e83)
    nrontsis authored and DilumAluthge committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    9d86e4f View commit details
    Browse the repository at this point in the history
  3. Delete .github/workflows/rerun_failed.yml (#47460)

    (cherry picked from commit ebc97ba)
    DilumAluthge committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    90ee1b5 View commit details
    Browse the repository at this point in the history
  4. Removed attributes from arguments to gc_preserve_begin (#47482)

    LLVM adds the nonnull attribute on its own, which makes
    the verifier fail.
    
    Fixes #47245
    
    (cherry picked from commit bc39fd1)
    apaz-cli authored and DilumAluthge committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    b66e38c View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2022

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

Commits on Nov 22, 2022

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

Commits on Nov 28, 2022

  1. Probe and dlopen() the correct libstdc++ (#46976)

    * Probe if system libstdc++ is newer than ours
    
    If the system libstdc++ is detected to be newer, load it.
    Otherwise, load the one that we ship. This improves compatibility
    with external shared libraries that the user might have on their
    system.
    
    Fixes #34276
    
    Co-authored-by: Jameson Nash <[email protected]>
    Co-authored-by: Elliot Saba <[email protected]>
    
    * Addressed review comments.
    
    * Change error handling in wrapper functions
    
    Co-authored-by: Jameson Nash <[email protected]>
    
    * Call write_wrapper three times instead of snprintf
    
    Co-authored-by: Jameson Nash <[email protected]>
    
    * Apply suggestions from code review
    
    Co-authored-by: Jameson Nash <[email protected]>
    
    * Update cli/loader_lib.c
    
    Co-authored-by: Jameson Nash <[email protected]>
    
    * Reordered reading and waiting to avoid a deadlock.
    
    * Fixed obvious issues.
    
    * Only load libstdc++ preemptively on linux.
    
    * Update cli/loader_lib.c
    
    Co-authored-by: Jameson Nash <[email protected]>
    
    * Update cli/loader_lib.c
    
    Co-authored-by: Jameson Nash <[email protected]>
    
    * Specified path to bundled libstdc++ on the command line.
    
    * Removed whitespace.
    
    * Update cli/Makefile
    
    Co-authored-by: Jameson Nash <[email protected]>
    
    * Handled make install stringreplace.
    
    * Correctly quoted stringreplace.
    
    * Added -Wl,--enable-new-dtags to prevent DT_RPATH for transitive dependencies
    
    * Updated news entry.
    
    * Added comment about environment variable.
    
    * patched rpath for libgfortran and libLLVM.
    
    * Added explaination to Make.inc
    
    * Removed trailing space
    
    * Removed patchelf for libgfortran, now that BB has been fixed.
    
    * Fixed typos and comments
    
    Co-authored-by: Max Horn <[email protected]>
    
    Co-authored-by: Mosè Giordano <[email protected]>
    Co-authored-by: Jameson Nash <[email protected]>
    Co-authored-by: Elliot Saba <[email protected]>
    Co-authored-by: Max Horn <[email protected]>
    (cherry picked from commit eb708d6)
    apaz-cli authored and KristofferC committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    96592e2 View commit details
    Browse the repository at this point in the history
  2. Limit initial OpenBLAS thread count (#46844)

    * Limit initial OpenBLAS thread count
    
    We set OpenBLAS's initial thread count to `1` to prevent runaway
    allocation within OpenBLAS's initial thread startup.  LinearAlgebra will
    later call `BLAS.set_num_threads()` to the actual value we require.
    
    * Support older names
    
    (cherry picked from commit 58b559f)
    staticfloat authored and KristofferC committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    b183031 View commit details
    Browse the repository at this point in the history
  3. Turn on Intel jitevents by default on Linux (#47586)

    (cherry picked from commit bba41d4)
    vchuravy authored and KristofferC committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    b19b2c1 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2022

  1. Filesystem: rm(; recursive=true) should ignore UV_EACCES (#47668)

    The command-line program `rm` has no problem deleting an empty directory
    that we do not have listing permissions on, so we should follow suit.
    
    Example:
    
    ```
    mktempdir() do dir
        mkpath("$(dir)/foo")
        chmod("$(dir)/foo", 0o200)
        rm(dir; recursive=true)
    end
    ```
    
    (cherry picked from commit d0a211a)
    staticfloat authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    54a6264 View commit details
    Browse the repository at this point in the history
  2. Fix REPL keybinding CTRL-Q for stdlib methods (#47637)

    (cherry picked from commit 7514bcf)
    rashidrafeek authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    6dad6c5 View commit details
    Browse the repository at this point in the history
  3. fix 5-arg mul! for vectors of vectors (#47665)

    Co-authored-by: N5N3 <[email protected]>
    (cherry picked from commit 902e8a7)
    ranocha authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    70c8dc2 View commit details
    Browse the repository at this point in the history
  4. fix #47662, broken --compile=all on 1.8.x (#47678)

    JeffBezanson authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    8abef03 View commit details
    Browse the repository at this point in the history
  5. Fix implicit binding import for aliased bindings (#44827)

    `b->name` is used to lookup in `b->owner`, not `var`.
    
    (cherry picked from commit dbe41d4)
    Pangoraw authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    23ce8ab View commit details
    Browse the repository at this point in the history
  6. Add compat to @test_throws (#45893)

    closes #45892
    
    (cherry picked from commit 59ff2e5)
    baggepinnen authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    4898882 View commit details
    Browse the repository at this point in the history
  7. Fix generator-invocation legality check for varargs generators (#47739)

    This code was introduced by me back in #31025 to speed up evaluation
    of generated functions that didn't make use of all of their arguments to
    make generation decisions. However, it neglected to take into account the
    possibility that the generator could be varargs. As a result, an unfortunate
    coincidence of an unused slot in the correct position could have allowed
    expansion of generators that were not supposed to be expandable. This can
    cause incorrect inference with all the usual consequences. However, fortunately
    this coincidence appears to be pretty rare.
    
    Fixes JuliaDebug/CassetteOverlay.jl#12
    
    (cherry picked from commit 328dd57)
    Keno authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    2950963 View commit details
    Browse the repository at this point in the history
  8. Prioritize build_dir for generated headers (#47783)

    (cherry picked from commit 0feaf5c)
    vchuravy authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    c1d3df6 View commit details
    Browse the repository at this point in the history
  9. Fix physical_memory exports. (#47859)

    (cherry picked from commit 5a6c808)
    maleadt authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    579f84f View commit details
    Browse the repository at this point in the history
  10. fix #47410, syntax error with anonfn inside elseif and short-circui…

    …t op (#47499)
    
    (cherry picked from commit 5f256e7)
    JeffBezanson authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    964f86d View commit details
    Browse the repository at this point in the history
  11. ensure bindings handle write barriers for ty and globalref (#47580)

    This has probably been wrong for a long time (since being introduced in 7908246).
    
    (cherry picked from commit b369511)
    vtjnash authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    f5c000e View commit details
    Browse the repository at this point in the history
  12. fix unescaping in global expressions (#47719)

    This fixes some issues around macro hygiene in `global` expressions.
    Apparently we always treat l-values in global expressions as being
    escaped, but we still need to be careful to handle type annotations and
    destructuring correctly.
    
    (cherry picked from commit cc25a13)
    simeonschaub authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    4e152d4 View commit details
    Browse the repository at this point in the history
  13. Set OPENBLAS_NUM_THREADS=1 on local Distributed workers (#47803)

    This should prevent LinearAlgebra from trying to increase our OpenBLAS
    thread count in its `__init__()` method when we're not trying to enable
    threaded BLAS.
    
    (cherry picked from commit a8b3994)
    staticfloat authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    8830c26 View commit details
    Browse the repository at this point in the history
  14. Fix isdone for empty product iterators, fixes #43921 (#43947)

    * Fix the issue #43921
    
    * add a test
    
    Co-authored-by: Kristoffer <[email protected]>
    (cherry picked from commit b8a77da)
    sasi591 authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    fd92d74 View commit details
    Browse the repository at this point in the history
  15. Merge pull request #47741 from JuliaLang/jn/backports-release-1.8-47685

    [release 1.8] backport of precompile: serialize the full edges graph (#46920)
    KristofferC authored and KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    5a1d35e View commit details
    Browse the repository at this point in the history
  16. bump SparseArrays to latest 1.8

    KristofferC committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    992d4ca View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2022

  1. bump Pkg to latest 1.8

    KristofferC committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    3f58584 View commit details
    Browse the repository at this point in the history