-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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.9: Backports for julia 1.9.0-alpha2 / 1.9.0-beta1 #47602
Commits on Nov 17, 2022
-
Limit initial OpenBLAS thread count (#46844)
* Limit initial OpenBLAS thread count We set OpenBLAS's initial thread count to `1` to prevent runaway allocation within OpenBLAS's initial thread startup. LinearAlgebra will later call `BLAS.set_num_threads()` to the actual value we require. * Support older names (cherry picked from commit 58b559f)
Configuration menu - View commit details
-
Copy full SHA for 05c8f3b - Browse repository at this point
Copy the full SHA 05c8f3bView commit details -
fix #46778, precompile() for abstract but compileable signatures (#47259
) (cherry picked from commit fe81138)
Configuration menu - View commit details
-
Copy full SHA for 9606388 - Browse repository at this point
Copy the full SHA 9606388View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e17295 - Browse repository at this point
Copy the full SHA 0e17295View commit details -
ensure bindings handle write barriers for ty and globalref (#47580)
Configuration menu - View commit details
-
Copy full SHA for 9dfd76b - Browse repository at this point
Copy the full SHA 9dfd76bView commit details
Commits on Nov 28, 2022
-
Turn on Intel jitevents by default on Linux (#47586)
(cherry picked from commit bba41d4)
Configuration menu - View commit details
-
Copy full SHA for d85e9ac - Browse repository at this point
Copy the full SHA d85e9acView commit details -
Doc: The default sorting alg. is stable from 1.9 (#47579)
* Update doc/src/base/sort.md * Update docs: The default sorting alg. is stable * Compat 1.9 for QuickSort to be stable * Specify the default algorithm * Use example from InlineStrings.jl * Change example to jldoctest * Remove "*appear* to be stable." as slightly misleading. Co-authored-by: Lilith Orion Hafner <lilithhafner@gmail.com> (cherry picked from commit c5fe17b)
Configuration menu - View commit details
-
Copy full SHA for b5d6b03 - Browse repository at this point
Copy the full SHA b5d6b03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bc94a9 - Browse repository at this point
Copy the full SHA 3bc94a9View commit details -
Add compat note for
sortperm(x; dims)
(#47657)(cherry picked from commit 4fa07cd)
Configuration menu - View commit details
-
Copy full SHA for f8f0c63 - Browse repository at this point
Copy the full SHA f8f0c63View commit details -
build: add get-lld target (#47589)
Fixes `make -C deps getall` (cherry picked from commit 3200219)
Configuration menu - View commit details
-
Copy full SHA for 382661c - Browse repository at this point
Copy the full SHA 382661cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f271d7 - Browse repository at this point
Copy the full SHA 0f271d7View commit details -
Remove typeinfer lock altogether (#46825)
* Remove typeinfer lock altogether * Don't remove the typeinf lock functions * Track reentrancy in current task state * Fix up some git status * Initialize task variables * Promise that jl_typeinf_func is rooted somewhere (cherry picked from commit 113efb6)
Configuration menu - View commit details
-
Copy full SHA for c615a49 - Browse repository at this point
Copy the full SHA c615a49View commit details -
Fix regression in generic_bitcast with Union{} arguments. (#47605)
(cherry picked from commit 726bbd7)
Configuration menu - View commit details
-
Copy full SHA for 3b414c6 - Browse repository at this point
Copy the full SHA 3b414c6View commit details -
Filesystem:
rm(; recursive=true)
should ignoreUV_EACCES
(#47668)The command-line program `rm` has no problem deleting an empty directory that we do not have listing permissions on, so we should follow suit. Example: ``` mktempdir() do dir mkpath("$(dir)/foo") chmod("$(dir)/foo", 0o200) rm(dir; recursive=true) end ``` (cherry picked from commit d0a211a)
Configuration menu - View commit details
-
Copy full SHA for aba112c - Browse repository at this point
Copy the full SHA aba112cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24505fc - Browse repository at this point
Copy the full SHA 24505fcView commit details -
* Add test/gcext to out-of-tree * Disable gcext test that uses jl_gc_internal_obj_base_ptr (cherry picked from commit 5495b8d)
Configuration menu - View commit details
-
Copy full SHA for 6fb45be - Browse repository at this point
Copy the full SHA 6fb45beView commit details -
Fix REPL keybinding CTRL-Q for stdlib methods (#47637)
(cherry picked from commit 7514bcf)
Configuration menu - View commit details
-
Copy full SHA for 0865ae0 - Browse repository at this point
Copy the full SHA 0865ae0View commit details -
fix 5-arg
mul!
for vectors of vectors (#47665)Co-authored-by: N5N3 <2642243996@qq.com> (cherry picked from commit 902e8a7)
Configuration menu - View commit details
-
Copy full SHA for cfbb86a - Browse repository at this point
Copy the full SHA cfbb86aView commit details
Commits on Dec 8, 2022
-
Add support for "package extensions" to code loading (#47695)
* Add support for "glue packages" to code loading This allows packages to define "glue packages" which are modules that are automatically loaded when a set of other packages are loaded into the Julia session. (cherry picked from commit 495a004)
Configuration menu - View commit details
-
Copy full SHA for 93587d7 - Browse repository at this point
Copy the full SHA 93587d7View commit details -
🤖 Bump the Pkg stdlib from ed6a5497e to 5d8b9ddb8 (#47828)
Co-authored-by: Dilum Aluthge <dilum@aluthge.com> (cherry picked from commit db00cc1)
Configuration menu - View commit details
-
Copy full SHA for dc1369e - Browse repository at this point
Copy the full SHA dc1369eView commit details -
Fix and simplify inference timing logic (#47711)
* Fix and simplify inference timing logic * Reduce task struct size (cherry picked from commit 88a0627)
Configuration menu - View commit details
-
Copy full SHA for 9b9a703 - Browse repository at this point
Copy the full SHA 9b9a703View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b85c1f - Browse repository at this point
Copy the full SHA 1b85c1fView commit details -
Fix generator-invocation legality check for varargs generators (#47739)
This code was introduced by me back in #31025 to speed up evaluation of generated functions that didn't make use of all of their arguments to make generation decisions. However, it neglected to take into account the possibility that the generator could be varargs. As a result, an unfortunate coincidence of an unused slot in the correct position could have allowed expansion of generators that were not supposed to be expandable. This can cause incorrect inference with all the usual consequences. However, fortunately this coincidence appears to be pretty rare. Fixes JuliaDebug/CassetteOverlay.jl#12 (cherry picked from commit 328dd57)
Configuration menu - View commit details
-
Copy full SHA for 81f8582 - Browse repository at this point
Copy the full SHA 81f8582View commit details -
Adapts to the final version of the constrained/available memory APIs. (cherry picked from commit 41b73e2)
Configuration menu - View commit details
-
Copy full SHA for 9da50d2 - Browse repository at this point
Copy the full SHA 9da50d2View commit details -
Provider cycleclock() for 32bit ARM targets (#47358)
Based on https://github.com/google/benchmark/blob/main/src/cycleclock.h (cherry picked from commit 060a492)
Configuration menu - View commit details
-
Copy full SHA for fcf02e8 - Browse repository at this point
Copy the full SHA fcf02e8View commit details -
strengthen setglobal to default to release-consume ordering (#47742)
Configuration menu - View commit details
-
Copy full SHA for 628c953 - Browse repository at this point
Copy the full SHA 628c953View commit details -
fix unescaping in
global
expressions (#47719)This fixes some issues around macro hygiene in `global` expressions. Apparently we always treat l-values in global expressions as being escaped, but we still need to be careful to handle type annotations and destructuring correctly. (cherry picked from commit cc25a13)
Configuration menu - View commit details
-
Copy full SHA for dfec160 - Browse repository at this point
Copy the full SHA dfec160View commit details -
Refactor and document sorting dispatch (#47383)
* create an internal `_sort!` function and use it (rename the existing `_sort!` to `__sort!`) * test for several of bugs that slipped through test suite * Give each sorting pass and DEFAULT_STABLE a docstring * add pretty printing for the new algorithms that are much more flexible than the old ones * fix unexpected allocations in Radix Sort fixes #47474 in this PR rather than separate to avoid dealing with the merge * support and test backwards compatibility with packages that depend in sorting internals * support 3-, 5-, and 6-argument sort! for backwards compatibility * overhall scratch space handling make _sort! return scratch space rather than sorted vector so that things like IEEEFloatOptimization can re-use the scratch space allocated on their first recursive call * test handling -0.0 in IEEEFloatOptimization * fix and test bug where countsort's correct overflow behavior triggers error due to unexpected promotion to UInt (cherry picked from commit cee0a04)
Configuration menu - View commit details
-
Copy full SHA for d8cbffd - Browse repository at this point
Copy the full SHA d8cbffdView commit details -
Comment out test in subtype that causes hang due to StackOverflow(#47792
) (cherry picked from commit 327b7ac)
Configuration menu - View commit details
-
Copy full SHA for 930314e - Browse repository at this point
Copy the full SHA 930314eView commit details -
Prioritize build_dir for generated headers (#47783)
(cherry picked from commit 0feaf5c)
Configuration menu - View commit details
-
Copy full SHA for 01ae8b7 - Browse repository at this point
Copy the full SHA 01ae8b7View commit details -
Set
OPENBLAS_NUM_THREADS=1
on local Distributed workers (#47803)This should prevent LinearAlgebra from trying to increase our OpenBLAS thread count in its `__init__()` method when we're not trying to enable threaded BLAS. (cherry picked from commit a8b3994)
Configuration menu - View commit details
-
Copy full SHA for dba443d - Browse repository at this point
Copy the full SHA dba443dView commit details -
Add native julia fmod (#47501)
* Add native julia rem Co-authored-by: Alex Arslan <ararslan@comcast.net> (cherry picked from commit cf5ae03)
Configuration menu - View commit details
-
Copy full SHA for ce7a372 - Browse repository at this point
Copy the full SHA ce7a372View commit details -
Fix libjulia install name and libjulia-internal rpath on OS X (#47220)
(cherry picked from commit de4f1c3)
Configuration menu - View commit details
-
Copy full SHA for 712a123 - Browse repository at this point
Copy the full SHA 712a123View commit details -
Replace the
.ji
serialization with sysimage formatThis unifies two serializers, `dump.c` (used for packages) and `staticdata.c` (used for system images). It adopts the `staticdata` strategy, adding support for external linkage, uniquing of MethodInstances & types, method extensions, external specializations, and invalidation. This lays the groundwork for native code caching as done with system images. Co-authored-by: Valentin Churavy <v.churavy@gmail.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Tim Holy <tim.holy@gmail.com> (cherry picked from commit cbfdb3f)
Configuration menu - View commit details
-
Copy full SHA for d561447 - Browse repository at this point
Copy the full SHA d561447View commit details -
Allow re-initialization and caching of foreign types (#47407)
Co-authored-by: Tim Holy <tim.holy@gmail.com> Co-authored-by: Max Horn <max@quendi.de> (cherry picked from commit e06a591)
Configuration menu - View commit details
-
Copy full SHA for f8a5cd6 - Browse repository at this point
Copy the full SHA f8a5cd6View commit details
Commits on Dec 14, 2022
-
Fix physical_memory exports. (#47859)
(cherry picked from commit 5a6c808)
Configuration menu - View commit details
-
Copy full SHA for 12a4863 - Browse repository at this point
Copy the full SHA 12a4863View commit details -
Fix missing GC root in Symbol construction (#47865)
The `Symbol` constructor in boot.jl was not using the unsafe_convert mechanism, becuase it is unavailable at this point in bootstrap. However, it was also not GC-rooting the string some other way, resulting in potential memory corruption. Fix that by manually inlining the :foreigncall and setting up the root appropriately. (cherry picked from commit b5a6b0f)
Configuration menu - View commit details
-
Copy full SHA for 2866e26 - Browse repository at this point
Copy the full SHA 2866e26View commit details -
TOML: print: handle mixed vector of dicts and non-dicts (#47876)
(cherry picked from commit 4ff6288)
Configuration menu - View commit details
-
Copy full SHA for 0b845b1 - Browse repository at this point
Copy the full SHA 0b845b1View commit details -
Fixups for #47383 (fixes
runbenchmarks("sort")
) (#47822)* add test demonstrating overflow in countsort * fix overflow in countsort * remove unnecessary type annotations (fixes tests) This fixes the test failure because it allows for automatic conversion. The manual for implementing the AbstractArray interface also does not recomend a type signature for the value arg in setindex!. Co-authored-by: Lilith Hafner <Lilith.Hafner@gmail.com> (cherry picked from commit 965bc7d)
Configuration menu - View commit details
-
Copy full SHA for 3d80653 - Browse repository at this point
Copy the full SHA 3d80653View commit details -
This behaved a bit differently than Base.rewrap_unionall, which meant it might make types like `Any where T` from `supertype(struct A{T} <: Any)`. This can confuse subtyping, which does not expect other types to appear to be wider than Any. (cherry picked from commit c0d9367)
Configuration menu - View commit details
-
Copy full SHA for a548ee3 - Browse repository at this point
Copy the full SHA a548ee3View commit details -
call specialized method instance when encountering unspecialized sparams
In some instances, the preferred compilation signature will require sparams to be provided at runtime. When we build the cache around these, we need to make sure the method instance we are calling has those values computed for the current signature, and not use the widened signature. But we can still compile for the widened signature, we just need to make sure we create a cache entry for every narrower call signature. Fix #47476 (cherry picked from commit 16d3b92)
Configuration menu - View commit details
-
Copy full SHA for 31df7c8 - Browse repository at this point
Copy the full SHA 31df7c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9827f1d - Browse repository at this point
Copy the full SHA 9827f1dView commit details -
ensure types are UnionAll wrapped are cached correctly for widened Va…
Configuration menu - View commit details
-
Copy full SHA for a506f43 - Browse repository at this point
Copy the full SHA a506f43View commit details
Commits on Dec 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3e1373e - Browse repository at this point
Copy the full SHA 3e1373eView commit details -
Reduce invalidations when loading JuliaData packages (#47889)
(cherry picked from commit e84634e)
Configuration menu - View commit details
-
Copy full SHA for 5848e99 - Browse repository at this point
Copy the full SHA 5848e99View commit details -
intersect: fix a minor soundness issue with supertypes (#47813)
When doing intersection, we might end up with a value in `env` (as the only possible *value* for that parameter) without properly considering that the parameter might be a TypeVar. (cherry picked from commit 26a7dbb)
Configuration menu - View commit details
-
Copy full SHA for 86e8ef9 - Browse repository at this point
Copy the full SHA 86e8ef9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8432d4f - Browse repository at this point
Copy the full SHA 8432d4fView commit details
Commits on Dec 19, 2022
-
revert promotions of abstract arrays inside other arrays (#47893)
(cherry picked from commit 427432e)
Configuration menu - View commit details
-
Copy full SHA for eba98e5 - Browse repository at this point
Copy the full SHA eba98e5View commit details
Commits on Dec 20, 2022
-
Revert "Emit safepoints at function entry (#41616)"
This reverts commit 1a7a131.
KristofferC committedDec 20, 2022 Configuration menu - View commit details
-
Copy full SHA for a16ffd6 - Browse repository at this point
Copy the full SHA a16ffd6View commit details -
Revert "improve performance issue of
@nospecialize
-d keyword func c…KristofferC committedDec 20, 2022 Configuration menu - View commit details
-
Copy full SHA for 5a684f0 - Browse repository at this point
Copy the full SHA 5a684f0View commit details -
only load extensions once dependencies have finished loading (#47927)
(cherry picked from commit 9be3c85)
Configuration menu - View commit details
-
Copy full SHA for 327e081 - Browse repository at this point
Copy the full SHA 327e081View commit details -
Precompile cache: always add worklist CIs (#47924)
We cache only those external CodeInstances that link back to the package being precompiled. Formerly we required a backedge; this PRs adds any whose `specTypes` could only link back to the package. This scoops up a few runtime-dispatched CodeInstances and their callees. (cherry picked from commit 1f0700a)
Configuration menu - View commit details
-
Copy full SHA for 95cb3a8 - Browse repository at this point
Copy the full SHA 95cb3a8View commit details -
put back the old QuickSort, PartialQuickSort, and MergeSort algorithm…
Configuration menu - View commit details
-
Copy full SHA for f17d1df - Browse repository at this point
Copy the full SHA f17d1dfView commit details -
add bounds check to Slices indexing (#47622)
Co-authored-by: Simon Byrne <simonbyrne@gmail.com> (cherry picked from commit d7363d8)
Configuration menu - View commit details
-
Copy full SHA for 3ea7f6c - Browse repository at this point
Copy the full SHA 3ea7f6cView commit details
Commits on Dec 27, 2022
-
Reduce codegen lock scope (#46836)
(cherry picked from commit 09a6ff8)
Configuration menu - View commit details
-
Copy full SHA for 22789c0 - Browse repository at this point
Copy the full SHA 22789c0View commit details -
Implement support for object caching through pkgimages (#47184)
This implements caching native code in "package images" (pkgimages). We now write two serialization files, one ending in `*.ji` and the other with the platform dynamic library extension (e.g., `*.so`). The `*.ji` contains "extended" header information (include the source-code dump for Revise), whereas the dynamic library includes the Julia objects, including LLVM-generated native code. Native code is compiled once during precompilation and then a second time to build a "clean" module. When we find an edge to an external function (already cached in anloaded pkgimage), we emit a global variable which we will patch during loading with the address of the function to call. This allows us to leverage the standard multiversioning capabilities. Co-authored-by: Tim Holy <tim.holy@gmail.com> Co-authored-by: Kristoffer Carlsson <kristoffer.carlsson@chalmers.se> Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com> Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com> Co-authored-by: Max Horn <max@quendi.de> Co-authored-by: Michael Schlottke-Lakemper <michael@sloede.com> Co-authored-by: Alex Ames <alexander.m.ames@gmail.com> (cherry picked from commit a2db90f)
Configuration menu - View commit details
-
Copy full SHA for 9a592dd - Browse repository at this point
Copy the full SHA 9a592ddView commit details -
Apply
InitialOptimizations
more consistently in sorting & fix dispa…Configuration menu - View commit details
-
Copy full SHA for 7880930 - Browse repository at this point
Copy the full SHA 7880930View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6adc428 - Browse repository at this point
Copy the full SHA 6adc428View commit details