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 release 1.12 #57536

Open
wants to merge 74 commits into
base: release-1.12
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
bec9235
build: fix makefile rules and windows path separator used in build (#…
vtjnash Feb 21, 2025
d3499d0
strip Module filename from metadata (#57499)
vtjnash Feb 22, 2025
b565c28
`Base.summarysize` for `Memory` with `Union` (#57508)
PatrickHaecker Feb 23, 2025
d04631d
don't mutate globals when constructing `Rational` from `AbstractIrrat…
nsajko Feb 25, 2025
92396aa
[Compiler] begin new approach to verify --trim output (#57530)
vtjnash Feb 26, 2025
10d75d2
[Compiler] fix some cycle_fix_limited usage (#57545)
vtjnash Feb 27, 2025
828c7cc
some updates for trimming (#57531)
JeffBezanson Feb 27, 2025
c5d0b67
Bump JuliaSyntaxHighlighting (#57526)
tecosaur Feb 27, 2025
c450cff
Docs: `circshift!(::AbstractVector, ::Integer)` (#57539)
barucden Feb 27, 2025
e2884bc
lowering: Allow chaining of `>:` in `where` (#57554)
mlechu Feb 27, 2025
e878f5c
bpart: Check whether the replaced binding is a type before assuming (…
Keno Feb 28, 2025
c9d2a27
Walk to imports in `isconst(::GlobalRef)` (#57563)
Keno Feb 28, 2025
0a8b382
Always disallow assignments to constants (#57567)
Keno Feb 28, 2025
5323469
Group import hints (#56753)
ajwheeler Feb 28, 2025
87d9c23
Remove `jl_init__threading` and `jl_init_with_image__threading` (#57561)
topolarity Feb 28, 2025
d271805
Make no-body `function` declaration implicitly `global` (#57562)
Keno Mar 1, 2025
66085c5
avoid overflow on functionality to print backtrace of safepoint strag…
d-netto Mar 1, 2025
e661b5f
`Base.Precompilation.ExplicitEnv`: handle type instability better in …
nsajko Mar 2, 2025
e9126d7
cleanup old builtins (#57532)
vtjnash Mar 2, 2025
38644b3
strings: type assert in the generic `nextind`, `prevind` methods (#57…
nsajko Mar 3, 2025
4942b1c
`AnnotatedString`: add concrete type asserts to `isvalid`, `ncodeunit…
nsajko Mar 3, 2025
4eaae59
`Base`: `power_by_squaring`: don't require `one` (#57590)
nsajko Mar 3, 2025
ad92902
Precompile Markdown parsing AND printing (#55752)
PallHaraldsson Mar 4, 2025
b3c81e9
bpart: Also partition ->deprecated (#57449)
Keno Feb 28, 2025
855807c
bpart: Allow inference/codegen to merge multiple partitions (#57602)
Keno Mar 2, 2025
7cf1db3
bpart: Rename partition flags, turn binding flags atomic (#57614)
Keno Mar 3, 2025
686c917
Align module base between invalidation and edge tracking (#57625)
Keno Mar 4, 2025
10f5d44
[1.12] Add PR number to `gc_safe` NEWS entry (#57682)
christiangnrd Mar 8, 2025
8d76a67
Add missing arg in TOML `printvalue` (#57584)
qiaojunfeng Mar 5, 2025
cf69717
Compiler: Fix pre-compilation as separate package (#57650)
topolarity Mar 6, 2025
1679d93
Intersect: try normal+reverse+existential subtyping during intersecti…
N5N3 Mar 6, 2025
9bac7e7
Fix julia.h for use in MSVC (#57654)
barche Mar 7, 2025
c0bf26a
lock: Specialize `OncePerX` more aggressively (#57660)
topolarity Mar 7, 2025
8bfb658
trimming: improve output on failure (#57657)
topolarity Mar 7, 2025
36986a0
typeinfer: Add `force_enable_inference` to override Module-level infe…
topolarity Mar 7, 2025
0e93f12
Compiler: `abstract_apply`: declare type of two closure captures (#57…
nsajko Mar 10, 2025
c04db34
`Base`: `append!`, `resize!`: convert length to `Int` before passing …
nsajko Mar 11, 2025
d8af2ed
Compiler/ssair/passes: `_lift_svec_ref`: improve type stability (#57633)
nsajko Mar 11, 2025
1ad2982
Libdl: Improve inference for `string(::LazyLibraryPath)` (#57721)
topolarity Mar 11, 2025
7e0392d
fix alignment computation for nested objects (#57722)
vtjnash Mar 11, 2025
21d4472
Libdl: Store path contents as `Tuple` instead of `Vector` (#57734)
topolarity Mar 12, 2025
c2398b4
type assert `Core.SimpleVector` in `typejoin_union_tuple` (#57631)
nsajko Mar 12, 2025
c8fe2f5
errorshow: typeassert `::SimpleVector` in `_collapse_repeated_frames`…
nsajko Mar 12, 2025
1692eb7
Avoid requiring the REPL to be loaded to show error hints for undefin…
KristofferC Mar 12, 2025
5f85ec3
inference: exclude uncached frames from callstack (#57743)
vtjnash Mar 13, 2025
c4b667d
remove old cruft from jl_set_typeinf_func (#57760)
vtjnash Mar 14, 2025
31d998e
[docs] Clarify that Float16 is supported natively when possible (#57725)
giordano Mar 15, 2025
1de014a
lowering: Don't closure-convert in `import` or `using` (#57774)
mlechu Mar 15, 2025
4a420a1
fix missing `!` in a strip-metadata case (#57778)
JeffBezanson Mar 15, 2025
dd14c58
print admonition for auto-import only once per module (#57775)
vtjnash Mar 15, 2025
02b8670
enable JuliaSyntax parser for user code in juliac (#57777)
JeffBezanson Mar 15, 2025
84bc0c6
Bugfix: String indexing in big_str macro (#57621)
jakobnissen Mar 17, 2025
2916acd
fix special function `::Real` fallback stack overflow (#57790)
nsajko Mar 17, 2025
09586ff
stackwalk: fix heuristic termination (#57801)
vtjnash Mar 17, 2025
65b5aa7
Fix fptrunc Float64 -> Float16 rounding through Float32 (#57809)
xal-0 Mar 18, 2025
3778b80
add missing wb in jl_maybe_reresolve_implicit (#57804)
vtjnash Mar 19, 2025
59ad091
Fix OncePerThread issue when building a sysimage using the current sy…
gbaraldi Mar 20, 2025
2a04708
Fix error message when using `const` inside a function, require the L…
vtjnash Mar 20, 2025
02e5c83
Fix package precompilation (PrecompileTools) (#57828)
timholy Mar 20, 2025
ef270a4
restrict dispatch of some custrom string macros to `String` (#57781)
nsajko Mar 20, 2025
2294722
Respect JULIA_CPU_TARGET when doing trimming (#57373)
gbaraldi Feb 12, 2025
6f34f91
trimming: Avoid `--strip-ir` when compiling with `--trim=no` (#57659)
topolarity Mar 7, 2025
e342f1c
trimming: Avoid `using` indirectly-loaded packages (#57589)
topolarity Mar 7, 2025
4652a09
trimming: Locate package modules by PkgId (#57672)
topolarity Mar 8, 2025
5e8ac85
[internals] add time metrics for every CodeInstance (#57074)
vtjnash Mar 17, 2025
210288b
Mark UInt8 field as UInt8 in CodInstance (#57822)
gbaraldi Mar 20, 2025
8cb30fa
trimming: Restore JLL support (#57587)
IanButterworth Mar 11, 2025
f851c82
better behaved loading errors (#57727)
vtjnash Mar 14, 2025
69d7a98
iobuffer: copyline: type assert `Int` to prevent invalidation (#57848)
nsajko Mar 21, 2025
a60a978
Make remaining float intrinsics require float arguments (#57398)
xal-0 Mar 21, 2025
1a14429
restore method count after redefinition to hide old definition (#57837)
vtjnash Mar 21, 2025
dd47fcb
codegen: fix alignment of source in typed_load from a unsafe_load (#5…
vtjnash Mar 21, 2025
e4e489a
effects: fix effects of atomic pointer operations (#57806)
aviatesk Mar 22, 2025
ed23a99
bpart: Redesign representation of implicit imports (#57755)
Keno Mar 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix special function ::Real fallback stack overflow (#57790)
Fixes #57789

(cherry picked from commit 6817691)
nsajko authored and KristofferC committed Mar 20, 2025
commit 2916acdfd148c56f70315c770fe445152417d84f
2 changes: 1 addition & 1 deletion base/math.jl
Original file line number Diff line number Diff line change
@@ -1542,7 +1542,7 @@ for f in (:sin, :cos, :tan, :asin, :atan, :acos,
:exponent, :sqrt, :cbrt, :sinpi, :cospi, :sincospi, :tanpi)
@eval function ($f)(x::Real)
xf = float(x)
x === xf && throw(MethodError($f, (x,)))
xf isa typeof(x) && throw(MethodError($f, (x,)))
return ($f)(xf)
end
@eval $(f)(::Missing) = missing
8 changes: 8 additions & 0 deletions test/math.jl
Original file line number Diff line number Diff line change
@@ -1549,6 +1549,14 @@ end
end
end

@testset "special function `::Real` fallback shouldn't recur without bound, issue #57789" begin
mutable struct Issue57789 <: Real end
Base.float(::Issue57789) = Issue57789()
for f ∈ (sin, sinpi, log, exp)
@test_throws MethodError f(Issue57789())
end
end

# Test that sqrt behaves correctly and doesn't exhibit fp80 double rounding.
# This happened on old glibc versions.
# Test case from https://sourceware.org/bugzilla/show_bug.cgi?id=14032.