- 12 8月, 2023 20 次提交
-
-
由 Ankit Jain 提交于
The following commit caused workload to be required for a blazor app when `InvariantGlobalization==true`, but this is not required. ``` commit 26ae0978 Author: Ankit Jain <radical@gmail.com> Date: Thu Aug 10 23:39:10 2023 -0400 [wasm] Fix up conditions to trigger relink, and require `wasm-tools` workload (#89754) ``` And this broke some sdk tests.
-
由 jthorborg 提交于
* Relaxing constraints of System.GC.AllocateArray<T>. It's now possible to allocate pinned and default-initialized arrays that contain references. Fix #48703 * Adding coverage of GC.AllocateArray with ref types. Added a test that pins a reference type array and resolves references to indices with pointer arithmetic, checking that modifications are visible back in the original array. Test #48703 * Mono/NativeAOT relaxing of System.GC.AllocateArray<T>. * Relaxed GC.AllocateUninitializedArray for ref types as well. This was done by deferring reference types to GC.AllocateArray to avoid potential memory issues with the GC + uninitialized memory. The API only promises to avoid initialization if possible, anyway. Refactored tests to parametrically exercise these new relaxed constraints. * Simplifiy conditionals in AllocateUninitializedArray. Relying on internal implementation zeroing refs if necessary. * Also simplify path for NativeOAT. Mono already piggybacks on the AllocateArray path anyway. * Simplify pinning paths. All conditional paths in GC.Allocate*Array now handle pinning unconditionally out of the main branch. * Don't use `var` if type name doesn't exist explicitly on right-hand side * PR feedback for using terse method tables and JIT intrinsics for GC array allocation that should be slightly faster. * Changed EmbeddedValueType and added comment. After a longer discussion, settled on a slightly augmented suggestion that isn't as controversial as the prior one. * Fixing signature for `RhAllocateNewArray` in NativeAOT to directly use a `MethodTable*` * Adding explicit structlayout to silence warning for EmbeddedValueType in GCTests, and improved the comment. --------- Co-authored-by: NJan Kotas <jkotas@microsoft.com>
-
由 Koundinya Veluri 提交于
- A previous change that was serviced back changed session-local named mutexes to be user-specific by restricting the permissions of the session directories and files under them, and adding the sticky bit to some directoires. A compat issue arose from that change, as the session directories have the session ID in their name and session IDs can be reused between different users. The current plan that we have discussed is to revert the change and service back the revert, which also restores the intended behavior, and offer user-specific mutexes as a new feature in a future .NET that would satisfy some user scenarios in a better way. - This PR reverts the previous change (first commit) and restores one change from the previous change (second commit) to improve backward compatibility due to differences in permissions for session directories before and after the change - Fixes https://github.com/dotnet/runtime/issues/80619
-
由 Poppyto 提交于
* first XOR Linq implemetation * replace classic allocation by stack allocation for ReadByte * replace classic allocation by stack allocation for ReadByte & WriteByte * replace classic allocation by stack allocation for ReadByte/CopyToAsync * add missing ConfigureAwait(false) on ReadAsync * replace classic allocation by stack allocation for ReadByte/WriteByte * Revert "first XOR Linq implemetation" This reverts commit 449fddec66b3311866dc1e57c07ad7127e8039ff. * indent fix * rollback stackalloc on async methods * missing char * fix ConfigureAwait * rollback ReadByte optim (degrade perfs) * variablename fix * missing comment * rollback Stream allocations * missing arguments * add Write(ReadOnlySpan<byte>) method * better initialize Span * add CRLF * resolve comments * simplification call method Write * Update src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonEncodingStreamWrapper.cs replace Span by ReadOnlySpan Co-authored-by: NMichał Petryka <35800402+MichalPetryka@users.noreply.github.com> * remove trailing whitespace * Update src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonEncodingStreamWrapper.cs Co-authored-by: NStephen Toub <stoub@microsoft.com> * Update src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonEncodingStreamWrapper.cs Co-authored-by: NStephen Toub <stoub@microsoft.com> --------- Co-authored-by: NMichał Petryka <35800402+MichalPetryka@users.noreply.github.com> Co-authored-by: NStephen Toub <stoub@microsoft.com>
-
由 Daniel Svensson 提交于
* Use ConcurrentDictionary to avoid lock contention when serializing using DataContractSerializer * Improve concurrency for GetId * Prevent allocating multiple slots in s_dataContractCache for the same typeHandle * Use RuntimeTypeHandle as key in dictionary * add readonly * Remove usage of lazy * revert whitespace changes * Use RuntimeTypeHandle.Value as key instead of RuntimeTypeHandle * Apply same perf improvement to JDCS; Remove Int/TypeHandleRef silliness that we no longer need. --------- Co-authored-by: NSteve Molloy <smolloy@microsoft.com>
-
由 Eirik Tsarpalis 提交于
* Improve debugging for configuration lists. * Add missing DebuggerBrowsable.Never annotations. * Add DebuggerBrowsableState.Never to a few internal getters that may throw. * Simplify JsonPropertyInfo DebuggerDisplay * Ensure debugger display matches API name.
-
由 Alexander Köplinger 提交于
We noticed that ARC isn't enabled for System.Globalization.Native code but we aren't properly doing manual memory management by calling `release`. Enable ARC for the System.Globalization.Native ObjC code so it is handled automatically by the compiler. Disable it for System.Native code since that one is less complex and we can manually manage it. We need to wrap all public entrypoints to the library in `@autoreleasepool` blocks so that the releasing of autoreleased objects occurs at the end of the block, rather than at some undetermined point in the future (and we don't even know if we have an autorelease pool in the thread).
-
由 Milos Kotlar 提交于
This PR adds support for Native AOT compilation on Helix. It improves test coverage for Mono and Native AOT by running functional tests on Helix. The proxy project is updated with Native AOT props and apple build targets are updated to support Native AOT compilation. Additionally, it simplifies the sample app by utilizing the shared Apple targets.
-
由 Ankit Jain 提交于
This reverts commit bbe40f8c. This caused perf pipeline runs to break. But https://github.com/dotnet/performance/pull/3251 from @caaavik-msft, along with this revert will fix the issue. Issue: https://github.com/dotnet/runtime/issues/90420
-
由 Elinor Fung 提交于
- Use `VER_PRODUCTVERSION_STR` / `sccsid` from generated `_version.(h|c)` for version and commit info (for tracing) - Use `RuntimeProductVersion` for version from header generated by `GenerateRuntimeVersionFile` - Remove `HOST_*_PKG_VER` defines and script arguments for passing that info around
-
由 Steve Molloy 提交于
* Don't fallback to PNSE, and give a more descriptive error message. * CodeGeneratorConversionException is internal. Wrap it before re-throwing. * Update src/libraries/System.Private.Xml/src/System/Xml/Serialization/Compilation.cs Fixing comment about lack of compiler at runtime Co-authored-by: NJan Kotas <jkotas@microsoft.com> * Update Compilation.cs Remove conditional code that was not needed. --------- Co-authored-by: NMatt Connew <mconnew@users.noreply.github.com> Co-authored-by: NJan Kotas <jkotas@microsoft.com>
-
由 Pavel Savara 提交于
Co-authored-by: NIlona Tomkowicz <32700855+ilonatommy@users.noreply.github.com>
-
由 Pavel Savara 提交于
-
由 Jo Shields 提交于
-
由 Vlad-Alexandru Ionescu 提交于
* Enabled tests --------- Signed-off-by: NVlad <vladionescu1399@gmail.com> Co-authored-by: NMilos Kotlar <kotlarmilos@gmail.com>
-
由 Stephen Toub 提交于
* Delete duplicative fallback paths from Ascii GetIndexOfFirstNonAsciiChar has four different paths it takes: one for Vector512/256, one for Ssse2/AdvSimd, one for Vector128, and one for everything else. But the Vector512/256 path is capable of both Vector128 and scalar, which obsoletes the default fallback case which uses `Vector<T>` and a scalar path. We can entirely delete the "_Default" path, and consolidate the calls to the Vector512/256/128/scalar path. GetIndexOfFirstNonAsciiByte is similar. Its "_Default" doesn't use `Vector<T>`, but it's still duplicative and deletable. * Address PR feedback
-
由 Michał Petryka 提交于
* Fix Vector512 rightshift Fixes #89338 * Adding tests covering the Vector shift operators * Ensure Unsafe.Read/Write are marked intrinsic * Workaround a separate bug on Arm64 * Mark the new vector shift tests with ActiveIssue where relevant --------- Co-authored-by: NTanner Gooding <tagoo@outlook.com>
-
由 Stephen Toub 提交于
* Replace Utf16Utility.GetPointerToFirstInvalidChar fallback with Vector128 The else block will only be used on platforms where `Vector<T>` is 128-bit, so just use Vector128 explicitly. * Address PR feedback
-
由 Bruce Forstall 提交于
* Update debugger AMD64 disassembly tables Regenerate with gdb 12. Fix various bugs in the table generation, such as due to incorrect ModRM/reg escape handling, and new instructions. * Remove 3DNow! table support * Remove obsolete AMD XOP encoding support * Update walker for new tables Especially, removed 3DNow, XOP. Also, update README.md * Remove special-case XOP instructions * Remove unused InstrForm Due to removing XOP instructions * Remove another removed InstrForm * Support EVEX encoding * Add more logging for patch decode; handle 64-byte memory in patch * Support EVEX embedded broadcast * Update comment about EVEX `disp8*N` addressing * Fix build
-
由 Egor Bogatov 提交于
-
- 11 8月, 2023 20 次提交
-
-
由 Matous Kozak 提交于
* ExtractMSB arm64 support * Move arm64 specific code into ifdef
-
-
由 Eric StJohn 提交于
-
https://github.com/dotnet/emsdk由 dotnet-maestro[bot] 提交于
Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport From Version 8.0.0-rc.1.23409.6 -> To Version 8.0.0-rc.1.23411.1 Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
-
由 Matt Mitchell 提交于
* Do not generate internal archives
-
由 Alexander Köplinger 提交于
We haven't populated it since moving to the cmake-based build system a couple years ago so it probably isn't worth doing now either.
-
由 Eric StJohn 提交于
* Make Analyzer crashes a warning * Suppress AD0001 where it fails * Suppress AD0001 in other CoreLibs
-
由 Eirik Tsarpalis 提交于
* Rework JsonNamingPolicy.SnakeCase/KebabCase to match Json.NET semantics. * Alternative implementation that handles digits properly but doesn't trim non-alphanumeric characters. * Refactor to switch statement * add non-ascii letter test case * Address feedback * Add support for surrogate pair capitalization * Revert "Add support for surrogate pair capitalization" This reverts commit c1c5d1c8a039235a14caa0f02c7e97d1f696634c. * Add surrogate pair unit tests * Address more feedback * Address feedback and add a few more test cases. * Add more surrogate pair tests * Add unpaired surrogate testing
-
由 Egor Bogatov 提交于
Co-authored-by: NJan Kotas <jkotas@microsoft.com>
-
由 Cameron Aavik 提交于
-
由 Alexander Radchenko 提交于
Co-authored-by: NDavid Cantú <dacantu@microsoft.com>
-
由 Egor Bogatov 提交于
-
由 Tomasz Sowiński 提交于
* [RISC-V] Fix failing cases with delegates passing a struct with 2 longs as argument (test16833.cs -> TestMRB1, TestMRB5) Fix emits a stack shuffle entry when we run out of general purpose registers, analogous to loongarch64. * [RISC-V] Fix comment, inter-register mov doesn't take an immediate. * [RISC-V] Remove unused EmitLoadStoreRegPairImm methods * [RISC-V] Fix offset encoding in sd instruction Co-authored-by: NDong-Heon Jung <clamp03@gmail.com> --------- Co-authored-by: NDong-Heon Jung <clamp03@gmail.com>
-
由 dotnet-maestro[bot] 提交于
* Update dependencies from https://github.com/dotnet/arcade build 20230803.7 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.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 8.0.0-beta.23402.2 -> To Version 8.0.0-beta.23403.7 * Update dependencies from https://github.com/dotnet/xharness build 20230803.1 Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit From Version 8.0.0-prerelease.23377.1 -> To Version 8.0.0-prerelease.23403.1 * Update dependencies from https://github.com/dotnet/arcade build 20230804.2 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.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 8.0.0-beta.23402.2 -> To Version 8.0.0-beta.23404.2 * Update dependencies from https://github.com/dotnet/runtime build 20230806.6 Microsoft.DotNet.ILCompiler , Microsoft.NET.ILLink.Tasks , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , runtime.native.System.IO.Ports , System.Text.Json From Version 8.0.0-rc.1.23401.3 -> To Version 8.0.0-rc.1.23406.6 * Update dependencies from https://github.com/dotnet/arcade build 20230807.1 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.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 8.0.0-beta.23402.2 -> To Version 8.0.0-beta.23407.1 * Update dependencies from https://github.com/dotnet/icu build 20230807.2 Microsoft.NETCore.Runtime.ICU.Transport From Version 8.0.0-rc.1.23381.1 -> To Version 8.0.0-rc.1.23407.2 * Update dependencies from https://github.com/dotnet/xharness build 20230807.2 Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit From Version 8.0.0-prerelease.23377.1 -> To Version 8.0.0-prerelease.23407.2 * Update dependencies from https://github.com/dotnet/emsdk build 20230807.1 Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport From Version 8.0.0-rc.1.23402.3 -> To Version 8.0.0-rc.1.23407.1 * Update dependencies from https://github.com/dotnet/hotreload-utils build 20230807.2 Microsoft.DotNet.HotReload.Utils.Generator.BuildTool From Version 8.0.0-alpha.0.23377.1 -> To Version 8.0.0-alpha.0.23407.2 * Update dependencies from https://github.com/dotnet/cecil build 20230807.2 Microsoft.DotNet.Cecil From Version 0.11.4-alpha.23374.2 -> To Version 0.11.4-alpha.23407.2 * Fix. * Update dependencies from https://github.com/dotnet/arcade build 20230808.6 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.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 8.0.0-beta.23402.2 -> To Version 8.0.0-beta.23408.6 Dependency coherency updates Microsoft.DotNet.XliffTasks From Version 1.0.0-beta.23381.1 -> To Version 1.0.0-beta.23407.1 (parent: Microsoft.DotNet.Arcade.Sdk * Update dependencies from https://github.com/dotnet/icu build 20230807.2 Microsoft.NETCore.Runtime.ICU.Transport From Version 8.0.0-rc.1.23381.1 -> To Version 8.0.0-rc.1.23407.2 * Update dependencies from https://github.com/dotnet/runtime-assets build 20230808.1 Microsoft.DotNet.CilStrip.Sources , 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 8.0.0-beta.23401.1 -> To Version 8.0.0-beta.23408.1 * Update dependencies from https://github.com/dotnet/arcade build 20230809.5 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.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 8.0.0-beta.23402.2 -> To Version 8.0.0-beta.23409.5 Dependency coherency updates Microsoft.DotNet.XliffTasks From Version 1.0.0-beta.23381.1 -> To Version 1.0.0-beta.23408.1 (parent: Microsoft.DotNet.Arcade.Sdk * Update dependencies from https://github.com/dotnet/emsdk build 20230809.6 Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport From Version 8.0.0-rc.1.23402.3 -> To Version 8.0.0-rc.1.23409.6 * Use PackageDownload not PackageReference for JitTools in SuperFileCheck.csproj --------- Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: NIlona Tomkowicz <32700855+ilonatommy@users.noreply.github.com> Co-authored-by: NJo Shields <directhex@apebox.org>
-
由 Tomáš Rylek 提交于
After David Wrighton's refactoring of type loadability check in #89415 we started seeing stack overflow in Crossgen2 compilation of the outerloop test Loader/classloader/generics/regressions/DD117522/Test.csproj This is because the test is a negative test that exercises runtime behavior in the presence of a non-loadable type with recursive definition. David's stricter descent into the type ends up in an infinite recursion when presented with this invalid type. I haven't found any easy way to incorporate the additional check for recursive types into the loadability algorithm - in fact I'm not even sure whether that's generally doable. As a very simple way to protect against the infinite recursion I propose adding a heuristic limit for the type analysis stack size. I assume the proposed value 1024 to be more than enough for both Crossgen2 and NativeAOT, if it's realistic that NativeAOT can encounter deeper types than this, I can make the check specific for Crossgen2. Fixes: #89645
-
由 Stephen Toub 提交于
* Enable R2R for Narrow/WidentAscii * Delete dead Vector<T> code paths
-
由 Chris Ross 提交于
-
由 Ankit Jain 提交于
- Trigger relinking (`WasmBuildNative=true`) if: - `WasmNativeStrip=false` - `WasmEnableSIMD=false` - `WasmEnableExceptionHandling=false` - The above are in addition to the existing conditions - Also, trigger "workload required" when: - `WasmNativeStrip=false` - `WasmEnableExceptionHandling=true` - `InvariantGlobalization=true` - `InvariantTimeZone=true` - The above are in addition to the existing conditions - Rationalize `WasmNativeDebugSymbols`, and `WasmNativeStrip` - `WasmNativeDebugSymbols` will cause symbols to be included (essentially `-g`) - `WasmNativeStrip` will cause these to be stripped with `wasm-opt --strip-dwarf ...` Fixes https://github.com/dotnet/runtime/issues/85778 .
-
由 Tanner Gooding 提交于
* Expose the RequiresLocationAttribute * Add a basic test for RequiresLocationAttribute
-
由 Eric StJohn 提交于
-