Skip to content

Commit a4129ea

Browse files
authored
Merge pull request #32270 from JuliaLang/backports-1.2.0-rc2
Backports 1.2.0 rc2
2 parents 3fcb168 + 2e72bca commit a4129ea

File tree

203 files changed

+534
-318
lines changed

Some content is hidden

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

203 files changed

+534
-318
lines changed

Make.inc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,10 +1001,7 @@ else ifeq ($(OS), Darwin)
10011001
RPATH_ESCAPED_ORIGIN := $(RPATH_ORIGIN)
10021002
RPATH_LIB := -Wl,-rpath,'@loader_path/julia/' -Wl,-rpath,'@loader_path/'
10031003
else
1004-
RPATH := -Wl,-rpath,'$$ORIGIN/$(build_libdir_rel)' -Wl,-rpath-link,$(build_shlibdir) -Wl,-z,origin
1005-
ifeq ($(OS), FreeBSD)
1006-
RPATH += -Wl,-rpath,'$$ORIGIN/$(build_private_libdir_rel)'
1007-
endif
1004+
RPATH := -Wl,-rpath,'$$ORIGIN/$(build_libdir_rel)' -Wl,-rpath,'$$ORIGIN/$(build_private_libdir_rel)' -Wl,-rpath-link,$(build_shlibdir) -Wl,-z,origin
10081005
RPATH_ORIGIN := -Wl,-rpath,'$$ORIGIN' -Wl,-z,origin
10091006
RPATH_ESCAPED_ORIGIN := -Wl,-rpath,'\$$\$$ORIGIN' -Wl,-z,origin -Wl,-rpath-link,$(build_shlibdir)
10101007
RPATH_LIB := -Wl,-rpath,'$$ORIGIN/julia' -Wl,-rpath,'$$ORIGIN' -Wl,-z,origin

NEWS.md

Lines changed: 5 additions & 0 deletions

base/compiler/abstractinterpretation.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,13 @@ function precise_container_type(@nospecialize(typ), vtypes::VarTable, sv::Infere
422422
tti0 = widenconst(typ)
423423
tti = unwrap_unionall(tti0)
424424
if isa(tti, DataType) && tti.name === NamedTuple_typename
425-
tti0 = tti.parameters[2]
426-
while isa(tti0, TypeVar)
427-
tti0 = tti0.ub
425+
# A NamedTuple iteration is the the same as the iteration of its Tuple parameter:
426+
# compute a new `tti == unwrap_unionall(tti0)` based on that Tuple type
427+
tti = tti.parameters[2]
428+
while isa(tti, TypeVar)
429+
tti = tti.ub
428430
end
431+
tti0 = rewrap_unionall(tti, tti0)
429432
end
430433
if isa(tti, Union)
431434
utis = uniontypes(tti)

base/download.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function find_curl()
2828
"/usr/bin/curl"
2929
elseif Sys.iswindows() && Sys.isexecutable(joinpath(get(ENV, "SYSTEMROOT", "C:\\Windows"), "System32\\curl.exe"))
3030
joinpath(get(ENV, "SYSTEMROOT", "C:\\Windows"), "System32\\curl.exe")
31-
elseif Sys.which("curl") !== nothing
31+
elseif !Sys.iswindows() && Sys.which("curl") !== nothing
3232
"curl"
3333
else
3434
nothing

base/parse.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ function tryparse_internal(::Type{T}, s::AbstractString, startpos::Int, endpos::
123123
_Z = UInt32('Z')
124124
_z = UInt32('z')
125125
while n <= m
126-
_c = UInt32(c)
126+
# Fast path from `UInt32(::Char)`; non-ascii will be >= 0x80
127+
_c = reinterpret(UInt32, c) >> 24
127128
d::T = _0 <= _c <= _9 ? _c-_0 :
128129
_A <= _c <= _Z ? _c-_A+ UInt32(10) :
129130
_a <= _c <= _z ? _c-_a+a : base
@@ -142,7 +143,8 @@ function tryparse_internal(::Type{T}, s::AbstractString, startpos::Int, endpos::
142143
end
143144
(T <: Signed) && (n *= sgn)
144145
while !isspace(c)
145-
_c = UInt32(c)
146+
# Fast path from `UInt32(::Char)`; non-ascii will be >= 0x80
147+
_c = reinterpret(UInt32, c) >> 24
146148
d::T = _0 <= _c <= _9 ? _c-_0 :
147149
_A <= _c <= _Z ? _c-_A+ UInt32(10) :
148150
_a <= _c <= _z ? _c-_a+a : base

base/strings/util.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function lpad(
245245
n::Integer,
246246
p::Union{AbstractChar,AbstractString}=' ',
247247
) :: String
248-
m = n - length(s)
248+
m = signed(n) - length(s)
249249
m 0 && return string(s)
250250
l = length(p)
251251
q, r = divrem(m, l)
@@ -272,7 +272,7 @@ function rpad(
272272
n::Integer,
273273
p::Union{AbstractChar,AbstractString}=' ',
274274
) :: String
275-
m = n - length(s)
275+
m = signed(n) - length(s)
276276
m 0 && return string(s)
277277
l = length(p)
278278
q, r = divrem(m, l)

base/task.jl

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

410410
function enq_work(t::Task)
411411
(t.state == :runnable && t.queue === nothing) || error("schedule: Task not runnable")
412-
if t.sticky
412+
if t.sticky || Threads.nthreads() == 1
413413
tid = Threads.threadid(t)
414414
if tid == 0
415415
tid = Threads.threadid()

contrib/normalize_triplet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def p(x):
117117
"7": "gcc7",
118118
"8": "gcc8",
119119
"9": "gcc8",
120-
}[list(filter(lambda x: re.match("\d+\.\d+\.\d+", x), sys.argv[2].split()))[-1][0]]
120+
}[list(filter(lambda x: re.match("\d+\.\d+(\.\d+)?", x), sys.argv[2].split()))[-1][0]]
121121

122122
if cxx_abi == "blank_cxx_abi":
123123
if len(sys.argv) == 4:

deps/Versions.make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PCRE_VER = 10.31
44
PCRE_BB_REL = 0
55
DSFMT_VER = 2.2.3
66
OPENBLAS_VER = 0.3.5
7-
OPENBLAS_BB_REL = 1
7+
OPENBLAS_BB_REL = 2
88
LAPACK_VER = 3.5.0
99
SUITESPARSE_VER = 5.4.0
1010
SUITESPARSE_BB_REL = 2

deps/checksums/OpenBLAS.v0.3.5-1.aarch64-linux-gnu-gcc4.tar.gz/md5

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)