Marc Gravell [Sat, 20 May 2023 21:36:24 +0000 (22:36 +0100)]
PipeReader.CopyToAsync(Stream) should not perform zero-length writes (#85768)
* add failing test for zero-length write
* simplify test
* apply fix
hrrrrustic [Sat, 20 May 2023 21:35:42 +0000 (00:35 +0300)]
Add new status code (#85841)
Egor Bogatov [Sat, 20 May 2023 19:49:01 +0000 (21:49 +0200)]
Clean up GenTreeCall's inline info (#86540)
Maksim Golev [Sat, 20 May 2023 17:51:37 +0000 (21:51 +0400)]
fix(66229): Fix invalid processing of empty Dictionary node. (#86485)
Co-authored-by: Maksim Golev <mgolev@htc-cs.ru>
Qiao Pengcheng [Sat, 20 May 2023 15:57:43 +0000 (23:57 +0800)]
[LoongArch64] delete the rsGetRsvdReg() for LA64. (#86319)
* [LoongArch64] delete the rsGetRsvdReg() for LA64.
* delete dead code for CR.
Katelyn Gadd [Sat, 20 May 2023 15:53:58 +0000 (08:53 -0700)]
[interp] Remove char element type support from transform-simd (#86534)
Remove char element type support from transform-simd
Also disable unusual types for packedsimd
Justin Anderson [Sat, 20 May 2023 07:45:57 +0000 (00:45 -0700)]
Allow using active host context in hostfxr_get_runtime_delegate (#86460)
These changes allow for passing `nullptr` for the handle parameter of the `hostfxr_get_runtime_delegate` function. This allows in-process callers who do not have the real host context handle to invoke this function and get a runtime delegate for the primary runtime instance. Calling hostfxr_get_runtime_delegate without the handle will only work if there is an active host context, otherwise it will return StatusCode::HostInvalidState.
Jeremy Koritzinsky [Sat, 20 May 2023 06:43:26 +0000 (23:43 -0700)]
Remove references to P/Invokes and DllImport from resource strings. (#85178)
Andrew Au [Sat, 20 May 2023 03:31:02 +0000 (20:31 -0700)]
Make the RefreshMemoryLimit API public (#85549)
Tanner Gooding [Sat, 20 May 2023 01:59:50 +0000 (18:59 -0700)]
Ensure Vector2/3/4, Quaternion, and Plane don't have a false dependency on Vector<T> (#86481)
* Ensure Vector2/3/4, Quaternion, and Plane don't have a false dependency on Vector<T>
* Apply JIT formatting patch
* Fixing a build issue
* Handle an SPMI assert
Jeremy Koritzinsky [Sat, 20 May 2023 01:59:29 +0000 (18:59 -0700)]
Add marshallers for GeneratedComInterface-based types (#86177)
Jeremy Koritzinsky [Fri, 19 May 2023 22:55:27 +0000 (15:55 -0700)]
Refactor our linear collection marshalling implementation (#86519)
Co-authored-by: Jackson Schuster <36744439+jtschuster@users.noreply.github.com>
Tanner Gooding [Fri, 19 May 2023 21:46:56 +0000 (14:46 -0700)]
Ensure we use bytes, not bits (#86510)
Sven Boemer [Fri, 19 May 2023 20:41:26 +0000 (13:41 -0700)]
Fix marking of saved assemblies (#86474)
This ensures the fix from
https://github.com/dotnet/runtime/pull/82197 works also for
assemblies which get the `save` action (which isn't supported
from the command-line, but may happen in custom steps).
It also ensures that `save` assemblies get fully marked
regardless of `DisableMarkingOfCopyAssemblies`.
---------
Co-authored-by: Jackson Schuster <36744439+jtschuster@users.noreply.github.com>
Egor Bogatov [Fri, 19 May 2023 20:38:33 +0000 (22:38 +0200)]
Remove fgMorphCastedBitwiseOp (#86491)
Ankit Jain [Fri, 19 May 2023 20:36:54 +0000 (16:36 -0400)]
[wasm] CI: Fix firefox debugger tests failure (#86476)
Tests are failing with:
```
Failed DebuggerTests.ArrayTests.InspectGenericValueTypeArrayLocals(line: 89, col: 8, method_name: "DebuggerTests.ArrayTestsClass.GenericValueTypeLoca"..., test_prev_frame: False, frame_idx: 0, use_cfo: True) [>
Error Message:
System.InvalidCastException : Cannot cast Newtonsoft.Json.Linq.JObject to Newtonsoft.Json.Linq.JToken.
Stack Trace:
at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token)
at DebuggerTests.FirefoxInspectorClient.HandleMessage(String msg, CancellationToken token) in /_/src/mono/wasm/debugger/DebuggerTestSuite/FirefoxInspectorClient.cs:line 184
at Microsoft.WebAssembly.Diagnostics.RunLoop.RunActualAsync(CancellationTokenSource x) in /_/src/mono/wasm/debugger/BrowserDebugProxy/Common/RunLoop.cs:line 142
at Microsoft.WebAssembly.Diagnostics.RunLoop.<>c__DisplayClass20_0.<<RunAsync>b__0>d.MoveNext() in /_/src/mono/wasm/debugger/BrowserDebugProxy/Common/RunLoop.cs:line 54
--- End of stack trace from previous location ---
at System.Threading.Channels.AsyncOperation`1.GetResult(Int16 token)
at System.Threading.Tasks.ValueTask`1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
```
One of the arguments of the message is a `JObject`, and thus fails with
`.Value<string>()`.
The full message:
```json
{
"from" : "server1.conn0.windowGlobal10737418242/windowGlobalTarget2",
"resources" : [
{
"message" : {
"arguments" : [
"mono_wasm_debug_event_raised:
aef14bca-5519-4dfe-b35a-
f867abc123ae",
{
"actor" : "server1.conn0.windowGlobal10737418242/longstractor35",
"initial" : "{\"eventName\":\"AssemblyLoaded\",\"assembly_name\":\"System.Private.CoreLib.dll\",\"assembly_b64\":\"V2JJTAAAAAADAAAACCAAAEgAAACYYj4AVAAAAPRDPgAAIAAAAEQ+AEwAAABMBAAAAIA+AAAGAABMRD4ADAAAAACgPgAAAgAATEo+ANBjPgAAAAAASAAAAAIABQDQ4RkAyIAkAAkAAAAAAAAAsFMUADjSAwBQ4RkAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHgIoJAIABipeAigkAgAGAheNogAAAiUWA5x9AQAABCo6AigkAgAGAgN9AQAABCo6AigkAgAGAgN9AgAABCo6AigkAgAGAgN9AwAABCoeAigDMAUAjQAAAAEAABEgAAIAAOD+DyAAAQAAcwEAAAoMCAoCBgMEBW8CAAAKCwctIg4EEgAWBhYoAQAAKygDAAAKDBIC/hYBAAAbb3cDAAZRFyoHGDM+IAAFAACNpAAAAigEAAAKCgIGAwQFbwIAAAotIg4EEgAWBhYoAQAAKygDAAAKDBIC/hYBAAAbb3cDAAZRFyoOBBRRFiomAgMEKA8AAAZ6RgIsDQIo6gAABgMEKAkAAAYqTgIWai8MKFcAAAYDBCgJAAAGAio2KFcAAAYUFigJAAAGKjICagMEKAsAAAYmAioDMAIAsgEAAAIAABEPAChSAAAGCwcgFAABADBJByAGAAEAMBsHIAIAAQA7zQAAAAcgBgABADsUAQAAOHcBAAAHIAgAAQA7sgAAAAcgCwABADsrAQAAByAUAAEAOzYBAAA4UQEAAAcgJQABADAbByAWAAEAOw4BAAAHICUAAQA7pwAAADguAQAAByAtAAEALhUHIDkAAQAuQAcgQgABAC5cOBEBAAAELTADLAgDKBMAAAYsJQMozwUABiwLKLsdAAZzUmwABioovB0ABgMo0RoABgNzVGwABioDK",
"length" : 7737462,
"type" : "longString"
},
"{}"
],
"columnNumber" : 12734,
"filename" : "http://localhost:9400/dotnet.runtime.js",
"innerWindowID" :
10737418242,
"level" : "debug",
"lineNumber" : 3,
"private" : true,
"sourceId" : null,
"timeStamp" :
1684452298362.82
},
"resourceType" : "console-message"
}
],
"type" : "resource-available-form"
}
```
Andrew Au [Fri, 19 May 2023 20:34:06 +0000 (13:34 -0700)]
We should not establish a heap hard limit for 32 bit platforms (#85844)
Adeel Mujahid [Fri, 19 May 2023 20:24:48 +0000 (23:24 +0300)]
Upgrade gcc CI to use gcc13 (#86051)
* Upgrade gcc CI to use gcc13
* Fix a Wstrict-prototypes
Jakob Botsch Nielsen [Fri, 19 May 2023 20:07:48 +0000 (22:07 +0200)]
JIT: Add a pass of liveness for the new locals inside physical promotion (#86043)
Used when decomposing stores to skip the fields that are dying and the remainder if it is dying. Also allows forward sub to kick in for the inserted replacement locals.
Morten Larsen [Fri, 19 May 2023 19:32:43 +0000 (21:32 +0200)]
Fix async XsdValidatingReader to not use synchronious IO (#84888)
* Fix async XsdValidatingReader to use GetValueAsync
* Remove async on ProcessReaderEventAsync
* Change to local static functions
Katelyn Gadd [Fri, 19 May 2023 18:41:46 +0000 (11:41 -0700)]
[wasm] Jiterpreter v128 misc optimizations (#86506)
* Use v128 opcodes when unrolling memsets/memmoves
* Introduce builder v128_const method
* v8 doesn't optimize splats so use the enormous encoding for v128 zero
* Fix fast memset for nonzero values
Jeremy Koritzinsky [Fri, 19 May 2023 17:48:28 +0000 (10:48 -0700)]
Upgrade build to use .NET 8 Preview 4 SDK (#86408)
Sven Boemer [Fri, 19 May 2023 17:25:45 +0000 (10:25 -0700)]
Fix mapping of redeclared type parameters (#86353)
We were skipping the type parameter mapping of compiler-generated
types whose only generic parameters were those implicitly created
for the declaring type's type parameters.
For the testcase in question, the nested state machine inherited
a generic parameter from the display class. This was causing
unnecessary warnings in a field assignment that assigned
`this` (an instance of the display class) to a field on the state
machine. In IL, that assignment references a field type like
`DisplayClass<T>` where `T` is the generic parameter on the state
machine. Here we were properly mapping type parameters of the
display class back to the annotated enclosing method's type
parameters, so we could tell that the "target" required
`PublicMethods`. But the substituted `T` from the state machine
was not mapped, causing the mismatch.
Kevin Jones [Fri, 19 May 2023 17:25:05 +0000 (13:25 -0400)]
Remove invalid assert in EvpPKeyDuplicate
EvpPKeyDuplicate has an invalid assert in it where it asserts that the handle it was passed is not IsInvalid. This may not be true in a multi-threaded scenario where an object is disposed by one thread while another thread is trying to use the resource.
Since we are marshaling the handle as a SafeHandle, just let it do the right thing of throwing an ObjectDisposedException when the marshaller attempts to add a reference to the handle.
Lakshan Fernando [Fri, 19 May 2023 16:33:25 +0000 (09:33 -0700)]
Enable event pipe tests in NativeAOT CI run (#86389)
* Test check on EventPipe NativeAOT
* exclude more tracing tests
* FB
Viktor Hofer [Fri, 19 May 2023 15:56:23 +0000 (17:56 +0200)]
Use net6.0 SqlClient TFM under source-build (#84782)
See discussion in https://github.com/dotnet/source-build-reference-packages/pull/633 for more context.
Ilona Tomkowicz [Fri, 19 May 2023 15:32:16 +0000 (17:32 +0200)]
[mono][debugger][docs] How we run debugger tests (#86495)
* Small fix.
Zoltan Varga [Fri, 19 May 2023 15:30:42 +0000 (08:30 -0700)]
[mono][jit] Enable Vector64 support on arm64 in jit mode. (#86188)
Vector64 is handled the same as the other SIMD types, only loads and stores
need to special case it.
Marek Fišera [Fri, 19 May 2023 14:49:23 +0000 (16:49 +0200)]
[browser] Update Wasm SDK pack version in workload manifest (#86382)
Blake Hensley [Fri, 19 May 2023 14:36:59 +0000 (07:36 -0700)]
Add ProcessStartInfo constructor that accepts IEnumerable<string> arguments (#86346)
Andy Ayers [Fri, 19 May 2023 13:23:34 +0000 (06:23 -0700)]
enable TieredPGO by default (#86225)
Katelyn Gadd [Fri, 19 May 2023 13:21:00 +0000 (06:21 -0700)]
[wasm] Generate jiterp feature detect modules dynamically (#86401)
Fixes dotnet/source-build#3442
Adam Sitnik [Fri, 19 May 2023 10:30:38 +0000 (12:30 +0200)]
remove [DebuggerDisplayAttribute] from ref assemblies (#86443)
Adam Sitnik [Fri, 19 May 2023 09:59:10 +0000 (11:59 +0200)]
FileConfigurationProvider.Dispose should dispose FileProvider when it ows it (#86455)
fixes #86146
Milos Kotlar [Fri, 19 May 2023 09:14:16 +0000 (11:14 +0200)]
Enable runtime tests on the Interpreter (#86375)
dotnet bot [Fri, 19 May 2023 09:03:59 +0000 (02:03 -0700)]
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2183857 (#86468)
* Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2183518
* Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2183518
Tanner Gooding [Fri, 19 May 2023 04:22:12 +0000 (21:22 -0700)]
Remove getMaxIntrinsicSIMDVectorLength from the JIT/EE interface (#86479)
* Fixing a couple small typos
* Remove getMaxIntrinsicSIMDVectorLength from the JIT/EE interface
* Update src/coreclr/vm/methodtablebuilder.cpp
---------
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Katelyn Gadd [Fri, 19 May 2023 01:52:25 +0000 (18:52 -0700)]
[interp] Undo damage to the simd methods bsearch list; support vectors of char (#86475)
While inspecting the performance of some vectorized BCL code, I noticed that I accidentally damaged one of the binary search lists.
There also appear to be some cases where vectors of char are used, so I touched up the code to make sure that we will select the right intrinsic in that case if we already supported U2.
Jeremy Koritzinsky [Fri, 19 May 2023 01:48:30 +0000 (18:48 -0700)]
Move the GCC and CLR Tools Unit Tests legs to use the global build template (#86411)
* Move the GCC validation leg to use the global build job template instead of the CoreCLR build template.
* Move CLR Tools Unit Tests leg to use the global build job template instead of the CoreCLR build job template
* Add iltools for the CoreCLR tools unit tests job
* Pass -gcc flag to test build in GCC job.
* Update eng/pipelines/coreclr/templates/build-job.yml
James Newton-King [Fri, 19 May 2023 00:51:11 +0000 (08:51 +0800)]
Add debugging attributes to System.Security.Claims types (#86424)
* Add debugging attributes to System.Security.Claims types
* Update
* Update ref, add type proxies
* PR feedback
* PR feedback
Katelyn Gadd [Fri, 19 May 2023 00:30:22 +0000 (17:30 -0700)]
[wasm] Implement I2 and I4 shuffles in the jiterpreter (#86469)
Implement a wasm lowering for V128_I2_SHUFFLE and V128_I4_SHUFFLE in the jiterpreter so BCL char operations won't be terribly slow
Jan Kotas [Thu, 18 May 2023 22:59:52 +0000 (15:59 -0700)]
Exclude System.* reference assemblies in ILCompiler.Build.Tasks (#86423)
* Exclude System.* reference assemblies in ILCompiler.Build.Tasks
We expect the implementation of these assemblies to come as part of msbuild.
Fixes #83695
* Do not include any System.* assemblies as part of the task
* Delete custom resolver
Elinor Fung [Thu, 18 May 2023 22:35:07 +0000 (00:35 +0200)]
Switch RhConfig from TCHAR to char (#86393)
- Hide away the details of reading the environment variable as `wchar` vs `char`
- Keep embedded variables as as ASCII (they are embedded as such already)
- Stop using `TCHAR` for the `RhConfig` APIs, which seemed to just be more confusing to consume
Katelyn Gadd [Thu, 18 May 2023 22:28:09 +0000 (15:28 -0700)]
[wasm] Enable v128 and PackedSimd in the interpreter (#85920)
Fix the create scalar intrinsics in the jiterpreter
Fix trimming removing SIMD even if SIMD was enabled
Add wasm opcode mapping for extract msb
Fix some SN_ lists in transform-simd being ordered incorrectly
Due to mixed mode it is not possible to control interp SIMD with a runtime option, so remove the options
Disable linker substitutions for SIMD unless AOT is active, so the interp is responsible for the properties
Generate a MINT_NIY for unimplemented PackedSimd methods
Katelyn Gadd [Thu, 18 May 2023 22:20:58 +0000 (15:20 -0700)]
[wasm] Update jiterpreter documentation (#86461)
* Add missing line breaks
* Update jiterpreter documentation with a sample annotated trace
* I love github flavored markdown
Elinor Fung [Thu, 18 May 2023 22:13:59 +0000 (00:13 +0200)]
Make host look for RID-specific assets via a known list by default (#84100)
Miha Zupan [Thu, 18 May 2023 22:05:17 +0000 (00:05 +0200)]
Remove workaround for fixed Roslyn bug (#86464)
Tanner Gooding [Thu, 18 May 2023 21:25:00 +0000 (14:25 -0700)]
Add an undocumented switch to allow controlling the preferred vector width emitted implicitly by the JIT (#86457)
* Add an undocumented switch to allow controlling the preferred vector width emitted implicitly by the JIT
* Resolving issues and responding to PR feedback
* Simplifying the xarch cpu info check
Stephen Toub [Thu, 18 May 2023 19:10:13 +0000 (15:10 -0400)]
Remove noisy assert from Task (#86445)
Bruce Forstall [Thu, 18 May 2023 19:05:56 +0000 (12:05 -0700)]
Remove call to morph on hoisted trees (#86450)
It is unnecessary (this causes no diffs). And theoretically if it
did cause diffs, the morphed tree would then not match the tree
being hoisted, meaning CSE wouldn't "find" it and consider it a CSE.
Layomi Akinrinade [Thu, 18 May 2023 18:20:51 +0000 (11:20 -0700)]
Clean various aspects of config binding generator up (#86420)
Brant Burnett [Thu, 18 May 2023 18:09:37 +0000 (14:09 -0400)]
Vectorize the CRC64 implementation (#85221)
Mark Plesko [Thu, 18 May 2023 18:04:34 +0000 (11:04 -0700)]
Fix GCStress timeouts in JIT/jit64 (#85040)
This includes several changes that seem to help with the timeouts. It might be overkill but seems like a good direction as this has been broken for a while.
- Change the test wrapper logic to only put one test in a TestExecutor so that the callstacks are much simpler.
- Factor the test wrapper logic into some helpers to simplify the main method. I also tried to make the "Full" and "XHarness" code generation very similar but didn't try to factor/unify them.
- Mark several tests as RequiresProcessIsolation so that their gcstress is kept separate from the rest of the tests. Disables a large test under gcstress.
- Add gcstress striping to some merged groups.
Should fix #85590
Vlad Brezae [Thu, 18 May 2023 17:55:03 +0000 (20:55 +0300)]
[mono][interp] Fix alignment problems with calls and simd types in unoptimized methods (#86433)
* [mono][interp] Make stack moving opcode generic
This opcode will be used to properly align stack in various unoptimized scenarios
* [mono][interp] Move params moving code
We still have the stack contents intact here
* [mono][interp] Account for alignment when computed stack size of the params
* [mono][interp] Fix alignment of simd args
When we align the parameters so the frame stack alignment is satisfied, we break the alignment on all simd arguments (which we previously aligned). We need to do another realignment.
* [mono][interp] Fix args alignment for newobj in unoptimized methods
Get rid of special opcode and do all the arg moving with MINT_MOV_STACK_UNOPT
* [mono][interp] Small cleanup
* Add test
Tom Deseyn [Thu, 18 May 2023 16:58:31 +0000 (18:58 +0200)]
Zip.Unix: don't hang when creating zip file from directory with named pipe. (#85301)
* Zip.Unix: don't hang when creating zip file from directory with named pipe.
When we open the named pipe for reading, that call will block indefinitely
when there is no writer to provide data.
And if we manage to read data from a pipe, that data was probably meant
for someone else.
Rather than opening named pipes, throw an IOException indicating they
are not supported.
And like the named pipes, this also treat character devices,
block devices, and sockets as unsupported types.
* Skip test on browser.
* Tar,Zip: update unsupported file type error message.
* Skip tests on tvOS/iOS.
dotnet-maestro[bot] [Thu, 18 May 2023 16:41:34 +0000 (11:41 -0500)]
Update dependencies from https://github.com/dotnet/arcade build
20230518.1 (#86437)
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.23267.2 -> To Version 8.0.0-beta.23268.1
Dependency coherency updates
Microsoft.SourceLink.GitHub,Microsoft.DotNet.XliffTasks
From Version 8.0.0-beta.23252.2 -> To Version 8.0.0-beta.23252.2 (parent: Microsoft.DotNet.Arcade.Sdk
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Bruce Forstall [Thu, 18 May 2023 16:16:07 +0000 (09:16 -0700)]
Fix issue with hoisting and copy prop interaction (#85493)
* Fix issue with hoisting and copy prop interaction
After hoisting creates a tree copy, it morphs it. That morph might
lose the value numbers on LCL_VAR uses, but leave the SSA numbers.
Copy prop was assuming that such a use had a VN. Instead, check this
dynamically instead of asserting.
Fixes #84619
* Further optimize cast in fgOptimizeCastOnStore()
If we optimize the cast, call `fgOptimizeCast` to see if it can be
optimized further.
* Add regression test
* Feedback
Aleksey Kliger (λgeek) [Thu, 18 May 2023 16:13:34 +0000 (12:13 -0400)]
[wasm] Set WasmEnableWebcil to true by default (#86330)
* [wasm] Set WasmEnableWebcil to true by default
* WebcilReader: copy updated struct for BlobReader.ReadUtf8NullTerminated
When using reflection to call a method on BlobReader, make sure to
copy the struct after the call since the internal state is modified
Fixes PdbChecksum extraction from Webcil files
(This was a problem even before webcil-in-wasm)
Michal Strehovský [Thu, 18 May 2023 13:58:11 +0000 (22:58 +0900)]
Fix scanning synchronized methods (#86427)
After #85810 we need to generate reflection metadata for owning types of static synchronized methods. Before that change, obtaining a RuntimeType for locking would obtain a reflection blocked type. We now need a named type and scanner must predict it.
Found in Pri0 testing.
Michal Strehovský [Thu, 18 May 2023 13:45:22 +0000 (22:45 +0900)]
Fill out array bounds in metadata transform (#86313)
* Fill out array bounds in metadata transform
The metadata writer will nullref if these are not set.
* FB
Stephen Toub [Thu, 18 May 2023 13:21:40 +0000 (09:21 -0400)]
Fix Base64 decoding regressions from whitespace handling (#86396)
* Fix Base64 decoding regressions from whitespace handling
Put the main code paths back to how they were before, with the sole exception being an extra method argument and an extra check in the InvalidData exit section that delegates to a helper if that method argument is true.
* Address PR feedback for pre-existing code
Pavel Savara [Thu, 18 May 2023 13:09:43 +0000 (15:09 +0200)]
[browser] logging cleanup (#86431)
* introduce logging functions
Eirik Tsarpalis [Thu, 18 May 2023 12:44:23 +0000 (13:44 +0100)]
Remove System.Reflection wrappers from the STJ source generator. (#86334)
* Remove System.Reflection wrappers from the STJ source generator.
* Fix linker warning.
* Fix namespace.
* Move ImmutableEquatableArray to Helpers folder.
* Fix build
* Salvage test from TypeWrapperTests
Ilona Tomkowicz [Thu, 18 May 2023 12:39:34 +0000 (14:39 +0200)]
[browser][non-icu] `HybridGlobalization` indexing (#85254)
* A bit faster version of indexing. WIP
* Tiny speedup.
* Fixed IndexOf, ToDo: LastIndexOf.
* All tests pass.
* Updated docs.
* Update docs.
* Slicing + saving previous absolute index instead of pushing the iterator to the start position.
* Refactored.
* Fixed tests on browser.
* Str1 and str2 was confusing.
* Fix CI- correctly trimming Hybrid properties.
* Previous commit should target only Browser.
* Applied @mkhamoyan's suggestion to avoid code duplication.
* Applied @pavelsavara's review.
* Get rid of build errors.
* Revert.
Egor Bogatov [Thu, 18 May 2023 11:09:10 +0000 (13:09 +0200)]
Fix assertprop assert for missing handle flag (#86409)
* Number IND<size_t>(obj) as handle
David Mason [Thu, 18 May 2023 09:42:59 +0000 (02:42 -0700)]
Fix deadlock in NativeRuntimeEventSourceTest (#86370)
* Update NativeRuntimeEventSourceTest.cs
* Update NativeRuntimeEventSourceTest.cs
* Update NativeRuntimeEventSourceTest.cs
Alexander Köplinger [Thu, 18 May 2023 09:35:46 +0000 (11:35 +0200)]
Disable DllImportSearchPathsTest and StartupHookTests on mobile (#86269)
Also try to fix the StartupHookTests on LLVM FullAOT by making sure we also AOT dlls in subdirectories.
This uncovered an issue in src/tests/Common/external/external.csproj where an old version of Microsoft.CodeAnalysis.Compilers was referenced which made AOT fail, so I upgraded it.
That uncovered a problem AOTing Microsoft.CodeAnalysis.VisualBasic.dll so had to exclude it from AOTing.
Oleksandr Didyk [Thu, 18 May 2023 08:15:33 +0000 (10:15 +0200)]
add pre-built detection (#86151)
Marek Fišera [Thu, 18 May 2023 07:29:43 +0000 (09:29 +0200)]
[browser] Describe ES6 modules (#86381)
Mark Plesko [Thu, 18 May 2023 06:36:40 +0000 (23:36 -0700)]
Convert JIT/CodeGenBringUpTests to a merged test group (#85847)
See https://github.com/markples/utils/tree/for-PR-dotnet-runtime-85847-others for ILTransform tool. As usual, I recommend viewing the commit list since it partitions the changes in a more readable way and paying more attention to manual changes.
* [ILTransform -public] Make test entrypoints accessible
* [ILTransform -ilfact] Main->TestEntryPoint, [Fact], remove OutputType=Exe
* Manual fixes for xUnit1013 - internal methods
* Add merged group
* Update porting-ryujit.md with info on merged test groups
Tomas Weinfurt [Thu, 18 May 2023 05:42:35 +0000 (22:42 -0700)]
avoid ProtocolToken allocations in TLS handshake (#86163)
* avoild ProtocolToken allocations in TLS handshake
* cleanup
* UnitTests
* feedback from review
Michal Strehovský [Thu, 18 May 2023 03:34:22 +0000 (12:34 +0900)]
Add natstepfilter to skip over object allocators (#86418)
VS 17.6 added support for natstepfilter in project files. Take advantage of it to skip over object allocators that we pretty much never want to step into.
I'm following up with some VS debugger people to see if there's any plans to allow embedding this in the PDB like natvis. Having this in the vcxproj helps the repro project, but doesn't help end user scenarios.
Jeremy Koritzinsky [Thu, 18 May 2023 03:09:06 +0000 (20:09 -0700)]
Make IDerivedTest.CallBaseInterfaceMethod_EnsureQiCalledOnce trim-friendly (#86397)
Change the reflection usage to be trim friendly.
Michal Strehovský [Thu, 18 May 2023 02:03:54 +0000 (11:03 +0900)]
Do not assert RyuJIT if InitializeArray cannot be expanded (#86373)
Found in Pri0 tests. `RuntimeHelper.InitializeArray(default, default)` would assert RyuJIT. Do not assert.
The tests also have various invalid combinations of the intrinsic that make it difficult to do optimized builds (we don't want the target field to become reflectable in the common cases but also failing to predict when this doesn't expand results in scanning failures due to unmet reflection dependencies).
Give up on trying to predict when intrinsic expansion kicks in and instead lean into RVA statics not being expressible in C# and the fields not being reflection-invokable anyway.
Bruce Forstall [Thu, 18 May 2023 01:12:43 +0000 (18:12 -0700)]
Remove extraneous VN code (#86407)
* Remove extraneous code
This wasn't invoking the JitHashTable destructor as evidently intended,
though the destructor was already being invoked by default.
Fixes #86372
* Feedback: delete entire VNMap dtor
Kunal Pathak [Thu, 18 May 2023 00:36:05 +0000 (17:36 -0700)]
Delay reg free for tbx_1reg (#86292)
* Delay reg free for tbx_1reg
* remove unused code
* jit format
* Fix WideningLower
* Remove the unnecessary asserT
Jackson Schuster [Thu, 18 May 2023 00:09:44 +0000 (17:09 -0700)]
Add basic support for StringMarshalling in GeneratedComInterface (#86404)
Layomi Akinrinade [Wed, 17 May 2023 22:42:31 +0000 (15:42 -0700)]
Enable config binding gen tests that pass (#86406)
dotnet bot [Wed, 17 May 2023 22:03:22 +0000 (15:03 -0700)]
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2182497 (#86369)
* Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2182111
* Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2182111
Michal Strehovský [Wed, 17 May 2023 21:53:06 +0000 (06:53 +0900)]
Make sure not to strip `endfilter` (#86374)
Fixes the issue described in #86304 (but doesn't fix the issue because that's for ILLink). Found by Pri0 tests.
Sanjam Panda [Wed, 17 May 2023 21:03:33 +0000 (02:33 +0530)]
[MONO] Add JIT_CODE_DEBUG_INFO record functionality for Jitdump (#85107)
* added support for JITDEBUG_INFO
* added comments
* Update mini-runtime.c
* made changes to coding conventions
* Update mini-runtime.c
* Update mini-runtime.c
* Update mini-runtime.c
* Update mini-runtime.c
David Mason [Wed, 17 May 2023 20:23:27 +0000 (13:23 -0700)]
Add IPC commands to enable and disable PerfMaps/JitDumps (#85801)
SingleAccretion [Wed, 17 May 2023 19:47:38 +0000 (22:47 +0300)]
Delete the verification type system (#86179)
* Delete "verIsByRefLike"
* Decouple SIMD class recognition from 'typeInfo'
* Remove struct handles from 'typeInfo'
* Delete the verification type system
* Delete 'verType' comments
Zoltan Varga [Wed, 17 May 2023 18:28:21 +0000 (11:28 -0700)]
[mono][jit] Implement JIT support for the arm64 Crc and Dp intrinsics sets. (#86106)
Also implement hw capacity detection for apple+arm64 platforms.
Egor Bogatov [Wed, 17 May 2023 18:00:40 +0000 (20:00 +0200)]
Improve constant folding for some frozen objects (#86318)
Eirik Tsarpalis [Wed, 17 May 2023 16:23:45 +0000 (17:23 +0100)]
Revert RequiredAttribute.DisallowAllDefaultValues (#86378)
Mike McLaughlin [Wed, 17 May 2023 16:20:00 +0000 (09:20 -0700)]
Fix DAC syncblk API so the SOS tests stop failing intermittently (#86339)
Fix DAC syncblk API
Only fill in the syncblk data if there are blocks
Add SBNumber index validation to API
Qiao Pengcheng [Wed, 17 May 2023 15:11:06 +0000 (23:11 +0800)]
[LoongArch64] amend the crossgen2/r2rdump for LA64. (#85038)
Trung Nguyen [Wed, 17 May 2023 15:10:39 +0000 (01:10 +1000)]
Initial build configuration for Haiku (#86303)
* Haiku: Initial configuration support
Initially recognize Haiku as a supported platform in
Directory.Build.props and all scripts in eng/**.
* Drop some unused configure values
Drop some unused configure values from tryrun.cmake,
configure.cmake and config.h.in.
* Simplify error message in build.sh
Simplified an error message for the `--os` option to avoid maintaining a duplicate list of OSes.
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Jakob Botsch Nielsen [Wed, 17 May 2023 14:58:32 +0000 (16:58 +0200)]
JIT: Stop specifying general JitStress in OSR/largefuncletframe (#86380)
Otherwise new stress modes can change what the test is testing. I
verified that these stress modes reproduced the original issue back when
the test was introduced.
Fix #86185
Michal Strehovský [Wed, 17 May 2023 14:50:46 +0000 (23:50 +0900)]
Include Native AOT pdbs in Helix payload (#86367)
LateApexEarlySpeed [Wed, 17 May 2023 14:25:35 +0000 (22:25 +0800)]
Add ToDictionary() overloads for KeyValuePair and ValueTuple kv. (#85811)
* Initial commit to add ToDictionary() overloads for KeyValuePair and ValueTuple kv.
* Add xml doc; add tests.
* Fix comments: use Dictionary's ctor for IEnumerable<KeyValuePair<>> overload; API signature changed to nullable comparer.
* Throw ArgumentNullExp with 'source' parameter name.
Stephen Toub [Wed, 17 May 2023 14:23:45 +0000 (10:23 -0400)]
Special-case array/list in Dictionary(IEnumerable, …) ctors (#86254)
* Special-case array/list in Dictionary(IEnumerable, ...) ctors
It's reasonably common to construct a dictionary from a `KeyValuePair<TKey, TValue>[]` or a `List<KeyValuePair<TKey, TValue>>`, and we can make both cheaper.
Dong-Heon Jung [Wed, 17 May 2023 13:09:41 +0000 (22:09 +0900)]
[RISC-V][JIT] Fix floating-point args passing (#86244)
Marek Fišera [Wed, 17 May 2023 12:56:00 +0000 (14:56 +0200)]
[browser] Fix using startupOptions when loadBootResource is not specified (#86371)
- Fix passing startupOptions to resourceLoader creation when loadBootResource is not specified
- Fix propagating applicationEnvironment
Michal Strehovský [Wed, 17 May 2023 12:08:20 +0000 (21:08 +0900)]
Baseline Native AOT tests (#86366)
* Remove NativeAOT test exclusion for issue #83167
Resolves #83167.
* Update tests.proj
* Update tests.proj
Qiao Pengcheng [Wed, 17 May 2023 11:46:10 +0000 (19:46 +0800)]
fix the regs conflicts within the `addResolution` for LoongArch64 and RISC-V. (#86294)
* Fix the regs conflicts within the `addResolution` for LoongArch64/RISC-V.
* amend the code for CR.
* add terminatorNodeLclVarDsc2 for the second op2.
Tom Deseyn [Wed, 17 May 2023 10:06:24 +0000 (12:06 +0200)]
ProcessTests: allow WorkingSet to be zero just after launching the process. (#85649)
* ProcessTests: allow WorkingSet to be zero just after launching the process.
The WorkingSet tests fail on Fedora 38+ because a zero working set value
is observed just after the process start.
Tobias Mollstam [Wed, 17 May 2023 08:56:14 +0000 (10:56 +0200)]
Fix debug compile error in mono mini (#86329)
Adeel Mujahid [Wed, 17 May 2023 08:52:29 +0000 (11:52 +0300)]
Restructure WellKnownOids.cs to reduce binary size (#84921)