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.6: Backports for 1.6.6 #43735

Merged
merged 38 commits into from
Mar 19, 2022
Merged

Commits on Jan 10, 2022

  1. Add check_open(sock) to _sockname (#41000)

    Not checking could lead to a segfault on closed TCPSockets in getpeername
    
    Fixes #40993
    
    (cherry picked from commit 28e30a3)
    cljord authored and KristofferC committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    a3bfdbe View commit details
    Browse the repository at this point in the history
  2. Look for package name in [extras] for Preferences (#43361)

    * Look for package name in `[extras]`
    
    When Preferences.jl set's a preferences in a non-top-level package,
    it adds that package to the `[extras]` entries in the project path.
    
    Package loading should have used thhose entries to map the module uuid
    to the key name in the Preferences.toml
    
    Fixes JuliaPackaging/Preferences.jl#24
    
    Co-authored-by: Elliot Saba <staticfloat@gmail.com>
    (cherry picked from commit 8197c41)
    vchuravy authored and KristofferC committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    8079cae View commit details
    Browse the repository at this point in the history
  3. win32: Fix SEH frame sentinel (#43570)

    The last entry sentinel for Win64 SEH is `~0L` not NULL. Apparently
    this doesn't cause issues on windows proper, but does crash wine.
    Arguably if Windows doesn't have issues then we should just fix
    this in wine, but since we control the source and nobody else
    ever seems to have run into this, let's just fix it and save
    the good Wine folks some headache. Fixes #43569.
    
    (cherry picked from commit 722f9d4)
    Keno authored and KristofferC committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    e0cb54a View commit details
    Browse the repository at this point in the history
  4. Lift expensive Regex construction from DateFormat method body.

    Constructing the Regex touched in this commit can represent a
    significant fraction (e.g. half or better) of the runtime of
    the DateFormat method touched in this commit. To make this
    DateFormat method more efficient, let's lift that Regex
    construction out of that method body.
    
    (cherry picked from commit 7fb5bb8)
    Sacha0 authored and KristofferC committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    7d3cffe View commit details
    Browse the repository at this point in the history
  5. Fix Base.StackTraces.lookup(C_NULL - 1) on macOS 12 (#43612)

    See comment in diff for explanation. This fixes test/stacktraces.jl
    on aarch64 macOS 12, and according to an OpenJDK issue where they
    ran into the same problem, https://git.openjdk.java.net/jdk/pull/6193,
    probably also x86_64 macOS 12.
    
    (cherry picked from commit 7f27dea)
    dnadlinger authored and KristofferC committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    c76958b View commit details
    Browse the repository at this point in the history
  6. Spell out ~0L literal (#43579)

    To avoid the compiler potentially picking the wrong size depending on standards versions.
    
    (cherry picked from commit e8d1167)
    Keno authored and KristofferC committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    685e167 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2022

  1. run a temp cleanup after the precompilation step (#43761)

    Fixes #43702
    
    (cherry picked from commit 9d05e7b)
    KristofferC committed Jan 20, 2022
    Configuration menu
    Copy the full SHA
    7f471cb View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2022

  1. Add defalg methods to resolve potential dispatch ambiguities (#43426)

    We could also consider adding `defalg(v::AbstractArray{<:Number}) = DEFAULT_UNSTABLE`,
    but it is unlikely that someone will want to do `Union` of `<:Number`
    and something other than `Missing` that still would support comparison.
    
    Relevant for JuliaStrings/InlineStrings.jl#21
    (and other custom types that will want to add `defalg` support allowing
    for `Union` with `Missing`).
    
    (cherry picked from commit eb724e0)
    bkamins authored and KristofferC committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    99ea4b0 View commit details
    Browse the repository at this point in the history
  2. [deps] Update PCRE2 URL (#43884)

    (cherry picked from commit 9769024)
    giordano authored and KristofferC committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    ca624bb View commit details
    Browse the repository at this point in the history
  3. Fix typo in triangular ldiv! (#43962)

    (cherry picked from commit c3235cd)
    dkarrasch authored and KristofferC committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    6eea8d8 View commit details
    Browse the repository at this point in the history
  4. Dates parsing: remove throw InexactError from tryparsenext, fixes #…

    …44003 (#44004)
    
    (cherry picked from commit c10dac1)
    David Bach authored and KristofferC committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    7821e64 View commit details
    Browse the repository at this point in the history
  5. fix #43960, evaluation order of splat inside ref (#44024)

    (cherry picked from commit 546a774)
    JeffBezanson authored and KristofferC committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    8a02c32 View commit details
    Browse the repository at this point in the history
  6. fix asyncmap docs typo (#43571)

    (cherry picked from commit 4c101a1)
    Jasha10 authored and KristofferC committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    6b43499 View commit details
    Browse the repository at this point in the history
  7. completely initialize SystemError (#44192)

    (cherry picked from commit 2db86f2)
    sjkelly authored and KristofferC committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    fc75979 View commit details
    Browse the repository at this point in the history
  8. fix next prompt detector in generate_precompile_statements (#44196)

    (cherry picked from commit c839221)
    IanButterworth authored and KristofferC committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    c50b4a4 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2022

  1. build,win: workaround for echo sometimes interpreting \\ from tr

    (cherry picked from commit 0c44d23)
    vtjnash committed Feb 23, 2022
    Configuration menu
    Copy the full SHA
    3f0b376 View commit details
    Browse the repository at this point in the history
  2. win,debug: add missing jl_refresh_dbg_module_list call

    Because we might not have synchronized the list again yet.
    
    (cherry picked from commit cac90b5)
    vtjnash committed Feb 23, 2022
    Configuration menu
    Copy the full SHA
    f99cf7c View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2022

  1. debuginfo: fix offset to UnwindData on Win64

    We have 2 copies of this data, and so need to make sure we are pointing
    at the correct one for runtime.
    
    (cherry picked from commit 2f1f2f6)
    vtjnash committed Feb 24, 2022
    Configuration menu
    Copy the full SHA
    7452018 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2022

  1. [CPUID] Add ISA entries for A64FX and M1 (#44194)

    * [CPUID] Rework how current ISA is determined
    
    * [CPUID] Add ISA entry for A64FX
    
    * [CPUID] Add ISA entry for Apple Silicon M1
    
    * [CPUID] Simplify collection of full set of features for architecture
    
    * [CPUID] Remove AES from A64FX ISA, not all chips appear to have it
    
    (cherry picked from commit f45b6ad)
    giordano authored and KristofferC committed Mar 15, 2022
    Configuration menu
    Copy the full SHA
    2822b59 View commit details
    Browse the repository at this point in the history
  2. Fix aliasing bug in copy!(x, x) for x::AbstractSet and x::AbstractDict,

    fixes #41268 (#44265)
    
    (cherry picked from commit 0b48b91)
    Ellipse0934 authored and KristofferC committed Mar 15, 2022
    Configuration menu
    Copy the full SHA
    cf86fc6 View commit details
    Browse the repository at this point in the history
  3. Make sure all the relocations are filled in for partially cloned targ…

    …et (#44262)
    
    We collect the relocations (i.e. the GOT slots that is used in the code) for each target
    in `tgt.relocs`. Needing a relocation, however, does not imply that the function is cloned
    for this target within the group (It does mean that at least one target
    in the group has it cloned). The previous version would miss the relocation in this case.
    
    This was triggerred with the following cloning situation
    
        caller: clone_1
        callee: clone_1, clone_1.clone_3
    
    Since caller.clone_1 may call either callee.clone_1 or callee.clone_1.clone_3 a relocation
    for callee will be used and is required to be initialized.
    In addition to target 1, target 2 (and in fact target 3) within group 1
    will also use caller.clone_1. However, since callee isn't cloned for target 2
    the previous version wouldn't have saved this slot in the relocation array.
    
    (cherry picked from commit 76fc067)
    yuyichao authored and KristofferC committed Mar 15, 2022
    Configuration menu
    Copy the full SHA
    294a50c View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2022

  1. use name in source module when importing an aliased binding (#43291)

    Co-authored-by: Simeon David Schaub <schaub@mit.edu>
    (cherry picked from commit 2338f5d)
    Pangoraw authored and KristofferC committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    426a4ad View commit details
    Browse the repository at this point in the history
  2. [RemoveAddrspaces] make MappedTypes non-static (#44453)

    (cherry picked from commit 610fc20)
    vchuravy authored and KristofferC committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    0494f96 View commit details
    Browse the repository at this point in the history
  3. ensure invoke kwargs work on Types (#44464)

    Fix #44227
    
    (cherry picked from commit f731c38)
    vtjnash authored and KristofferC committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    68f0b35 View commit details
    Browse the repository at this point in the history
  4. Fix (add|set)env to keep currently set dir for the command, fixes #42131

    . (#43276)
    
    (cherry picked from commit f53de73)
    fredrikekre authored and KristofferC committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    90a3726 View commit details
    Browse the repository at this point in the history
  5. Base.runtests: unset JULIA_PROJECT and JULIA_LOAD_PATH (#43575)

    (cherry picked from commit f61eb87)
    DilumAluthge authored and KristofferC committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    d311770 View commit details
    Browse the repository at this point in the history
  6. fix bug in addenv for environment entries with embedded = (#44212)

    Co-authored-by: Jameson Nash <vtjnash@gmail.com>
    Co-authored-by: Fredrik Ekre <ekrefredrik@gmail.com>
    (cherry picked from commit f5d9b86)
    JeffBezanson authored and KristofferC committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    977410f View commit details
    Browse the repository at this point in the history
  7. Ensure that open(::Function, ::Cmd) waits for termination (#44078)

    On Windows, we observed occasional issues where an error within the
    function callback to the `open(::Function, ::Cmd)` method would cause
    problems due to assuming that the opened process had finished by the
    time the `open()` call was finished.  In most cases this was true,
    however on Windows, it was found that we need to explicitly `wait()`
    upon the process object to ensure that all file handles held by the
    subprocess were properly closed by the time `open()` is finished.
    
    Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
    (cherry picked from commit 623ceb7)
    staticfloat authored and KristofferC committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    1fa79e2 View commit details
    Browse the repository at this point in the history
  8. fix macro expansion of (::typeof(x))() = ... (#43993)

    (cherry picked from commit b405562)
    simeonschaub authored and KristofferC committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    f55aa39 View commit details
    Browse the repository at this point in the history
  9. Use GlobalRef of Core.CodeInfo in @generated (#43823)

    Co-authored-by: Simeon Schaub <schaub@mit.edu>
    (cherry picked from commit 8536522)
    devmotion authored and KristofferC committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    223488e View commit details
    Browse the repository at this point in the history
  10. Fix sparse array setindex(::Int, ::Vector) (#43678)

    (cherry picked from commit dc61f29)
    dkarrasch authored and KristofferC committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    b4cbb96 View commit details
    Browse the repository at this point in the history
  11. Base.runtests: set a temporary Pkg depot path (#42358)

    (cherry picked from commit 2c9e051)
    DilumAluthge authored and KristofferC committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    74d6f07 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2022

  1. External stdlibs: Move *_URL stdlib definitions into .version files

    Co-authored-by: Elliot Saba <staticfloat@gmail.com>
    (cherry picked from commit dfcd63f)
    DilumAluthge authored and KristofferC committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    967fa9a View commit details
    Browse the repository at this point in the history
  2. External stdlibs: stop using the unauthenticated git:// protocol in…

    … the external stdlib URLs (#42906)
    
    (cherry picked from commit 7eba9c1)
    DilumAluthge authored and KristofferC committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    4c7c053 View commit details
    Browse the repository at this point in the history
  3. Remove some other uses of the unauthenticated git:// protocol in Gi…

    …t URLs (#42907)
    
    (cherry picked from commit e03ead0)
    DilumAluthge authored and KristofferC committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    bf6293a View commit details
    Browse the repository at this point in the history
  4. Running make testall should run all of the tests (#42904)

    (cherry picked from commit 36304ba)
    DilumAluthge authored and KristofferC committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    356a116 View commit details
    Browse the repository at this point in the history
  5. Update Pkg to 1.6.6.

    fredrikekre authored and KristofferC committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    8c43f36 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2022

  1. fix #44239, regression in keyword args in getindex (#44246)

    (cherry picked from commit 4061e8f)
    JeffBezanson authored and KristofferC committed Mar 19, 2022
    Configuration menu
    Copy the full SHA
    3c8241c View commit details
    Browse the repository at this point in the history