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

release-1.7: Backports for 1.7.0/1.7.0-rc4 #43084

Merged
merged 24 commits into from
Nov 27, 2021
Merged

Commits on Nov 15, 2021

  1. ranges: fix empty length for smallints (#43042)

    Fixes #29801
    
    (cherry picked from commit b71330d)
    vtjnash authored and KristofferC committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    5adcb4b View commit details
    Browse the repository at this point in the history
  2. codegen: add missing initialization for PhiC nodes (#43029)

    Our Phi handling assumes that it can references undefined memory, and
    get back legal results, but our PhiC nodes were not initialized, so the
    Phi node might see uninitialized results, and then cause the GC to
    crash. This was observed in PkgEval on the PoreMatMod.jl package to
    occur in recent Julia versions and master.
    
    (cherry picked from commit ec3ec02)
    vtjnash authored and KristofferC committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    976a79e View commit details
    Browse the repository at this point in the history
  3. Symlink 7z when USE_SYSTEM_P7ZIP (#43005)

    * Symlink 7z
    
    * Simplify
    
    Co-authored-by: Elliot Saba <[email protected]>
    
    Co-authored-by: Elliot Saba <[email protected]>
    (cherry picked from commit 5e2894b)
    haampie authored and KristofferC committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    ae4035a View commit details
    Browse the repository at this point in the history
  4. Stop stripping git, github, and CI config files from source distribut…

    …ions.
    
    (cherry picked from commit 780ebea)
    Sacha0 authored and KristofferC committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    07d6734 View commit details
    Browse the repository at this point in the history
  5. Make profiling more robust with many tasks (#42978)

    This patch includes two sets of changes.
    
    (1) `jl_thread_suspend_and_get_state` uses `pthread_cond_timedwait` to
    recover from the case where the request is not received by the signal
    handler. This is required because `usr2_handler` contains some paths
    for the case where it is not possible to obtain `ptls`.
    
    (2) `ctx_switch` now makes sure to null out `ptls` of the last task
    (`lastt->ptls = NULL`) after changing the current task by updating
    pgcstack (`jl_set_pgcstack(&t->gcstack)`).  This closes the gap in
    which `usr2_handler` can observe the null `ptls`.
    
    Co-authored-by: Jameson Nash <[email protected]>
    (cherry picked from commit 8131580)
    tkf authored and KristofferC committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    ee261dc View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2021

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

Commits on Nov 26, 2021

  1. fix atomic fences (#43093)

    Previously, we were disallowing the opposite of the orders that we intended to disallow.
    
    (cherry picked from commit 28c49ce)
    vtjnash authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    fa51d23 View commit details
    Browse the repository at this point in the history
  2. Unbreak source distribution tarball construction. (#43096)

    Co-authored-by: Jameson Nash <[email protected]>
    (cherry picked from commit d958c8c)
    Sacha0 authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    eae365c View commit details
    Browse the repository at this point in the history
  3. Fix world age issue with custom streams for Distributed workers (#42481)

    If connect(::CustomClusterManager, ...) returns a custom transport
    stream, use of that stream by the task in start_gc_msgs_task() may fail
    due to the task executing in an old world age. Add an invokelatest() to
    prevent this problem.
    
    (cherry picked from commit a05bcb2)
    c42f authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    ca091f4 View commit details
    Browse the repository at this point in the history
  4. Document that cfunctions should not throw errors (#43100)

    * Document that cfunctions should not throw errors
    
    This was not documented, see https://discourse.julialang.org/t/what-happens-when-you-throw-an-error-from-a-cfunction/71510?u=simonbyrne
    
    * Update doc/src/manual/calling-c-and-fortran-code.md
    
    Co-authored-by: Jameson Nash <[email protected]>
    
    Co-authored-by: Jameson Nash <[email protected]>
    (cherry picked from commit 0722f3c)
    simonbyrne authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    73cfbdf View commit details
    Browse the repository at this point in the history
  5. Fix regression in map and collect (#43120)

    `promote_typejoin_tuple` returned a type which was more precise
    than the one which `map` and `collect` actually use via `promote_type`,
    triggering an assertion error in corner cases.
    
    (cherry picked from commit edea1de)
    nalimilan authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    14132d7 View commit details
    Browse the repository at this point in the history
  6. Updated checksums for LBT (#42334)

    (cherry picked from commit f60736f)
    ViralBShah authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    08002ba View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    501c9ac View commit details
    Browse the repository at this point in the history
  8. libuv: bump version

    Includes several fixes: JuliaLang/libuv@c6869fb...3a63bf7
    
    (cherry picked from commit 04d486b)
    vtjnash authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    3f81baa View commit details
    Browse the repository at this point in the history
  9. Make stale_cachefile compatible with Nix mtime (#43090)

    The added condition improves compatiblity with Nix mtime.
    
    (cherry picked from commit f5e0f9d)
    Sacha0 authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    bbb2233 View commit details
    Browse the repository at this point in the history
  10. Base.runtests: rename the --force-net option to --ci (#43168)

    Co-authored-by: Rafael Fourquet <[email protected]>
    
    Co-authored-by: Rafael Fourquet <[email protected]>
    (cherry picked from commit e9430c9)
    DilumAluthge authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    348a6fb View commit details
    Browse the repository at this point in the history
  11. Base.GIT_VERSION_INFO: record the Buildkite commit that was used to…

    … build Julia (#43073)
    
    (cherry picked from commit a21cc80)
    DilumAluthge authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    06516f6 View commit details
    Browse the repository at this point in the history
  12. Fix links to external stdlib repos in docs, fixes #43199. (#43225)

    (cherry picked from commit 3103102)
    fredrikekre authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    72d6569 View commit details
    Browse the repository at this point in the history
  13. @testset: with Xoshiro, restore Random.GLOBAL_SEED (#43188)

    A `@testset` is supposed to restore the "global RNG state" as
    it was before execution (so that they can be re-ordered easily, etc.)
    Also, before a testset starts, the default RNG is re-seeded with the
    "global seed" (to help reproduce test failures).
    
    Before `Xoshiro` as the default RNG, the "global seed" was stored
    within a `MersenneTwister` object. It was enough for a testset to
    copy the default RNG at the start, and copy it back at the end.
    But now the global seed is stored outside of the RNG, so it should
    also be restored separately.
    
    (cherry picked from commit 08ea2d8)
    rfourquet authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    bf8d60b View commit details
    Browse the repository at this point in the history
  14. IRShow: use IOContext for PhiNodes/:invoke printing (#43226)

    In order to allow `Argument`s to be printed nicely.
    
    > before
    ```julia
    julia> code_typed((Float64,)) do x
               sin(x)
           end
    1-element Vector{Any}:
     CodeInfo(
    1 ─ %1 = invoke Main.sin(_2::Float64)::Float64
    └──      return %1
    ) => Float64
    
    julia> code_typed((Bool,Any,Any)) do c, x, y
               z = c ? x : y
               z
           end
    1-element Vector{Any}:
     CodeInfo(
    1 ─      goto #3 if not c
    2 ─      goto #4
    3 ─      nothing::Nothing
    4 ┄ %4 = φ (#2 => _3, #3 => _4)::Any
    └──      return %4
    ) => Any
    ```
    
    > after
    ```julia
    julia> code_typed((Float64,)) do x
               sin(x)
           end
    1-element Vector{Any}:
     CodeInfo(
    1 ─ %1 = invoke Main.sin(x::Float64)::Float64
    └──      return %1
    ) => Float64
    
    julia> code_typed((Bool,Any,Any)) do c, x, y
               z = c ? x : y
               z
           end
    1-element Vector{Any}:
     CodeInfo(
    1 ─      goto #3 if not c
    2 ─      goto #4
    3 ─      nothing::Nothing
    4 ┄ %4 = φ (#2 => x, #3 => y)::Any
    └──      return %4
    ) => Any
    ```
    aviatesk authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    9bee745 View commit details
    Browse the repository at this point in the history
  15. Make argument mismatch in opaque closure a MethodError (#41206)

    This at least shows the argument types. In the future we may want
    to add some logic to the errorshow code to improve this even further,
    but good enough for now.
    Keno authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    0848394 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    6b1637b View commit details
    Browse the repository at this point in the history
  17. Better handling for Union-type fields, particularly of singletons (#4…

    …3163)
    
    fix #43123
    
    (cherry picked from commit d44a534)
    vtjnash authored and KristofferC committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    fe216ae View commit details
    Browse the repository at this point in the history
  18. Backport: Fix stack pointer retrieval in jl_backtrace_from_here (#42585

    …) (#43241)
    
    * Fix stack pointer retrieval in jl_backtrace_from_here (#42585)
    
    Co-authored-by: Jameson Nash <[email protected]>
    (cherry picked from commit 455236e)
    
    * Avoid using call-site `@noinline`
    tkf authored Nov 26, 2021
    Configuration menu
    Copy the full SHA
    7f29663 View commit details
    Browse the repository at this point in the history