* Move GreaterThan2GBFile_SendsAllBytes to a non-parallel test collection
* Update SendFile.cs
Co-authored-by: Anton Firszov <[email protected]>
Co-authored-by: Anton Firszov <[email protected]>
* Align DCJS with 4.8 version. This work addresses #55270.
* Close() nits.
* Remove some extraneous trimmer attributes.
* Another trimmer nit.
Co-authored-by: Steve Molloy <[email protected]>
* Fix stress issues around multiple threads throwing the same exceptions - The watson codebase manipulates the state of the following fields on Exception in a lock-free manner without locks if there are multiple threads throwing the same exception - _stackTrace - _stackTraceString - _remoteStackTraceString - _watsonBuckets - _ipForWatsonBuckets - The designed behavior is that these apis should "mostly" be correct, but as they are only used for fatal shutdown scenarios, exact correctness is not required for correct program execution - However, there are some race conditions that have been seen recently in testing 1. In some circumstances, the value will be explicitly read from multiple times, where the first read is to check for NULL, and then a second read is to read the actual value and use it in some way. In the presence of a race which sets the value to NULL, the runtime can crash. To fix this, the code is refactored in cases which could lead to crashes with a single read, and carrying around the read value to where it needs to go. 2. Since the C++ memory model generally allows a single read written in C++ to be converted into multiple reads if the compiler can prove that the read does not cross a lock/memory barrier, it is possible for the C++ compiler to inject multiple reads where the logic naturally only has 1. The fix for this is to utlilize the VolatileLoadWithoutBarrier api to specify that a read should happen once in cases where it might cause a problem.
Finally, the test45929 was tended to fail in GC stress as it would take a very long time to run under GC stress or on some hardware. Adjust it so that it shuts down after about 2.5 minutes.
- Do this instead of disabling running under gcstress as there is evidence that there may have been bugs seen during runs under gcstress.
Fixes#46803
* Rename as per suggestion
Co-authored-by: David Wrighton <[email protected]>
* Enable SocketHttpHandler to decompress zlib or deflate
Some servers incorrectly implement the deflate content-coding with the raw deflate algorithm rather than with deflate wrapped with a zlib header/footer. Auto-detect whether to use ZLibStream or DeflateStream in order to accomodate both kinds of responses.
* Fix test build for WinHttpHandler on .NET Framework
* Apply suggestions from code review
* Add decompression test for empty response body
* Add decompression tests for multiple source content lengths
Co-authored-by: Stephen Toub <[email protected]>
* Don't regress SkipLocalsInit optimization on net5.0 assets
netcoreapp3.1 and net5.0 assets which are part of the Microsoft.NETCore.App shared framework and ship inside a package need to keep the SkipLocalsInit optimization to avoid regressing perf. This would happen when referencing one of the 6.0 packages but consuming either the netcoreapp3.1 or net5.0 asset in it. The higher assembly version of the netcoreapp3.1/net5.0 asset would win over the same asset in the shared framework and without this fix, the SkipLocalsInit optimization would be lost.
Contributes to https://github.com/dotnet/runtime/issues/54964
* Add test case
Call a method for the first time after an update has been applied to it.
This will check that the interpreter or JIT does not have to rely on cached
information from the baseline (about the method signature, for example) and
that it can compute it from the delta.
* [hot_reload] Don't look at delta method table rows
The issue is that the ParamList column in EnC deltas is a "suppressed column"
that has the value 0. So when a method is updated if we use the value
directly, we will break, for example - `mono_metadata_get_param_attrs` which
expects a non-zero index in that column.
CoreCLR solves this by having a set of suppressed columns that are never
updated by deltas. (CoreCLR's model is to directly mutate the tables of the
baseline image). In Mono we can eventually do the same thing by writing the
value from the previous generation into the current delta's row. But right now
since we don't allow parameter modifications, and the only column on a Method
table that we allow to be modified is the RVA - which we look up specially - we
can just always return the baseline image row for the method table.
Fixes https://github.com/dotnet/runtime/issues/57643
Co-authored-by: Aleksey Kliger <[email protected]>
Microsoft.NET.ILLink.Tasks
From Version 6.0.100-preview.6.21418.3 -> To Version 6.0.100-preview.6.21419.1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Microsoft.NETCore.Runtime.ICU.Transport
From Version 6.0.0-rc.1.21416.1 -> To Version 6.0.0-rc.2.21419.2
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Microsoft.NETCore.Runtime.ICU.Transport
From Version 6.0.0-rc.1.21416.1 -> To Version 6.0.0-rc.1.21419.1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Microsoft.NET.ILLink.Tasks
From Version 6.0.100-preview.6.21416.1 -> To Version 6.0.100-preview.6.21419.1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Microsoft.NET.Workload.Emscripten.Manifest-6.0.100
From Version 6.0.0-rc.1.21416.1 -> To Version 6.0.0-rc.1.21419.1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
The casing of the SDK imported via the Sdk attribute was wrong which lead to:
Microsoft.NETCore.Platforms.csproj : error MSB4236: The SDK 'Microsoft.NET.SDK' specified could not be found.
Co-authored-by: Viktor Hofer <[email protected]>
When a callvirt instruction is encountered on a static method, there is
a hard abort/crash. This commit avoids the problem.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Bill Holmes <[email protected]>
Microsoft.NET.ILLink.Tasks
From Version 6.0.100-preview.6.21416.1 -> To Version 6.0.100-preview.6.21418.3
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
* Update pinned compiler version
The version that flows in automatically appears to still be old. We need to fix that, but in the meantime, we're a month out of date on the compiler.
* Suppress CS8969 warnings
* Change several dynamic tests to use typeof(object[])
Co-authored-by: Stephen Toub <[email protected]>
* JIT: don't clone loops where init or limit is a cast local
The loop cloner assumes all computations it introduces are compatible
with TYP_INT, so don't allow cloning when the initial or final value
are variables with incompatible types.
Fixes#57535.
* Apply suggestions from code review
Co-authored-by: SingleAccretion <[email protected]>
Co-authored-by: Andy Ayers <[email protected]>
Co-authored-by: SingleAccretion <[email protected]>
* JIT: don't clone loops where init or limit is a cast local
The loop cloner assumes all computations it introduces are compatible
with TYP_INT, so don't allow cloning when the initial or final value
are variables with incompatible types.
Fixes#57535.
* Apply suggestions from code review
Co-authored-by: SingleAccretion <[email protected]>
Co-authored-by: Andy Ayers <[email protected]>
Co-authored-by: SingleAccretion <[email protected]>
* Disable ReflectionCachesUpdateHandler_CachesCleared with aggressive trimming
* Enable more tests stopped by 2105
* Create tests.mobile.targets
Suppress IL2025
* Remove comment enabling trim warnings
* Mark more active issues