Skip to content

Commit a03fa67

Browse files
authored
Merge pull request #45319 from JuliaLang/backports-release-1.6
release-1.6: Backports for 1.6.7
2 parents aafae8a + 443c321 commit a03fa67

File tree

92 files changed

+2976
-1122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+2976
-1122
lines changed

.buildkite/pipelines/main/misc/doctest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ agents:
33
# Only run on `sandbox.jl` machines (not `docker`-isolated ones) since we need nestable sandboxing
44
sandbox.jl: "true"
55
os: "linux"
6+
arch: "x86_64"
67
steps:
78
- label: "doctest"
89
key: doctest

.buildkite/pipelines/main/misc/embedding.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ agents:
33
# Only run on `sandbox.jl` machines (not `docker`-isolated ones) since we need nestable sandboxing
44
sandbox.jl: "true"
55
os: "linux"
6+
arch: "x86_64"
67
steps:
78
- label: "embedding"
89
key: "embedding"

.buildkite/pipelines/main/misc/llvmpasses.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ agents:
33
# Only run on `sandbox.jl` machines (not `docker`-isolated ones) since we need nestable sandboxing
44
sandbox.jl: "true"
55
os: "linux"
6+
arch: "x86_64"
67
steps:
78
- label: "analyzegc"
89
key: "analyzegc"

.buildkite/pipelines/main/misc/sanitizers.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ agents:
33
# Only run on `sandbox.jl` machines (not `docker`-isolated ones) since we need nestable sandboxing
44
sandbox.jl: "true"
55
os: "linux"
6+
arch: "x86_64"
67
steps:
78
- label: "asan"
89
key: "asan"

.buildkite/pipelines/main/misc/whitespace.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ agents:
33
# Only run on `sandbox.jl` machines (not `docker`-isolated ones) since we need nestable sandboxing
44
sandbox.jl: "true"
55
os: "linux"
6+
arch: "x86_64"
67
steps:
78
- label: "whitespace"
89
key: "whitespace"

.buildkite/pipelines/main/platforms/package_linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ agents:
33
# Only run on `sandbox.jl` machines (not `docker`-isolated ones) since we need nestable sandboxing
44
sandbox.jl: "true"
55
os: "linux"
6+
arch: "x86_64"
67
steps:
78
- label: "package_${PLATFORM?}${LABEL?}"
89
key: package_${PLATFORM?}${LABEL?}

.buildkite/pipelines/main/platforms/tester_linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ agents:
33
# Only run on `sandbox.jl` machines (not `docker`-isolated ones) since we need nestable sandboxing
44
sandbox.jl: "true"
55
os: "linux"
6+
arch: "x86_64"
67
steps:
78
- label: "tester_${PLATFORM?}${LABEL?}"
89
key: tester_${PLATFORM?}${LABEL?}

NEWS.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,13 @@ New library functions
102102
* New function `Base.rest` for taking the rest of a collection, starting from a specific
103103
iteration state, in a generic way ([#37410]).
104104

105-
New library features
106-
--------------------
105+
Library changes
106+
---------------
107+
108+
* A known concurrency issue of `iterate` methods on `Dict` and other derived objects such
109+
as `keys(::Dict)`, `values(::Dict)`, and `Set` is fixed. These methods of `iterate` can
110+
now be called on a dictionary or set shared by arbitrary tasks provided that there are no
111+
tasks mutating the dictionary or set ([#44534]).
107112

108113
* The `redirect_*` functions now accept `devnull` to discard all output redirected to it, and as an empty
109114
input ([#36146]).

base/dict.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ end
683683

684684
@propagate_inbounds _iterate(t::Dict{K,V}, i) where {K,V} = i == 0 ? nothing : (Pair{K,V}(t.keys[i],t.vals[i]), i == typemax(Int) ? 0 : i+1)
685685
@propagate_inbounds function iterate(t::Dict)
686-
_iterate(t, skip_deleted_floor!(t))
686+
_iterate(t, skip_deleted(t, t.idxfloor))
687687
end
688688
@propagate_inbounds iterate(t::Dict, i) = _iterate(t, skip_deleted(t, i))
689689

base/essentials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ element `i` of array `A` is skipped to improve performance.
538538
```julia
539539
function sum(A::AbstractArray)
540540
r = zero(eltype(A))
541-
for i = 1:length(A)
541+
for i in eachindex(A)
542542
@inbounds r += A[i]
543543
end
544544
return r

0 commit comments

Comments
 (0)