Commit Graph

138471 Commits

Author SHA1 Message Date
Andy Ayers 27d23218a5
Remove getTypeForBoxOnStack from jit interface (#114754)
Along with the `StackAllocatedBox` type. The JIT can now represent on-stack
boxes directly via class layouts.

Closes #114204
2025-04-19 08:55:47 -07:00
Adeel Mujahid 07f3e33da7
Deref pointer in minipal/time (#114598)
* Deref pointer in minipal/time

* Update minipalconfig.h.in

* Update configure.cmake
2025-04-19 08:22:21 -07:00
Vlad Brezae d874371be0
[clr-interp] Add support for virtual method calls (#114529)
* [clr-interp] Add support for virtual calls (including interface)

This follows a trivial approach where we resolve the MethodDesc of the target method by reusing existing functionality. Long term, virtual dispatching should go through slots continaing interpreter IR code pointer, in a similar fashion to JIT.

* Add test for virtual method dispatch

* Disable test for now

No gc support yet
2025-04-19 16:22:15 +03:00
Marek Fišera 50c020e4f0
[browser] Preload dotnet.js (#114534) 2025-04-19 12:59:07 +02:00
dotnet bot 69329ef066
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2690943 (#114807)
* Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2690019

* Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2690137

* Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2690137

* Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2690605

* Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2690658

* Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2690658
2025-04-19 10:26:44 +02:00
dotnet-maestro[bot] a71b101f53
[main] Update dependencies from dotnet/roslyn (#114761)
* Update dependencies from https://github.com/dotnet/roslyn build 20250416.17

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.Analyzers , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 5.0.0-1.25214.5 -> To Version 5.0.0-1.25216.17

* Update dependencies from https://github.com/dotnet/roslyn build 20250418.9

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.Analyzers , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 5.0.0-1.25214.5 -> To Version 5.0.0-1.25218.9

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Larry Ewing <lewing@microsoft.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
2025-04-19 10:25:20 +02:00
dotnet-maestro[bot] 29cb0889b3
Update dependencies from https://github.com/dotnet/arcade build 20250416.2 (#114777)
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.XliffTasks , Microsoft.DotNet.XUnitAssert , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
 From Version 10.0.0-beta.25214.8 -> To Version 10.0.0-beta.25216.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Marek Fišera <mara@neptuo.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
2025-04-19 10:24:25 +02:00
dotnet-maestro[bot] 2e57030067
Update dependencies from https://github.com/dotnet/command-line-api build 20250418.1 (#114829)
Microsoft.SourceBuild.Intermediate.command-line-api , System.CommandLine
 From Version 0.1.620801 -> To Version 0.1.621801

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2025-04-19 10:22:48 +02:00
Aaron Robinson 55b8f9fe7b
Replace compiler specific options with C++ `thread_local` keyword (#114660)
* Rename gCurrentThreadInfo to t_CurrentThreadInfo.
---------
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
2025-04-18 20:42:13 -07:00
Miha Zupan 2db28217c4
Remove unsafe code from Http KnownHeaders (#114757) 2025-04-19 02:13:01 +02:00
Jeremy Barton ac8e79a56b
Change CrlBuilderTests to use a static RSA key with better support.
Change from using the "big exponent" key to some other key (which uses the normal exponent of F5), as not all versions of Android like big exponent keys.
2025-04-18 17:12:38 -07:00
dotnet-maestro[bot] f825bd9a99
[main] Update dependencies from dotnet/cecil, dotnet/hotreload-utils, dotnet/runtime, dotnet/runtime-assets, dotnet/sdk, dotnet/source-build-externals (#113111)
* Update dependencies from https://github.com/dotnet/icu build 20250302.1

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 10.0.0-preview.3.25125.1 -> To Version 10.0.0-preview.3.25152.1

* Update dependencies from https://github.com/dotnet/runtime-assets build 20250303.1

Microsoft.DotNet.CilStrip.Sources , Microsoft.NET.HostModel.TestData , System.ComponentModel.TypeConverter.TestData , System.Data.Common.TestData , System.Drawing.Common.TestData , System.Formats.Tar.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Text.RegularExpressions.TestData , System.Windows.Extensions.TestData
 From Version 10.0.0-beta.25126.1 -> To Version 10.0.0-beta.25153.1

* Update dependencies from https://github.com/dotnet/hotreload-utils build 20250303.1

Microsoft.DotNet.HotReload.Utils.Generator.BuildTool
 From Version 10.0.0-alpha.0.25126.1 -> To Version 10.0.0-alpha.0.25153.1

* Update dependencies from https://github.com/dotnet/sdk build 20250309.6

Microsoft.DotNet.ApiCompat.Task
 From Version 10.0.100-preview.3.25126.5 -> To Version 10.0.100-preview.3.25159.6

* Update dependencies from https://github.com/dotnet/cecil build 20250302.2

Microsoft.SourceBuild.Intermediate.cecil , Microsoft.DotNet.Cecil
 From Version 0.11.5-alpha.25125.1 -> To Version 0.11.5-alpha.25152.2

* Update dependencies from https://github.com/dotnet/icu build 20250309.2

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 10.0.0-preview.3.25125.1 -> To Version 10.0.0-preview.3.25159.2

* Update dependencies from https://github.com/dotnet/runtime-assets build 20250310.1

Microsoft.DotNet.CilStrip.Sources , Microsoft.NET.HostModel.TestData , System.ComponentModel.TypeConverter.TestData , System.Data.Common.TestData , System.Drawing.Common.TestData , System.Formats.Tar.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Text.RegularExpressions.TestData , System.Windows.Extensions.TestData
 From Version 10.0.0-beta.25126.1 -> To Version 10.0.0-beta.25160.1

* Update dependencies from https://github.com/dotnet/hotreload-utils build 20250310.1

Microsoft.DotNet.HotReload.Utils.Generator.BuildTool
 From Version 10.0.0-alpha.0.25126.1 -> To Version 10.0.0-alpha.0.25160.1

* Update dependencies from https://github.com/dotnet/runtime build 20250316.3

Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , runtime.native.System.IO.Ports , System.Reflection.Metadata , System.Reflection.MetadataLoadContext , System.Text.Json , Microsoft.SourceBuild.Intermediate.runtime.linux-x64
 From Version 10.0.0-preview.3.25152.4 -> To Version 10.0.0-preview.3.25166.3

* Update dependencies from https://github.com/dotnet/icu build 20250317.1

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 10.0.0-preview.3.25125.1 -> To Version 10.0.0-preview.4.25167.1

* Update dependencies from https://github.com/dotnet/runtime-assets build 20250317.1

Microsoft.DotNet.CilStrip.Sources , Microsoft.NET.HostModel.TestData , System.ComponentModel.TypeConverter.TestData , System.Data.Common.TestData , System.Drawing.Common.TestData , System.Formats.Tar.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Text.RegularExpressions.TestData , System.Windows.Extensions.TestData
 From Version 10.0.0-beta.25126.1 -> To Version 10.0.0-beta.25167.1

* Update dependencies from https://github.com/dotnet/hotreload-utils build 20250317.1

Microsoft.DotNet.HotReload.Utils.Generator.BuildTool
 From Version 10.0.0-alpha.0.25126.1 -> To Version 10.0.0-alpha.0.25167.1

* Update dependencies from https://github.com/dotnet/source-build-externals build 20250318.1

Microsoft.SourceBuild.Intermediate.source-build-externals
 From Version 10.0.607901 -> To Version 10.0.616801

* Update dependencies from https://github.com/dotnet/runtime build 20250323.3

Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , runtime.native.System.IO.Ports , System.Reflection.Metadata , System.Reflection.MetadataLoadContext , System.Text.Json , Microsoft.SourceBuild.Intermediate.runtime.linux-x64
 From Version 10.0.0-preview.3.25152.4 -> To Version 10.0.0-preview.4.25173.3

* Update dependencies from https://github.com/dotnet/icu build 20250323.2

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 10.0.0-preview.3.25125.1 -> To Version 10.0.0-preview.4.25173.2

* Update dependencies from https://github.com/dotnet/runtime-assets build 20250324.1

Microsoft.DotNet.CilStrip.Sources , Microsoft.NET.HostModel.TestData , System.ComponentModel.TypeConverter.TestData , System.Data.Common.TestData , System.Drawing.Common.TestData , System.Formats.Tar.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Text.RegularExpressions.TestData , System.Windows.Extensions.TestData
 From Version 10.0.0-beta.25126.1 -> To Version 10.0.0-beta.25174.1

* Update dependencies from https://github.com/dotnet/icu build 20250325.1

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 10.0.0-preview.3.25125.1 -> To Version 10.0.0-preview.4.25175.1

* Update MicrosoftDotNetApiCompatTaskVersion in Versions.props

* Update dependencies from https://github.com/dotnet/hotreload-utils build 20250324.1

Microsoft.DotNet.HotReload.Utils.Generator.BuildTool
 From Version 10.0.0-alpha.0.25126.1 -> To Version 10.0.0-alpha.0.25174.1

* Update dependencies from https://github.com/dotnet/source-build-externals build 20250325.1

Microsoft.SourceBuild.Intermediate.source-build-externals
 From Version 10.0.607901 -> To Version 10.0.617501

* Update dependencies from https://github.com/dotnet/runtime build 20250330.1

Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , runtime.native.System.IO.Ports , System.Reflection.Metadata , System.Reflection.MetadataLoadContext , System.Text.Json , Microsoft.SourceBuild.Intermediate.runtime.linux-x64
 From Version 10.0.0-preview.3.25152.4 -> To Version 10.0.0-preview.4.25180.1

* Update dependencies from https://github.com/dotnet/icu build 20250330.1

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 10.0.0-preview.3.25125.1 -> To Version 10.0.0-preview.4.25180.1

* Update dependencies from https://github.com/dotnet/runtime-assets build 20250331.1

Microsoft.DotNet.CilStrip.Sources , Microsoft.NET.HostModel.TestData , System.ComponentModel.TypeConverter.TestData , System.Data.Common.TestData , System.Drawing.Common.TestData , System.Formats.Tar.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Text.RegularExpressions.TestData , System.Windows.Extensions.TestData
 From Version 10.0.0-beta.25126.1 -> To Version 10.0.0-beta.25181.1

* Update dependencies from https://github.com/dotnet/runtime-assets build 20250403.1

Microsoft.DotNet.CilStrip.Sources , Microsoft.NET.HostModel.TestData , System.ComponentModel.TypeConverter.TestData , System.Data.Common.TestData , System.Drawing.Common.TestData , System.Formats.Tar.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Text.RegularExpressions.TestData , System.Windows.Extensions.TestData
 From Version 10.0.0-beta.25126.1 -> To Version 10.0.0-beta.25203.1

* Update dependencies from https://github.com/dotnet/hotreload-utils build 20250331.1

Microsoft.DotNet.HotReload.Utils.Generator.BuildTool
 From Version 10.0.0-alpha.0.25126.1 -> To Version 10.0.0-alpha.0.25181.1

* Update dependencies from https://github.com/dotnet/cecil build 20250316.4

Microsoft.SourceBuild.Intermediate.cecil , Microsoft.DotNet.Cecil
 From Version 0.11.5-alpha.25125.1 -> To Version 0.11.5-alpha.25166.4

* Update dependencies from https://github.com/dotnet/icu build 20250406.1

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 10.0.0-preview.3.25125.1 -> To Version 10.0.0-preview.4.25206.1

* Update dependencies from https://github.com/dotnet/runtime-assets build 20250407.1

Microsoft.DotNet.CilStrip.Sources , Microsoft.NET.HostModel.TestData , System.ComponentModel.TypeConverter.TestData , System.Data.Common.TestData , System.Drawing.Common.TestData , System.Formats.Tar.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Text.RegularExpressions.TestData , System.Windows.Extensions.TestData
 From Version 10.0.0-beta.25126.1 -> To Version 10.0.0-beta.25207.1

* Update dependencies from https://github.com/dotnet/runtime-assets build 20250411.1

Microsoft.DotNet.CilStrip.Sources , Microsoft.NET.HostModel.TestData , System.ComponentModel.TypeConverter.TestData , System.Data.Common.TestData , System.Drawing.Common.TestData , System.Formats.Tar.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Text.RegularExpressions.TestData , System.Windows.Extensions.TestData
 From Version 10.0.0-beta.25126.1 -> To Version 10.0.0-beta.25211.1

* Update dependencies from https://github.com/dotnet/hotreload-utils build 20250407.1

Microsoft.DotNet.HotReload.Utils.Generator.BuildTool
 From Version 10.0.0-alpha.0.25126.1 -> To Version 10.0.0-alpha.0.25207.1

* Update dependencies from https://github.com/dotnet/runtime build 20250411.19

Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , runtime.native.System.IO.Ports , System.Reflection.Metadata , System.Reflection.MetadataLoadContext , System.Text.Json , Microsoft.SourceBuild.Intermediate.runtime.linux-x64
 From Version 10.0.0-preview.3.25152.4 -> To Version 10.0.0-preview.4.25211.19

* Update dependencies from https://github.com/dotnet/sdk build 20250411.22

Microsoft.DotNet.ApiCompat.Task , Microsoft.NET.Workload.Emscripten.Current.Manifest-10.0.100.Transport
 From Version 10.0.100-preview.3.25173.9 -> To Version 10.0.100-preview.4.25211.22

* Update dependencies from https://github.com/dotnet/icu build 20250414.1

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 10.0.0-preview.3.25125.1 -> To Version 10.0.0-preview.4.25214.1

* Update dependencies from https://github.com/dotnet/runtime-assets build 20250414.1

Microsoft.DotNet.CilStrip.Sources , Microsoft.NET.HostModel.TestData , System.ComponentModel.TypeConverter.TestData , System.Data.Common.TestData , System.Drawing.Common.TestData , System.Formats.Tar.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Text.RegularExpressions.TestData , System.Windows.Extensions.TestData
 From Version 10.0.0-beta.25126.1 -> To Version 10.0.0-beta.25214.1

* Failed to perform coherency update for one or more dependencies.

* Update dependencies from https://github.com/dotnet/runtime-assets build 20250415.1

Microsoft.DotNet.CilStrip.Sources , Microsoft.NET.HostModel.TestData , System.ComponentModel.TypeConverter.TestData , System.Data.Common.TestData , System.Drawing.Common.TestData , System.Formats.Tar.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Text.RegularExpressions.TestData , System.Windows.Extensions.TestData
 From Version 10.0.0-beta.25126.1 -> To Version 10.0.0-beta.25215.1

* Remove CoherentParentDependency for now, will add it back after flat flow switch

* Fix wrong merge

* Fix EmsdkPackageVersion

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Larry Ewing <lewing@microsoft.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
2025-04-19 00:40:37 +02:00
Alexander Köplinger 7d07f9a39f
Remove test project dir after test finished in trimmingTests.targets (#114819)
* Remove test project dir in trimmingTests.targets

Should help with the out of disk space errors we've been seeing in the dotnet-linker-tests pipeline.

* Improve test project cleanup logic

* Fix comment
2025-04-19 00:38:34 +02:00
Stephen Toub 7b2de1e5ed
Use extension everything to polyfill ArgumentNullException.ThrowIfNull (#114644) 2025-04-18 17:00:09 -04:00
dotnet-maestro[bot] 7b5faf3eff
Update dependencies from https://github.com/dotnet/xharness build 20250414.3 (#114774)
Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit
 From Version 10.0.0-prerelease.25211.1 -> To Version 10.0.0-prerelease.25214.3

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Larry Ewing <lewing@microsoft.com>
2025-04-18 20:27:32 +02:00
dotnet-maestro[bot] b81dbfc0b1
Update dependencies from https://dev.azure.com/dnceng/internal/_git/dotnet-optimization build 20250416.3 (#114776)
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.25212.3 -> To Version 1.0.0-prerelease.25216.3

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2025-04-18 20:26:46 +02:00
Carlos Sánchez López 1a51788af4
Zip async implementation follow-up: Fix failures in wasm and add extra tests (#114798)
* Remove `.Result` calls in async tests failing in wasm.

* Uncomment the async tests for the latest bug fixes, make sure they count the Async write calls, not the sync ones, and add the rest of the async methods.

* Revert skip on wasm platform

* Modify NoSyncCallsStream to throw also on BeginRead, EndRead, BeginWrite and EndWrite.

* Remove .Result from ZipTestHelper methods and propagate proper async usage.

* spacing

* Simplify object[] enumerables returning lists of ints.
2025-04-18 10:10:21 -07:00
Fuad Ismail 7e297e6e86
[RISC-V] Utilize `Zba` extension instructions (#113999)
* [RISC-V] Group arrRef with index

* [RISC-V] Add Zba instructions

* [RISC-V] Create Shxadd GenTree

* [RISC-V] Lower ADD(LSH) node to SH(X)ADD(.UW) node

* [RISC-V] Utilize SH(X)ADD instruction for GT_INDEX_ADDR

* [RISC-V] Fix build error: correct format & add preprocessor directives

* [RISC-V] Update conditions for transforming ADD(LSH) into SHXADD

* [RISC-V] Update GT_SHXADD* register liveliness

* [RISC-V] Guard SHXADD instruction usage with extension check

* [RISC-V] Add description comments to SHXADD node and struct

* [RISC-V] Add more JIT dumps

* [RISC-V] Remove GenTreeShxadd and create separate nodes (SH1ADD, SH1ADD_UW, etc.)

* [RISC-V] Only use SH(X)ADD when ADD is expected, not ADDW.

* [RISC-V] Support add.uw instruction.

* [RISC-V] Utilize ADD.UW for zero extension

* [RISC-V] Support slli.uw instruction

* [RISC-V] Refactor

* [RISC-V] Fix missed optimization: contain slli.uw into sh(x)add.uw

* [RISC-V] Remove repeated directive condition

Co-authored-by: Bruce Forstall <brucefo@microsoft.com>

* [RISC-V] Update comment to reflect changes

---------

Co-authored-by: Bruce Forstall <brucefo@microsoft.com>
2025-04-18 09:15:12 -07:00
Fuad Ismail 1e3c79879f
[RISC-V] Contain `GT_CALL` constant `controlExpr` to move lower 12 bits to JALR offset (#114728)
* Contain GT_CALL constant controlExpr to move lower 12 bits to JALR offset

* Remove duplicate assertion

Co-authored-by: Tomasz Sowiński <tomeksowi@gmail.com>

* Correct typo in comment

Co-authored-by: Bruce Forstall <brucefo@microsoft.com>

---------

Co-authored-by: Tomasz Sowiński <tomeksowi@gmail.com>
Co-authored-by: Bruce Forstall <brucefo@microsoft.com>
2025-04-18 09:03:28 -07:00
Fuad Ismail ae6a038ee5
[RISC-V] Move lower 12 bits of indirection address to load / store offset (#114488)
* [RISC-V] Move lower 11 bits of indirection address to load / store offset

* [RISC-V] Move all lower 12-bits to offset

Co-authored-by: Tomasz Sowiński <tomeksowi@gmail.com>

---------

Co-authored-by: Tomasz Sowiński <tomeksowi@gmail.com>
Co-authored-by: Bruce Forstall <brucefo@microsoft.com>
2025-04-18 09:01:48 -07:00
Adeel Mujahid e824da7300
Strip trailing slash from source dir for cmake4 (#114779) 2025-04-18 17:53:34 +02:00
Steve Harter 7d247ddb1b
Improve error message when GetRequiredKeyedService() fails (#114796) 2025-04-18 10:52:30 -05:00
Steve Harter 2459e3f4c2
Allow 'object' as arg type when [ServiceKey] is used (#114785) 2025-04-18 10:49:19 -05:00
dotnet-maestro[bot] 585057e47c
Update dependencies from https://github.com/dotnet/roslyn-analyzers build 20250417.1 (#114814)
Microsoft.CodeAnalysis.NetAnalyzers
 From Version 10.0.0-preview.25215.1 -> To Version 10.0.0-preview.25217.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2025-04-18 17:42:47 +02:00
Katelyn Gadd ca451bfcbc
[mono] Switch simdhash to prime bucket counts; increase load factor
Add some measurements for simdhash ght
Introduce scan data that's fetched once per bucket
Targeted simdhash optimizations via new dn_simdhash_ght_get_value_or_default
Switch to spaced prime bucket counts instead of power of two bucket counts for better collision resistance
Fix cache alignment of ght compatible and ptr ptr simdhash variants on 64-bit
Higher simdhash load factor (closer to ghashtable's; improves performance for bad hashes)
Add sequential keys measurements
Increase load factor to 30%
2025-04-18 08:16:55 -07:00
Pranav Senthilnathan 15bcd62bb2
SLH-DSA implementation for OpenSSL (#114060)
Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
2025-04-17 21:13:33 -07:00
Tomasz Sowiński e1702c393a
[RISC-V] Introduce Zbb (#114150)
* Rotations

* ReverseEndianness

* Don't temp register for Zbb rotations

* (and|or|xor)-not

* Handle both negated operands of and, or, and xor

* Add 'not' pseudo to disasm

* Extend small ints

* Small cleanup

* slli for small swaps

* Fix slli disasm

* TryGetUse in LowerBinaryArithmetic

* Fix disasm

* Fix windows build
2025-04-17 15:11:46 -07:00
Kevin Jones 760e8e9167
ML-KEM: X.509 private keys and PEM loader 2025-04-17 17:03:53 -04:00
Jeremy Koritzinsky 7dcd892a2d
Don't consider linux-bionic as a cross-build in UB builds (#114787) 2025-04-17 13:07:45 -07:00
Carlos Sánchez López 9a666a1b1e
Skip failing zip tests on wasm (#114801) 2025-04-17 13:39:02 -06:00
Alexander Köplinger 2dc2ec9951
Workaround MSVC miscompiling sgen_clz (#114786)
After the recent VS upgrade from 17.12.5 to 17.13.2 we started seeing access violations in the mono-aot-cross.exe when targetting wasm.

We tracked it down to sgen_clz being miscompiled, we can workaround the compiler bug by switching from ternary condition to if/else.
2025-04-17 19:47:50 +02:00
Xu Liangyu ff61917ee4
[LoongArch64] Fix ld.lld relocation 'R_LARCH_PCALA_LO12' error when building NAOT testcases. (#114616) 2025-04-17 08:39:52 -07:00
Jeremy Koritzinsky f2821e1c39
Build ILCompiler.Build.Tasks when NativeAOT is supported for the target even if the target can't run ILC (as we may run ILC on the host) (#114752) 2025-04-17 07:37:05 -07:00
Andy Ayers 6ccb061aa7
JIT: teach local assertion prop about non-null helpers (#114749)
If we see `lcl = newobj` we can assert `lcl` is not null in local assertion prop.
This sometimes lets us clean up control flow in morph.
2025-04-17 07:33:06 -07:00
Marie Píchová d0e28e1c83
Remove quotes from Content-Disposition string properties, same way as ASP does it (#114771) 2025-04-17 15:57:46 +02:00
Miha Zupan b951b3d262
Use regular casts for dictionary fallback in HttpHeaders (#114759) 2025-04-17 14:59:27 +02:00
Marek Fišera 2e8ea86798
[browser] Inline boot config (#114686) 2025-04-17 13:38:01 +02:00
Carlos Sánchez López b40903fbdb
Zip async implementation (#114421)
Added new public async APIs for System.IO.Compression and System.IO.Compression.ZipFile.
Modified existing unit tests to validate both sync and async depending on an async argument.
Added fuzzing tests for ZipArchive.
Added new tests to confirm that no sync API is calling async APIs internally and viceversa.
2025-04-17 03:00:16 -07:00
Jeremy Koritzinsky b281500fa1
Don't use BaseOS as the RID for publishing NativeAOT'd assets when OutputRID is the SDK's RID (#114755) 2025-04-16 23:03:38 -07:00
Jeremy Koritzinsky ce3c9df327
Disable the UTFStringConversionFailures test on CI runs (#114747) 2025-04-16 22:11:39 -07:00
Clinton Ingram 248d6f422e
JIT: Fix containment check for decomposed long halves in CreateScalar (#114654)
* fix containment check for decomposed long halves in CreateScalar

* add IsSupported check to test
2025-04-16 15:55:00 -07:00
Tomasz Sowiński 01108e862d
[RISC-V] Integer min/max intrinsics (#114687)
* Intrinsify integer min/max

* Implement integer min/max

* Cleanup assert

* Fix windows build

* Add tests

* Different VNFunc for unsigned

* Min/Max is commutative

* Different intrinsic name for unsigned
2025-04-16 15:40:06 -07:00
Jakob Botsch Nielsen e901a03318
JIT: Add a type for call emission parameters (#114542) 2025-04-17 00:02:39 +02:00
Miha Zupan 0fa747abd5
Replace OptimizedInboxTextEncoder vectorization with SearchValues (#114494) 2025-04-16 23:36:38 +02:00
Pavel Savara 72a4c866cf
fix xharness 2025-04-16 23:36:21 +02:00
Elinor Fung 0012f6c5a6
Update DllImportSearchPathTests to avoid relying on any previous cached load (#114719)
- Use different copies (library names) for p/invokes in the `DllImportSearchPathTests` so that we don't end up using the runtime cached of loaded unmanaged libraries
- Add a test for default search flags
2025-04-16 14:32:59 -07:00
Maoni Stephens bdd0daed0d
fix the regression in regions when handling heavily pinning scenarios (#112403)
this is to make regions behave very similarly to segments for heavily pinning scenarios. previously we observed regression in heap size due to regions not being aggressively demoted. changes included in this PR -

+ use the same policy for demotion of pinned plugs as much as possible for regions. since objects in a region can only belong to one generation, for pins observed skip_pins_in_alloc_region they will not use the same policy as they must belong to what's already allocated in that region. this policy is only applicable for regions with only pins left.

+ attribute the pins to the higher generation's generation_allocation_size when appropriate.

+ update data for events correctly for these pins.

with these changes I'm seeing a heavily pinned scenario be able to keep the heap size much lower and basically stable, vs without fix it goes up steadily. there can be some regression in % time in GC by design since we now leave more pins in gen0 which increases the amount of survived memory gen0 has to process.
2025-04-16 12:41:01 -07:00
Andy Ayers 4ea3cb1f99
JIT: Escape analysis cleanup (#114716)
* use `printfAlloc` in a few places
* move escape-analysis specific layout code to objectalloc.cpp
* use custom layout for stack allocated boxes
* use layout a bit more broadly in objectalloc.cpp
2025-04-16 11:53:21 -07:00
Aaron Robinson 40f209caa4
Add support to add new FieldRVAs to EnC (#114463)
Add testing.
2025-04-16 11:08:51 -07:00
Aaron Robinson e7baf9101c
Fix contract violations for OLE scenario. (#114609)
Rework the logic so the FCall doesn't do any
allocations and defers any non-fast scenario
to the slow path.
2025-04-16 10:39:21 -07:00