github-actions[bot] [Fri, 22 Sep 2023 17:14:27 +0000 (10:14 -0700)]
[release/8.0-rc2] Ensure that embedded broadcast checks the base type of the parent node (#92459)
* Ensure that embedded broadcast checks the base type of the parent node
* Ensure the regression test exits if AVX2 is not supported
* Also handle embedded broadcasts for mismatched memory sizes
---------
Co-authored-by: Tanner Gooding <tagoo@outlook.com>
dotnet-maestro[bot] [Fri, 22 Sep 2023 15:45:56 +0000 (08:45 -0700)]
Update dependencies from https://github.com/dotnet/emsdk build
20230921.3 (#92454)
Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport
From Version 8.0.0-rc.2.23469.4 -> To Version 8.0.0-rc.2.23471.3
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
github-actions[bot] [Fri, 22 Sep 2023 03:20:42 +0000 (20:20 -0700)]
[release/8.0-rc2] Make HostModel PEUtils always read/write little endian (#92441)
* Make HostModel PEUtils always read/write little endian
* PR feeback - helper methods
---------
Co-authored-by: Elinor Fung <elfung@microsoft.com>
github-actions[bot] [Fri, 22 Sep 2023 01:58:50 +0000 (18:58 -0700)]
[release/8.0-rc2] Address feedback and fix some TensorPrimitives issues (#92437)
* Address feedback and fix some TensorPrimitives issues
- Added a few APIs based on initial feedback: Abs (vectorized), Log2, and element-wise Max/Min{Magnitude}
- Renamed L2Normalize to Norm
- Fixed semantics of Min/MaxMagnitude to return original value rather than the absolute value
- Renamed a few helper types for consistency
- Added tests
* Add a few more uses of Tolerance
---------
Co-authored-by: Stephen Toub <stoub@microsoft.com>
github-actions[bot] [Fri, 22 Sep 2023 01:54:40 +0000 (18:54 -0700)]
[release/8.0-rc2] [browser] Fix SIMD+EH check (#92439)
* Move simd+eh check after emcripten provided build time values
* Call cwraps.mono_wasm_abort from runtimeHelpers.abort when cwraps are ready (onRuntimeInitializedAsync)
* Assign early mono_wasm_exit and abort even earlier
* Fire feature check before awaiting wasm download, but await it after.
* Whitespaces
---------
Co-authored-by: Marek Fišera <mara@neptuo.com>
Steve Pfister [Thu, 21 Sep 2023 22:37:35 +0000 (15:37 -0700)]
[release/8.0-rc2] Bump downlevel version to 7.0.12 (#92419)
Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
github-actions[bot] [Thu, 21 Sep 2023 22:37:09 +0000 (15:37 -0700)]
JIT: Fix invalid containment of vector broadcasts (#92371)
The containment checks for vector broadcasts were missing a size check,
meaning that a uint broadcast could contain a ubyte/ushort indirection.
That would lead to out-of-bounds reads.
Fix #83387
Co-authored-by: Jakob Botsch Nielsen <jakob.botsch.nielsen@gmail.com>
github-actions[bot] [Thu, 21 Sep 2023 17:52:39 +0000 (10:52 -0700)]
[release/8.0-rc2] [CI][Android] Build mono runtime for Android on PRs (#92411)
* [CI][Android] Build mono runtime for Android on PRs
* [CI][Android] Build and run smoke tests
* Mimic ios/tvos devices job
---------
Co-authored-by: mdh1418 <mitchhwang1418@gmail.com>
github-actions[bot] [Thu, 21 Sep 2023 15:35:35 +0000 (08:35 -0700)]
Fix the VN for xor operation (#92372)
Co-authored-by: Kunal Pathak <Kunal.Pathak@microsoft.com>
github-actions[bot] [Thu, 21 Sep 2023 09:25:17 +0000 (02:25 -0700)]
[release/8.0] Properly handle debugger-enumerating interior pointers and enregistered refs (#92360)
* Fix issue with enregistered values
* Fix assert and enregistered ref reporting
* Fix issue from merge
---------
Co-authored-by: Lee Culver <leculver@microsoft.com>
Co-authored-by: Juan Sebastian Hoyos Ayala <juan.hoyos@microsoft.com>
Co-authored-by: Juan Hoyos <19413848+hoyosjs@users.noreply.github.com>
github-actions[bot] [Thu, 21 Sep 2023 09:24:45 +0000 (02:24 -0700)]
[release/8.0-rc2] Fixes for LLVM AOT on Windows from @lateralusX (#92365)
* Fixes for LLVM AOT on Windows from @lateralusX
* fix HOST/TARGET issue
---------
Co-authored-by: Jo Shields <directhex@apebox.org>
github-actions[bot] [Thu, 21 Sep 2023 09:24:03 +0000 (02:24 -0700)]
Add missing case for constrained gsharedvt call. (#92347)
https://github.com/dotnet/runtime/commit/
1b788f4dc3e3a8829488e52c032ad6a70671e070
added a new value to our MonoRgctxInfoType enum type, but appears
that all cases where not full adjusted. Running System.Buffers tests
in full AOT hits the assert in info_equal about missing case,
https://github.com/dotnet/runtime/blob/
0dc5903679606b072adac70a268cdb77d1147b3e/src/mono/mono/mini/mini-generic-sharing.c#L2908.
This commit adds the new enum value and align handling similar to other cases added
by that commit.
Co-authored-by: lateralusX <lateralusx.github@gmail.com>
Ankit Jain [Wed, 20 Sep 2023 22:53:04 +0000 (18:53 -0400)]
[release/8.0-rc2][wasm] Add a dependency on dotnet/installer to get the latest (#92353)
* [wasm] Add a dependency on dotnet/installer to get the latest
And update version from `.NET 8.0.1xx SDK` channel.
(cherry picked from commit
c821c361321d710aae7a24a6293a876ddcbf374e)
* [wasm] WBT: Use --skip-sign-check when installing workloads
* [wasm] WBT: Update blazor tests to track changed path for Pages
.. from `Pages/` to `Components/Pages/`.
dotnet-maestro[bot] [Wed, 20 Sep 2023 16:26:56 +0000 (09:26 -0700)]
Update dependencies from https://github.com/dotnet/emsdk build
20230919.4 (#92322)
Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport
From Version 8.0.0-rc.2.23469.1 -> To Version 8.0.0-rc.2.23469.4
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Maoni Stephens [Wed, 20 Sep 2023 16:25:14 +0000 (09:25 -0700)]
[release/8.0-rc2] porting DATAS change back to RC2 (#92323)
* new synchronization mechanism for DATAS (#90726)
The current mechanism has a fundamental flaw which is the idling threads can start running at unpredictable times when they are woken up. This causes all sorts of problems. For example, when a thread gets here in gc_thread_function -
`if (n_heaps <= heap_number)`
if it's true it's supposed to wait. But its execution could be delayed so after it reads n_heaps it can stop for a while since no thread is waiting on this thread anyway... till some time later when a heap count changes happens again and it requires this thread to participating. And now this thread does the comparison and discovers that it needs to wait so it goes idle and all other threads will just be waiting for this thread to join.
Another example is it's not safe to change the heap count for a join from a larger one to a smaller one. It's fine to change from a smaller one to a larger one because all the threads participating will have to run in order for a join to finish. But if no one is waiting on a thread, it could just wake up from the event being set by the last thread joining and not run for a while. Then go back to the respin loop at a point where the color was changed and changed again! So now it thinks it can proceed with a join it does not belong to. And of course that wouldn't work.
The way threads are going idle/waking up is hard to keep track of - not only does it involve the gc_start_event and gc_idle_thread_event, it also uses WaitForGCEvent which is used by SuspendEE/RestartEE which in turn means whenever we want to call these we'd need to care about how that would affect this.
The new mechanism only uses gc_start_event and gc_idle_thread_event, but I changed gc_idle_thread_event to a per heap event. We can easily track which threads are going idling easily - whenever a thread is about to wait on the idle event, we increase the current idle_thread_count. And when we increase the heap count we only set the gc_idle_thread_event for the new heaps that are about to participate so we can deduct that many from idle_thread_count. There's a much simpler code path between "we know we don't need these threads anymore" to "these threads are at a known point" because the next time gc_start_event is set (ie, a GC is requested) we make sure to get these threads to a good known point, ie, we wait till all of them have completed increasing idle_thread_count.
Also fixed a couple of other problems that I hit while testing the new mechanism -
We are setting freeable_uoh_segment and freeable_soh_segment in decommission_heap to DECOMMISSIONED_REGION_P. And this causes us to simply lose the value for them. We should make sure we do push these to the free regions before we start changing the heap count.
We should also call background_delay_delete_uoh_segments before we start changing the heap count so we can get rid of the regions marked with heap_segment_flags_uoh_delete. If we allow these to be rearranged in equalize_promoted_bytes it means the order can change the invariant of the first region never being deleted no longer holds true and we can AV in this method.
I added an new method delay_free_segments to perform both tasks.
The accounting of generation_free_list_space is slightly off for LOH which causes us to hit assert (gen_size >= dd_fragmentation (dd)); in change_heap_count because we were not counting the loh_pad size.
I also disabled assert (free_list_space_decrease <= dd_fragmentation (dd)); for gen2 since I'm seeing this fired while I'm doing stress runs. I have yet to investigate this since I didn't want to add yet more changes to this PR.
* fixed problems with how sampling is done and how we suspend to change heap count in DATAS (#91712)
+ Moved the sample recording into when we are suspended. The way we were calculating the throughput cost was in check_heap_count (which is called right after we restart EE on heap0), we record the msl_wait_time (and reset it to 0 for soh/uoh). This is not synchronized with the allocating threads (which are already running at this point). So what can happen is the allocating threads are already accumulated more wait time which is attributed to this GC but it's not within the period we are counting for this GC (and we lose this part for the next GC). For BGC this is incorrect. If an ephemeral GC did happen before the BGC starts, we'd be adding a sample for that GC which is basically correct for that eph GC. But if an eph GC did not happen, we are just adding a random sample which is calculating the tcp as (msl wait + whatever GC that was finished before this BGC) so obviously incorrect.
+ Added gen2 sampling - this was adapted from Peter's gen2 sampling changes. This serves as a backstop in case the existing sampling doesn't ever pick gen2 GC costs. I made the following fixes -
1) changed the way we calculated the median
2) moved where this is calculated to again avoid timing issues
3) made the gen2 samples actually count instead of losing that info if we happen to sample when a gen2 didn't just occur.
+ Changed when check_heap_count is called - the previous place is right after a suspension which does not help with spacing the suspension time out (it was "suspend for GC" then "immediately suspend to change heap count"). And it caused a problem with BGC which was it always tried to change heap count when it couldn't because BGC was in progress. I changed this to be on a timeout to intentionally space the suspensions out. Now most of the time, heap count changes happen due to this time out. If we are really in a situation where GCs are happening too quickly and we return from waiting on the ee_suspend_event due to a GC started, we change the heap count right before we do a GC. So this also helps with the BGC problem.
* gen0_bricks_cleared flag needs to be propagated when we change heap count (#90457)
when we change the heap count, in heap X we get a region from heap Y and the gen0_bricks_cleared flag from Y says false but heap X says true. So when we check the bricks on heap X, we assume it’s true but it’s not.
the fix is to detect if any heap has this flag as false and if so make all heaps’ flag false (tracking which region is moved from which other heap is something we need additional recording for and it’s not really worth doing just for this)
* a logging change
---------
Co-authored-by: Maoni0 <maoni@microsoft.com>
github-actions[bot] [Wed, 20 Sep 2023 06:12:45 +0000 (23:12 -0700)]
Don't generate AddMask as it requires more explicit consideration of semantics (#92308)
Co-authored-by: Tanner Gooding <tagoo@outlook.com>
Co-authored-by: Carlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
github-actions[bot] [Wed, 20 Sep 2023 06:12:03 +0000 (23:12 -0700)]
JIT: add missing xarch RMW case (#92293)
Handle the case where we're indirectly updating a local with a value
that is not a constant.
Fixes #92218.
Co-authored-by: Andy Ayers <andya@microsoft.com>
Co-authored-by: Carlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
github-actions[bot] [Wed, 20 Sep 2023 06:11:15 +0000 (23:11 -0700)]
Fix options Validation with objects have indexers (#92311)
Co-authored-by: Tarek Mahmoud Sayed <tarekms@microsoft.com>
Co-authored-by: Carlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
dotnet-maestro[bot] [Wed, 20 Sep 2023 00:12:11 +0000 (17:12 -0700)]
Update dependencies from https://github.com/dotnet/emsdk build
20230919.1 (#92306)
Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport
From Version 8.0.0-rtm.23469.3 -> To Version 8.0.0-rc.2.23469.1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
dotnet-maestro[bot] [Tue, 19 Sep 2023 20:00:17 +0000 (13:00 -0700)]
[release/8.0] Update dependencies from 7 repositories (#92143)
* Update dependencies from https://github.com/dotnet/emsdk build
20230915.1
Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport
From Version 8.0.0-rc.2.23463.1 -> To Version 8.0.0-rc.2.23465.1
* Update dependencies from https://github.com/dotnet/roslyn-analyzers build
20230916.2
Microsoft.CodeAnalysis.Analyzers , Microsoft.CodeAnalysis.NetAnalyzers
From Version 3.11.0-beta1.23464.2 -> To Version 3.11.0-beta1.23466.2
* Update dependencies from https://github.com/dotnet/roslyn-analyzers build
20230916.2
Microsoft.CodeAnalysis.Analyzers , Microsoft.CodeAnalysis.NetAnalyzers
From Version 3.11.0-beta1.23464.2 -> To Version 3.11.0-beta1.23466.2
* Update dependencies from https://github.com/dotnet/emsdk build
20230918.1
Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport
From Version 8.0.0-rc.2.23463.1 -> To Version 8.0.0-rc.2.23468.1
* Update dependencies from https://github.com/dotnet/emsdk build
20230918.2
Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport
From Version 8.0.0-rc.2.23463.1 -> To Version 8.0.0-rtm.23468.2
* Update dependencies from https://github.com/dotnet/roslyn-analyzers build
20230918.1
Microsoft.CodeAnalysis.Analyzers , Microsoft.CodeAnalysis.NetAnalyzers
From Version 3.11.0-beta1.23464.2 -> To Version 3.11.0-beta1.23468.1
* Update dependencies from https://github.com/dotnet/cecil build
20230918.2
Microsoft.DotNet.Cecil
From Version 0.11.4-alpha.23461.1 -> To Version 0.11.4-alpha.23468.2
* Update dependencies from https://github.com/dotnet/roslyn-analyzers build
20230918.1
Microsoft.CodeAnalysis.Analyzers , Microsoft.CodeAnalysis.NetAnalyzers
From Version 3.11.0-beta1.23464.2 -> To Version 3.11.0-beta1.23468.1
* Update dependencies from https://github.com/dotnet/msquic build
20230918.1
System.Net.MsQuic.Transport
From Version 8.0.0-alpha.1.23412.1 -> To Version 8.0.0-alpha.1.23468.1
* Update dependencies from https://github.com/dotnet/hotreload-utils build
20230918.2
Microsoft.DotNet.HotReload.Utils.Generator.BuildTool
From Version 8.0.0-alpha.0.23461.1 -> To Version 8.0.0-alpha.0.23468.2
* Update dependencies from https://github.com/dotnet/icu build
20230918.3
Microsoft.NETCore.Runtime.ICU.Transport
From Version 8.0.0-rc.2.23454.2 -> To Version 8.0.0-rtm.23468.3
* Roll back icu and emsdk to rc2 builds
* Update dependencies from https://github.com/dotnet/source-build-reference-packages build
20230919.1
Microsoft.SourceBuild.Intermediate.source-build-reference-packages
From Version 8.0.0-alpha.1.23463.1 -> To Version 8.0.0-alpha.1.23469.1
* Update dependencies from https://github.com/dotnet/emsdk build
20230919.3
Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport
From Version 8.0.0-rc.2.23463.1 -> To Version 8.0.0-rtm.23469.3
---------
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Carlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Larry Ewing <lewing@microsoft.com>
Carlos Sánchez López [Tue, 19 Sep 2023 19:24:32 +0000 (12:24 -0700)]
[release/8.0] Bump Microsoft.Private.IntelliSense package version (#92254)
dotnet-maestro[bot] [Tue, 19 Sep 2023 19:22:09 +0000 (12:22 -0700)]
Update dependencies from https://github.com/dotnet/roslyn build
20230919.1 (#92288)
Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
From Version 4.8.0-3.23468.4 -> To Version 4.8.0-3.23469.1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Matt Thalman [Tue, 19 Sep 2023 19:00:12 +0000 (14:00 -0500)]
Update Newtonsoft.Json from 13.0.1 to 13.0.3 (#92277)
* Update Newtonsoft.Json from 13.0.1 to 13.0.3
* Update source-build-externals
* Add prebuilt exclusion
github-actions[bot] [Tue, 19 Sep 2023 16:15:33 +0000 (09:15 -0700)]
[release/8.0] Fix downlevel build break in TensorPrimitives (#92270)
* Fix downlevel build break in TensorPrimitives
* Make net6.0 Tensors use ns2.0 implementation
---------
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Eric StJohn <ericstj@microsoft.com>
dotnet-maestro[bot] [Tue, 19 Sep 2023 16:09:48 +0000 (09:09 -0700)]
[release/8.0] Update dependencies from dotnet/roslyn (#92149)
* Update dependencies from https://github.com/dotnet/roslyn build
20230915.1
Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23465.1
* Update dependencies from https://github.com/dotnet/roslyn build
20230915.2
Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23465.2
* Update dependencies from https://github.com/dotnet/roslyn build
20230915.4
Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23465.4
* Update dependencies from https://github.com/dotnet/roslyn build
20230915.5
Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23465.5
* Use InterceptorsPreviewNamespaces instead of the InterceptorsPreview feature
* Update dependencies from https://github.com/dotnet/roslyn build
20230918.1
Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23468.1
* Bring back removed lines
* Add CSharpParseOption InterceptorsPreviewNamespaces feature to GeneratorTests.Helpers.cs
* Add TODO comment to remove feature
* Update dependencies from https://github.com/dotnet/roslyn build
20230918.3
Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23468.3
* Update dependencies from https://github.com/dotnet/roslyn build
20230918.4
Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23468.4
---------
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Carlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
github-actions[bot] [Tue, 19 Sep 2023 04:38:55 +0000 (21:38 -0700)]
[release/8.0] Use strategy in StrategyBasedComWrappers.ComputeVtables (#92250)
* Use strategy in StrategyBasedComWrappers.ComputeVtables
We didn't actually use the strategy object here, so users like WinForms can't actually use it.
* Update src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/Marshalling/StrategyBasedComWrappers.cs
Co-authored-by: Jackson Schuster <36744439+jtschuster@users.noreply.github.com>
---------
Co-authored-by: Jeremy Koritzinsky <jekoritz@microsoft.com>
Co-authored-by: Jackson Schuster <36744439+jtschuster@users.noreply.github.com>
dotnet bot [Tue, 19 Sep 2023 04:38:23 +0000 (21:38 -0700)]
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID
2270458 (#92258)
github-actions[bot] [Tue, 19 Sep 2023 04:38:03 +0000 (21:38 -0700)]
[release/8.0] Fix: Config binder generator doesn't generate code when named arguments are out of order (#92257)
* Fix Named parameters bug
* Test the generator only, don't compare generated file row by row
* Add other named parameter combinatios for other overloads in the test, add test for OptionsBuilder... and ServiceCollection extensins
* Adjust line numbers with source generator updates
* Move similar code section into helper method, don't exact exact line count
* Apply feedbacks
---------
Co-authored-by: Buyaa Namnan <bunamnan@microsoft.com>
Michael Sharp [Tue, 19 Sep 2023 01:55:53 +0000 (19:55 -0600)]
[release/8.0] Numerics and Tensors backport (#92245)
* added Bcl.Numerics
* Adding a naive implementation of various primitive tensor operations (#91228)
* Adding a naive implementation of various primitive tensor operations
* Adding tests covering the new tensor primitives APIs
* Adding tensor primitives APIs to the ref assembly
* Allow .NET Framework to build/run
* Sync TFMs between ref and src, csproj simplication and clean-up
* Apply suggestions from code review
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
* Don't use var
* Fix the S.N.Tensors readme and remove the file marking it as non-shipping
---------
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Co-authored-by: Michael Sharp <51342856+michaelgsharp@users.noreply.github.com>
* Start vectorizing TensorPrimitives (#91596)
* Start vectorizing TensorPrimitives
Just does two functions to establish the files into which the rest of the implementations can be moved.
* 6 more naive methods for Tensor Primitives. (#92142)
* 6 more naive methods
* updates from pr comments
* Add remaining set of TensorPrimitives APIs for .NET 8 (#92154)
* Add remaining set of TensorPrimitives APIs for .NET 8
Adds non-vectorized implementations of:
- Max
- Min
- MaxMagnitude
- MinMagnitude
- IndexOfMax
- IndexOfMin
- IndexOfMaxMagnitude
- ConvertToHalf (only on .NET Core)
- ConvertToSingle (only on .NET Core)
- IndexOfMinMagnitude
Adds vectorized implementations of:
- Sum
- SumOfSquares
- SumOfMagnitudes
- Product
- ProductOfSums
- ProductOfDifferences
Also includes the helpers that'll make it trivial to vectorize Dot.
Beyond vectorizing the non-vectorized ones, the vectorized implementations should be improved further, including:
- Handling alignment better
- Vectorizing the remainder that doesn't fit in a vector rather than falling back to scalar
* Cleanup after previous PR, vectorize CosineSimilarity/Dot/L2Normalize/Distance, add tests
* Address PR feedback, and fix a few other issues
* Fix TensorPrimitives.CosineSimilarity to use vectorized implementations (#92204)
* Fixed duplicated code from merge.
* New Microsoft.BCL.Numerics package (#91074)
* bcl numberics library added
* bcl done
* added explicit 2.1 target
* Minor doc updates
* Apply suggestions from code review
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
* fixes from PR comments
* minor csproj fixes
* fixed ref target frameworks
* minor ref csproj updates
* minor csproj updates
---------
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
* Microsoft.Bcl.Numerics.Tests: fix restore failure when DotNetBuildFromSource. (#91402)
* Microsoft.Bcl.Numerics.Tests: fix restore failure when DotNetBuildFromSource.
* Use NetCoreAppCurrent.
* Try fix CI test failures.
---------
Co-authored-by: Tanner Gooding <tagoo@outlook.com>
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Tom Deseyn <tom.deseyn@gmail.com>
github-actions[bot] [Mon, 18 Sep 2023 23:54:39 +0000 (16:54 -0700)]
[release/8.0] Update HttpClientJsonExtensions.Get.AsyncEnumerable.cs (#92199)
* Update HttpClientJsonExtensions.Get.AsyncEnumerable.cs
reuse method from ReadFromJsonAsAsyncEnumerable
* fix trailing space
* feat: add test case
* Update HttpClientJsonExtensions.Get.AsyncEnumerable.cs
add httpClient null check
* Update HttpClientJsonExtensions.Get.AsyncEnumerable.cs
fix trailing space style
* Update src/libraries/System.Net.Http.Json/tests/FunctionalTests/HttpClientJsonExtensionsTests.cs
Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
* refine updates
---------
Co-authored-by: Weihan Li <weihanli@outlook.com>
Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
github-actions[bot] [Mon, 18 Sep 2023 19:50:42 +0000 (12:50 -0700)]
[release/8.0] Make src gen for property setters consistent with reflection (#92167)
* Make src gen for property setters consistent with reflection
* Don't default value during initialization
* Remove unnecessary bang operator
* Don't default a property when it is a collection or child type
* Simply use of new variable; add to test
* Review feedback
---------
Co-authored-by: Steve Harter <steveharter@users.noreply.github.com>
github-actions[bot] [Mon, 18 Sep 2023 18:43:24 +0000 (11:43 -0700)]
[release/8.0] Fix wasi build. (#92232)
* Fix wasi build.
* dummy change in wasi README to trigger a build
* dummy change in wasi to trigger a build
---------
Co-authored-by: Zoltan Varga <vargaz@gmail.com>
Co-authored-by: Ankit Jain <radical@gmail.com>
github-actions[bot] [Mon, 18 Sep 2023 18:31:42 +0000 (11:31 -0700)]
[release/8.0] Check if loop body occured before loopTop and if so unmark alignment (#91918)
* Check if loop body occured before loopTop"
* Check if bbNatLoopNum is not NOT_IN_LOOP
* review feedback
---------
Co-authored-by: Kunal Pathak <Kunal.Pathak@microsoft.com>
Jakob Botsch Nielsen [Mon, 18 Sep 2023 17:24:19 +0000 (19:24 +0200)]
[release/8.0] JIT: Initialize jitstdout lazily (#92212)
* JIT: Initialize jitstdout lazily
Avoid duplicating a handle and doing several I/O operations on the
startup path. Fixes #91856 as a side effect.
* Fix jitShutdown
* Add volatile
* CSE
* Ensure jitstdout() is not used eagerly
* Move comment, fix printf -> jitprintf
* Clean up
github-actions[bot] [Mon, 18 Sep 2023 17:23:48 +0000 (10:23 -0700)]
JIT: Extract all side effects of the index in optRemoveRangeCheck (#92210)
optRemoveRangeCheck extracts only GTF_ASG from the bounds check. If the
BOUNDS_CHECK is complex, that results in silently dropping side effects
on the floor (see the example case).
The ideal fix is that we should always extract all side effects from the
index and length operands, however this has large regressions because
the length typically has an ARR_LENGTH that we then extract. This PR
instead has a surgical fix for the problem case that can be backported
to .NET 8. It extracts all side effects from the index, but keeps
extracting only GTF_ASG from the length to get around the issue
mentioned above.
Fix #91862
Co-authored-by: Jakob Botsch Nielsen <jakob.botsch.nielsen@gmail.com>
github-actions[bot] [Mon, 18 Sep 2023 17:22:10 +0000 (10:22 -0700)]
[release/8.0] [browser] Add link to docs to interop error messages (#92182)
* JS part
* C# part
---------
Co-authored-by: Marek Fišera <mara@neptuo.com>
github-actions[bot] [Mon, 18 Sep 2023 17:21:39 +0000 (10:21 -0700)]
[mono][aot] Avoid compiling the same method multiple times during dedup. (#92178)
Co-authored-by: Zoltan Varga <vargaz@gmail.com>
dotnet-maestro[bot] [Mon, 18 Sep 2023 17:20:30 +0000 (10:20 -0700)]
[release/8.0] Update dependencies from dnceng/internal/dotnet-optimization (#92177)
* Update dependencies from https://dev.azure.com/dnceng/internal/_git/dotnet-optimization build
20230915.3
optimization.linux-arm64.MIBC.Runtime , optimization.linux-x64.MIBC.Runtime , optimization.windows_nt-arm64.MIBC.Runtime , optimization.windows_nt-x64.MIBC.Runtime , optimization.windows_nt-x86.MIBC.Runtime , optimization.PGO.CoreCLR
From Version 1.0.0-prerelease.23464.6 -> To Version 1.0.0-prerelease.23465.3
* Update dependencies from https://dev.azure.com/dnceng/internal/_git/dotnet-optimization build
20230915.3
optimization.linux-arm64.MIBC.Runtime , optimization.linux-x64.MIBC.Runtime , optimization.windows_nt-arm64.MIBC.Runtime , optimization.windows_nt-x64.MIBC.Runtime , optimization.windows_nt-x86.MIBC.Runtime , optimization.PGO.CoreCLR
From Version 1.0.0-prerelease.23464.6 -> To Version 1.0.0-prerelease.23465.3
* Update dependencies from https://dev.azure.com/dnceng/internal/_git/dotnet-optimization build
20230915.3
optimization.linux-arm64.MIBC.Runtime , optimization.linux-x64.MIBC.Runtime , optimization.windows_nt-arm64.MIBC.Runtime , optimization.windows_nt-x64.MIBC.Runtime , optimization.windows_nt-x86.MIBC.Runtime , optimization.PGO.CoreCLR
From Version 1.0.0-prerelease.23464.6 -> To Version 1.0.0-prerelease.23465.3
---------
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
github-actions[bot] [Mon, 18 Sep 2023 17:13:31 +0000 (10:13 -0700)]
[workloads] Opt into using package groups (#92168)
This is to make sure the MSI's we generate for VS are recognized as the same. Enabling sxs workloads by itself caused the package id's that wrap the manifest MSI's to be different. This prevents that from happening.
Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
github-actions[bot] [Mon, 18 Sep 2023 17:11:57 +0000 (10:11 -0700)]
[release/8.0] Avoid marking property/event attributes multiple times (#92153)
* Avoid marking property attributes multiple times
* Fix test for nativeaot
* Add issue link
* Simplify test, fix bug for events, add more coverage
* Fix event tests
* Fix test for nativeaot
NativeAot requires a call to GetCustomAttribute for the
attributes to be kept.
---------
Co-authored-by: Sven Boemer <sbomer@gmail.com>
github-actions[bot] [Mon, 18 Sep 2023 17:09:53 +0000 (10:09 -0700)]
[release/8.0] Remove public provider from rundown session (#92048)
* add rundown check
* Update ep-session.c
* Check for rundown provider
* Fix
* Update src/mono/mono/eventpipe/ep-rt-types-mono.h
Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
* Fix cross plat build
* Revert previous changes
* Remove public provider from rundown session
* Finish reverting
* Update ep-session.c
---------
Co-authored-by: David Mason <davmason@microsoft.com>
Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
Viktor Hofer [Mon, 18 Sep 2023 15:10:45 +0000 (17:10 +0200)]
Merge pull request #92224 from dotnet/PackageREADMEsRelease80
[release/8.0] Add package readmes
Viktor Hofer [Mon, 18 Sep 2023 14:33:59 +0000 (16:33 +0200)]
Last clean-up
Viktor Hofer [Mon, 18 Sep 2023 14:00:28 +0000 (16:00 +0200)]
ConfigurationManager clean-up
Viktor Hofer [Mon, 18 Sep 2023 13:57:55 +0000 (15:57 +0200)]
More clean-up
Viktor Hofer [Mon, 18 Sep 2023 13:51:32 +0000 (15:51 +0200)]
Clean-up
Viktor Hofer [Mon, 18 Sep 2023 13:30:08 +0000 (15:30 +0200)]
Add ServiceController package readme
Viktor Hofer [Mon, 18 Sep 2023 12:57:53 +0000 (14:57 +0200)]
Fix trailing whitespace
Viktor Hofer [Mon, 18 Sep 2023 12:52:31 +0000 (14:52 +0200)]
Add System.Management packag readme
Viktor Hofer [Mon, 18 Sep 2023 12:19:24 +0000 (14:19 +0200)]
MathF PR feedback
Viktor Hofer [Mon, 18 Sep 2023 12:17:31 +0000 (14:17 +0200)]
Replace important markdown tag with bold
Viktor Hofer [Mon, 18 Sep 2023 12:15:47 +0000 (14:15 +0200)]
Remove en-US culture from links
Viktor Hofer [Mon, 18 Sep 2023 12:15:20 +0000 (14:15 +0200)]
Update Feedback library name markdown style
Viktor Hofer [Mon, 18 Sep 2023 12:14:49 +0000 (14:14 +0200)]
Remove undocumented P2 package readmes
Eric StJohn [Sat, 16 Sep 2023 19:46:24 +0000 (12:46 -0700)]
Add Microsoft.Extensions.Configuration.Binder readme.
Eric StJohn [Sat, 16 Sep 2023 19:20:41 +0000 (12:20 -0700)]
Fill template for Microsoft.Extensions.Configuration & Abstractions
Michael Sharp [Wed, 13 Sep 2023 05:13:22 +0000 (23:13 -0600)]
added Bcl.Numerics
Carlos Sánchez López [Mon, 11 Sep 2023 14:44:36 +0000 (08:44 -0600)]
Apply suggestions for System.Diagnostics.EventLog & PerformanceCounter
Dan Moseley [Fri, 8 Sep 2023 20:49:07 +0000 (14:49 -0600)]
Apply suggestions from code review
Co-authored-by: Shay Rojansky <roji@roji.org>
Dan Moseley [Fri, 8 Sep 2023 19:29:14 +0000 (13:29 -0600)]
Update src/libraries/System.Speech/src/PACKAGE.md
Dan Moseley [Fri, 8 Sep 2023 19:26:56 +0000 (13:26 -0600)]
Update src/libraries/Microsoft.Extensions.Http/src/PACKAGE.md
Co-authored-by: Anton Firszov <Anton.Firszov@microsoft.com>
Dan Moseley [Fri, 8 Sep 2023 19:26:15 +0000 (13:26 -0600)]
Update src/libraries/System.Speech/src/PACKAGE.md
Co-authored-by: MSDN.WhiteKnight <35516665+MSDN-WhiteKnight@users.noreply.github.com>
Dan Moseley [Fri, 8 Sep 2023 17:15:26 +0000 (11:15 -0600)]
tweak
Dan Moseley [Fri, 8 Sep 2023 17:11:33 +0000 (11:11 -0600)]
add oledb and odbc
Buyaa Namnan [Fri, 8 Sep 2023 16:27:53 +0000 (09:27 -0700)]
Remove unnecessary brackets
Steve Harter [Fri, 8 Sep 2023 15:03:03 +0000 (10:03 -0500)]
Update Hosting
Steve Harter [Fri, 8 Sep 2023 15:02:00 +0000 (10:02 -0500)]
Update Hosting
Steve Harter [Fri, 8 Sep 2023 14:59:46 +0000 (09:59 -0500)]
Update PACKAGE.md
Steve Harter [Fri, 8 Sep 2023 14:57:35 +0000 (09:57 -0500)]
Update PACKAGE.md
Steve Harter [Fri, 8 Sep 2023 14:54:36 +0000 (09:54 -0500)]
Add Microsoft.Extensions.Hosting.Abstractions
Dan Moseley [Thu, 7 Sep 2023 23:06:29 +0000 (17:06 -0600)]
space
Buyaa Namnan [Thu, 7 Sep 2023 23:03:00 +0000 (16:03 -0700)]
Remove extra space
Buyaa Namnan [Thu, 7 Sep 2023 22:57:49 +0000 (15:57 -0700)]
Update System.DirectoryServices.AccountManagement PACKAGE.md
Buyaa Namnan [Thu, 7 Sep 2023 21:32:13 +0000 (14:32 -0700)]
Apply suggestions from code review
Buyaa Namnan [Thu, 7 Sep 2023 20:47:14 +0000 (13:47 -0700)]
Update PACKAGE.md for System.DirectoryServices
Steve Harter [Thu, 7 Sep 2023 19:33:55 +0000 (14:33 -0500)]
Add Microsoft.Extensions.Hosting.WindowsServices
Steve Harter [Thu, 7 Sep 2023 17:55:33 +0000 (12:55 -0500)]
Add Microsoft.Extensions.Hosting
Steve Harter [Thu, 7 Sep 2023 16:58:44 +0000 (11:58 -0500)]
Add Microsoft.Extensions.DependencyInjections.Abstractions
Steve Harter [Thu, 7 Sep 2023 16:10:45 +0000 (11:10 -0500)]
Add Microsoft.Extensions.DependencyInjection
David Cantú [Thu, 7 Sep 2023 15:54:12 +0000 (10:54 -0500)]
Add Microsoft.Extensions.Caching.Memory package.md details
Tarek Mahmoud Sayed [Wed, 6 Sep 2023 20:56:28 +0000 (13:56 -0700)]
Fill Microsoft.Bcl.TimeProvider doc
Natalia Kondratyeva [Wed, 6 Sep 2023 20:04:45 +0000 (22:04 +0200)]
Update Microsoft.Extensions.Http
Tarek Mahmoud Sayed [Wed, 6 Sep 2023 18:39:41 +0000 (11:39 -0700)]
Fill Microsoft.Extensions.Options.ConfigurationExtensions doc
Anton Firszov [Wed, 6 Sep 2023 16:18:55 +0000 (18:18 +0200)]
Readme for WinHttpHandler
Eirik Tsarpalis [Wed, 6 Sep 2023 15:40:23 +0000 (16:40 +0100)]
Add System.Net.Http.Json README
Krzysztof Wicher [Wed, 6 Sep 2023 07:27:14 +0000 (09:27 +0200)]
Add System.IO.Ports
Tarek Mahmoud Sayed [Wed, 6 Sep 2023 00:33:29 +0000 (17:33 -0700)]
Fill System.Text.Encoding.CodePages doc
Tarek Mahmoud Sayed [Tue, 5 Sep 2023 23:52:01 +0000 (16:52 -0700)]
Fill Microsoft.Extensions.Options doc
Tarek Mahmoud Sayed [Tue, 5 Sep 2023 22:51:53 +0000 (15:51 -0700)]
Remove trailing spaces from Speech doc file
Tarek Mahmoud Sayed [Tue, 5 Sep 2023 22:00:48 +0000 (15:00 -0700)]
Fill Microsoft.Extensions.Primitives doc
Stephen Toub [Tue, 5 Sep 2023 21:43:54 +0000 (17:43 -0400)]
Add System.Threading.Channels package.md details
Stephen Toub [Tue, 5 Sep 2023 21:34:15 +0000 (17:34 -0400)]
Add Microsoft.Bcl.Async package.md details
Tarek Mahmoud Sayed [Tue, 5 Sep 2023 19:57:26 +0000 (12:57 -0700)]
Fill Microsoft.Extensions.Logging.Debug doc
Tarek Mahmoud Sayed [Tue, 5 Sep 2023 19:36:37 +0000 (12:36 -0700)]
Fill Microsoft.Extensions.Logging.Console doc
Tarek Mahmoud Sayed [Tue, 5 Sep 2023 19:09:35 +0000 (12:09 -0700)]
Fill Microsoft.Extensions.Logging doc
Tarek Mahmoud Sayed [Tue, 5 Sep 2023 18:20:28 +0000 (11:20 -0700)]
Fill Microsoft.Extensions.Logging.Abstraction doc
Eric StJohn [Tue, 5 Sep 2023 17:12:30 +0000 (10:12 -0700)]
Add package readme for System.Speech
Carlos Sánchez López [Fri, 1 Sep 2023 17:25:06 +0000 (10:25 -0700)]
System.Diagnostics.PerformanceCounter
carlossanlop [Fri, 1 Sep 2023 02:06:26 +0000 (19:06 -0700)]
System.Diagnostics.EventLog
Viktor Hofer [Mon, 28 Aug 2023 11:59:05 +0000 (13:59 +0200)]
Add package readmes