platform/upstream/dotnet/runtime.git
2 years agoDelete impCheckForNullPointer (#61576)
SingleAccretion [Mon, 15 Nov 2021 22:42:51 +0000 (01:42 +0300)]
Delete impCheckForNullPointer (#61576)

The comment above the method mentions "many problems" with leaving
null pointers around, but it is unclear what kind of problems. I can
only speculate those were the problems in legacy codegen which "could
not handle constant op1".

It also mentions that "we cannot even fold (null+offset)", which is
incorrect: "gtFoldExprConst" does in fact fold such expressions to
zero byrefs. It is also the case that spilling the null into a local
affects little as local assertion propagation happily propagates the
null back into its original place.

There was also a little bug associated with the method that got fixed:
morph was trying to use it, and in the process created uses of a local
that was not initialized, since the statement list used by the method
is the importer's one, invalid in morph.

2 years ago[wasm] parallel asset loading (#61610)
Pavel Savara [Mon, 15 Nov 2021 22:22:48 +0000 (23:22 +0100)]
[wasm] parallel asset loading (#61610)

2 years agoAdding support for X86Base.Pause() and ArmBase.Yield() (#61065)
Tanner Gooding [Mon, 15 Nov 2021 22:15:00 +0000 (14:15 -0800)]
Adding support for X86Base.Pause() and ArmBase.Yield() (#61065)

* Adding support for X86Base.Pause() and ArmBase.Yield()

* Applying formatting patch

* Ensure NI_ArmBase_Yield actually gets through to codegen on arm64

2 years agoCreate runtime staging clone to manually kick off full test runs (#61443)
Steve Pfister [Mon, 15 Nov 2021 22:10:19 +0000 (14:10 -0800)]
Create runtime staging clone to manually kick off full test runs (#61443)

This change allows devs to manually kick off full test runs on the configurations that only execute smoke tests per PR.

/azp runtime-staging-manual will do the trick

2 years agoGive write access to backport action explicitly (#61626)
Juan Hoyos [Mon, 15 Nov 2021 21:38:50 +0000 (13:38 -0800)]
Give write access to backport action explicitly (#61626)

2 years agoLoop refactoring and commenting improvements (#61496)
Bruce Forstall [Mon, 15 Nov 2021 21:25:51 +0000 (13:25 -0800)]
Loop refactoring and commenting improvements (#61496)

- Remove unneeded FIRST concept in loop table; it was always equal to TOP.
- Rename optMarkLoopsBlocks to optScaleLoopBlocks to more accurately describe
what it does. More consistently report block scaling in the dump
- Create optMarkLoopHeads. This was refactored out of fgRemoveUnreachableBlocks so
it can be called in a more logical location (at the beginning of optFindLoops),
and only does one thing.
- fgMakeOutgoingStructArgCopy: remove unused `argIndex` argument; reorder calls to
fgMightHaveLoop.
- Update and write a bunch of comments; convert away from `/* */` style comments.

2 years agoThere shouldn't be a 'lib' prefix on Windows .lib files (#61618)
Jo Shields [Mon, 15 Nov 2021 20:15:50 +0000 (20:15 +0000)]
There shouldn't be a 'lib' prefix on Windows .lib files (#61618)

2 years agoDelete dead code (#61533)
SingleAccretion [Mon, 15 Nov 2021 20:11:22 +0000 (23:11 +0300)]
Delete dead code (#61533)

* Delete regArgList

Unused.

* Delete CountSharedStaticHelper

Unused.

* Delete GTF_RELOP_QMARK

Unused.

* Delete lvaPromotedStructAssemblyScratchVar

Unused.

* Delete dead code from fgMorphSmpOp

The conditions tested constitute invalid IR.

* Delete gtCompareTree

Unused.

* Delete gtAssertColonCond

Unused.

* Delete IsSuperPMIException

Unused.

2 years agoImprove System.Speech trimmability (#61566)
Andrii Kurdiumov [Mon, 15 Nov 2021 19:50:53 +0000 (01:50 +0600)]
Improve System.Speech trimmability (#61566)

by removing obvious warnings

2 years agoFix LastWriteTime and LastAccessTime of a symlink on Windows and Unix (#52639)
Hamish Arblaster [Mon, 15 Nov 2021 19:45:31 +0000 (06:45 +1100)]
Fix LastWriteTime and LastAccessTime of a symlink on Windows and Unix (#52639)

* Implement most of the fix for #38824

Reverts the changes in the seperate PR https://github.com/dotnet/runtime/commit/a617a01195b4dad3cb5f300962ad843b46d4f175 to fix #38824.
Does not re-enable the test because that relies on #49555, will add a seperate commit to whichever is merged last to enable the SettingUpdatesPropertiesOnSymlink test.

* Most of the code for PR #52639 to fix #38824

• Deal with merge conflicts
• Add FSOPT_NOFOLLOW for macOS and use it in setattrlist
• Use AT_SYMLINK_NOFOLLOW with utimensat (note: there doesn't seem to be an equivalent for utimes)
• Add SettingUpdatesPropertiesOnSymlink test to test if it actually sets it on the symlink itself (to the best that we can anyway ie. write + read the times)
• Specify FILE_FLAG_OPEN_REPARSE_POINT for CreateFile in FileSystem.Windows.cs (is there any other CreateFile calls that need this?)

* Remove additional FILE_FLAG_OPEN_REPARSE_POINT

I added FILE_FLAG_OPEN_REPARSE_POINT before and it was then added in another PR, this removes the duplicate entry.

* Add missing override keywords

Add missing override keywords for abstract members in the tests.

* Fix access modifiers

Fix access modifiers for tests - were meant to be protected rather than public

* Add more symlink tests, rearrange files

• Move symlink creation api to better spot in non-base files
• Add IsDirectory property for some of the new tests
• Change abstract symlink api to CreateSymlink that accepts path and target
• Create a CreateSymlinkToItem method that creates a symlink to an item that may be relative that uses the new/modified abstract CreateSymlink method
• Add SettingUpdatesPropertiesCore to avoid code duplication
• Add tests for the following variants: normal/symlink, target exists/doesn't exist, absolute/relative target
• Exclude nonexistent symlink target tests on Unix for Directories since they are counted as files

* Fix return type of CreateSymlink in File/GetSetTimes.cs

* Remove browser from new symlink tests as it doesn't support creation of symlinks

Remove browser from new symlink tests as it doesn't support creation of symlinks

* Use lutimes, improve code readability, simplify tests

• Use lutimes when it's available
• Extract dwFlagsAndAttributes to a variable
• Use same year for all tests
• Checking to delete old symlink is unnecessary, so don't
• Replace var with explicit type

* Change year in test to 2014 to reduce diff

* Rename symlink tests, use 1 core symlink times function, and check that target times don't change

Rename symlink tests, use 1 core symlink times function, and check that target times don't change

* Inline RunSymlinkTestPart 'function'

Inline RunSymlinkTestPart 'function' so that the code can be reordered so the access time test can be valid.

* Share CreateSymlinkToItem call in tests and update comment for clarity

* Update symlink time tests

• Make SettingUpdatesPropertiesOnSymlink a theory
• Remove special case for Unix due to https://github.com/dotnet/runtime/pull/52639#discussion_r739009259 (will revert if fails)
• Rename isRelative to targetIsRelative for clarity

* Remove unnecessary Assert.All

* Changes to SettingUpdatesPropertiesOnSymlink test

• Rename item field to link field
• Don't use if one-liner
• Use all time functions since only using UTC isn't necessary
• Remove the now-defunct IsDirectory property since we aren't checking it anymore

* Remove unnecessary fsi.Refresh()

• Remove unnecessary fsi.Refresh() since atime is only updated when reading a file

* Updates to test and pal_time.c

• Remove targetIsRelative cases
• Multi-line if statement
• Combine HAVE_LUTIMES and #else conditions to allow more code charing

* Remove trailing space

2 years agoFix CharInClass reference in regex emitter (#61559)
Stephen Toub [Mon, 15 Nov 2021 19:21:34 +0000 (14:21 -0500)]
Fix CharInClass reference in regex emitter (#61559)

We've tried to consistently use global:: whenever referring to core library types in the regex generator emitted code.  I'd missed these two.

(That said, these make the code a lot harder to read, especially in places where we're unable to use extension methods as extensions, so we'll want to revisit this policy.)

2 years agoExclude the managed code around libproc on iOS/tvOS (#61590)
Maxim Lipnin [Mon, 15 Nov 2021 19:03:59 +0000 (22:03 +0300)]
Exclude the managed code around libproc on iOS/tvOS (#61590)

Since libproc is a private Apple API, it is not available on iOS/tvOS and should be excluded (see #61265 (comment) and above for more details).
This PR excludes $(CommonPath)Interop\OSX\Interop.libproc.cs on the iOS/tvOS as well as makes some methods in Process, ProcessManager, and ProcessThread classes calling that API throw PNSE so that for iOS/tvOS it's possible to re-use the respective *.UnknownUnix.cs parts.

2 years agoFileSystem.Unix: improve CopyFile. (#59695)
Tom Deseyn [Mon, 15 Nov 2021 17:26:16 +0000 (18:26 +0100)]
FileSystem.Unix: improve CopyFile. (#59695)

* FileSystem.Unix: improve CopyFile.

Like the upcoming version of GNU coreutils 'cp' prefer a copy-on-write clone.
This shares the physical storage between files, which means no data needs to copied.
CoW-clones are supported by a number of Linux file systems, like Btrfs, XFS, and overlayfs.

Eliminate a 'stat' call that is always performed for checking if the target is a directory
by only performing the check when the 'open' syscall reports an error.

Eliminate a 'stat' call for retrieving the file size of the source by passing through
the length that was retrieved when checking the opened file is not a directory.

Create the destination with file permissions that match the source.
We still need to fchmod due to umask being applied to the open mode.

When performing a manual copy, limit the allocated buffer for small files.
And, avoid the last 'read' call by checking when we've copied the expected nr of bytes.

* Don't FICLONE for zero sourceLength

* PR feedback

* When using sendfile, don't loop when source file gets truncated.

* Fall through when FICLONE fails.

* Don't stop CopyFile_ReadWrite until read returns zero.

* Revert all changes to CopyFile_ReadWrite

* Move comment a few lines up.

* Fix unused error.

2 years agoUpdate workflow docs to indicate ARM64 macOS works (#61575)
Kevin Jones [Mon, 15 Nov 2021 17:09:02 +0000 (12:09 -0500)]
Update workflow docs to indicate ARM64 macOS works (#61575)

2 years agoUse GeneratedDllImport for blittable p/invokes in System.Diagnostics.Process, System...
Elinor Fung [Mon, 15 Nov 2021 16:41:11 +0000 (08:41 -0800)]
Use GeneratedDllImport for blittable p/invokes in System.Diagnostics.Process, System.Diagnostics.Process, System.Diagnostics.FileVersionInfo, System.Runtime.InteropServices.RuntimeInformation (#61532)

2 years agoUse Span.Fill in String(Char, Int32) constructor (#60269)
Steve Dunn [Mon, 15 Nov 2021 16:35:57 +0000 (16:35 +0000)]
Use Span.Fill in String(Char, Int32) constructor  (#60269)

* Apply suggestions from code review

Co-authored-by: Adam Sitnik <adam.sitnik@gmail.com>
Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
2 years agoRemove the "anything + null => null" optimization (#61518)
SingleAccretion [Mon, 15 Nov 2021 16:35:28 +0000 (19:35 +0300)]
Remove the "anything + null => null" optimization (#61518)

This optimization is only legal if:
1) "Anything" is a sufficiently small constant itself.
2) We are in a context where we know the address will in
   fact be used for an indirection.

It is the second point that is problematic - one would
like to use MorphAddrContext, but it is not suitable
for this purpose, as an unknown context is counted as
an indirecting one. Additionally, the value of this
optimization is rather low. I am guessing it was meant
to support the legacy nullchecks, before GT_NULLCHECK
was introduced, and had higher impact then.

So, just remove the optimization and leave the 5 small
regressions across all of SPMI be.

2 years agoSortedList<TKey, TValue> added GetKeyAtIndex, GetValueAtIndex, and SetValueAtIndex...
rhaokiel [Mon, 15 Nov 2021 15:52:40 +0000 (09:52 -0600)]
SortedList<TKey, TValue> added GetKeyAtIndex, GetValueAtIndex, and SetValueAtIndex (#60520)

* SortedList<TKey, TValue> added GetKeyAtIndex, GetValueAtIndex, and SetValueAtIndex

* Update src/libraries/System.Collections/src/System/Collections/Generic/SortedList.cs

Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
2 years agoDisable poisoning for large structs (#61589)
Jakob Botsch Nielsen [Mon, 15 Nov 2021 15:28:07 +0000 (16:28 +0100)]
Disable poisoning for large structs (#61589)

For very large structs (> 64K in size) poisoning could end up generating
instructions requiring larger local var offsets than we can handle. This
hits IMPL_LIMIT that throws InvalidProgramException. Turn off poisoning
for larger structs that require more than 16 movs to also avoid the
significant code bloat by the singular movs.

This is a less risky version of #61521 for backporting to .NET 6.

Fix #60852

2 years agoRewrite selection for fields (#61370)
SingleAccretion [Mon, 15 Nov 2021 15:24:55 +0000 (18:24 +0300)]
Rewrite selection for fields (#61370)

The issue was that VNApplySelectors uses the types
of fields when selecting, but that's not valid for
"the first field" maps.

Mirror how the stores to fields are numbered.

2 years ago[main] Update dependencies from 3 repositories (#61568)
dotnet-maestro[bot] [Mon, 15 Nov 2021 15:13:35 +0000 (16:13 +0100)]
[main] Update dependencies from 3 repositories (#61568)

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2 years agoDelete `__DoCrossgen2` (#61582)
Michal Strehovský [Mon, 15 Nov 2021 14:35:10 +0000 (23:35 +0900)]
Delete `__DoCrossgen2` (#61582)

`__DoCrossgen2` appears to be redundant with `__TestBuildMode=crossgen2`.

2 years agoAdd JsonSerializerOptions.Default (#61434)
Eirik Tsarpalis [Mon, 15 Nov 2021 11:16:33 +0000 (11:16 +0000)]
Add JsonSerializerOptions.Default (#61434)

* Add JsonSerializerOptions.Default

* address feedback

* address feedback

2 years ago[main] Update dependencies from dotnet/linker (#61094)
dotnet-maestro[bot] [Mon, 15 Nov 2021 09:39:39 +0000 (10:39 +0100)]
[main] Update dependencies from dotnet/linker (#61094)

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2 years agoAlternative fix of #60182 (#60298)
SRV [Mon, 15 Nov 2021 05:37:33 +0000 (07:37 +0200)]
Alternative fix of #60182 (#60298)

2 years agoEnable 54910 tests (#61564)
Adeel Mujahid [Sun, 14 Nov 2021 23:47:27 +0000 (01:47 +0200)]
Enable 54910 tests (#61564)

2 years agoAdd [Fact] attributes to JIT regression tests (#61540)
Tomáš Rylek [Sun, 14 Nov 2021 23:46:03 +0000 (00:46 +0100)]
Add [Fact] attributes to JIT regression tests (#61540)

For now there's no functional change to the behavior of the tests,
I have just copied the bits to inject from Jeremy's example in his
pending PR.

I have spot-checked that some of the tests use Main with the
command-line args argument. I'm not changing them in this PR, the
signature only becomes important once we start actually merging
the IL tests and I presume we'll clean that up at that point.

Thanks

Tomas

Contributes to: https://github.com/dotnet/runtime/issues/54512

2 years agoAdd [Fact] attributes to methodical JIT tests (#61536)
Tomáš Rylek [Sun, 14 Nov 2021 23:42:34 +0000 (00:42 +0100)]
Add [Fact] attributes to methodical JIT tests (#61536)

For now there's no functional change to the behavior of the tests,
I have just copied the bits to inject from Jeremy's example in his
pending PR.

Thanks

Tomas

Contributes to: https://github.com/dotnet/runtime/issues/54512

2 years agoCompletely lock-free ClassLoader::LookupTypeKey (#61346)
Vladimir Sadov [Sun, 14 Nov 2021 22:32:50 +0000 (14:32 -0800)]
Completely lock-free ClassLoader::LookupTypeKey (#61346)

* embedded size

* next array

* read consistency while rehashing

* comments

* remove CRST_UNSAFE_ANYMODE and COOP mode in the callers

* typo

* fix 32bit builds

* couple changes from review.

* Walk the buckets in resize.

* remove a `REVIEW:` comment.

* Update src/coreclr/vm/dacenumerablehash.inl

PR review suggestion

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* remove use of `auto`

* DAC stuff

* Constructor and GrowTable are not called by DAC, no need for DPTR, added a comment about a cast.

* SKIP_SPECIAL_SLOTS

* More compact dac_cast in GetNext

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
2 years agoAdd [Fact] attributes on TypeGeneratorTests (#61534)
Tomáš Rylek [Sun, 14 Nov 2021 21:27:23 +0000 (22:27 +0100)]
Add [Fact] attributes on TypeGeneratorTests (#61534)

For now there's no functional change to the behavior of the tests,
I have just copied the bits to inject from Jeremy's example in his
pending PR.

Thanks

Tomas

2 years agoEnable new analyzers in global configs (#60914)
Stephen Toub [Sun, 14 Nov 2021 12:07:47 +0000 (07:07 -0500)]
Enable new analyzers in global configs (#60914)

* Enable new analyzers in global configs

* Address PR feedback

2 years ago[mono] Disable partial generic sharing for gparams with non-enum constraints. (#59437)
Zoltan Varga [Sun, 14 Nov 2021 02:31:32 +0000 (21:31 -0500)]
[mono] Disable partial generic sharing for gparams with non-enum constraints. (#59437)

If a generic argument is a primitive type, and it has an interface constraint
that enums don't implement, then partial sharing for that instance is not
useful, since only the specific primitive type instance will be able
to use the shared version.

Fixes https://github.com/dotnet/runtime/issues/54910.

2 years ago[mono] Add a 'inline_method' profiler event. (#61454)
Zoltan Varga [Sat, 13 Nov 2021 19:30:09 +0000 (14:30 -0500)]
[mono] Add a 'inline_method' profiler event. (#61454)

Emit it in the interpreter when a method is inlined or replaced with
an intrinsic. This is needed so the AOT profiler can track these
methods.

2 years agoUpdate how OSR and PGO interact (#61453)
Andy Ayers [Sat, 13 Nov 2021 19:17:25 +0000 (11:17 -0800)]
Update how OSR and PGO interact (#61453)

When both OSR and PGO are enabled:
* Enable instrumenting OSR methods, so that the combined profile data from
Tier0 plus any OSR variants provide a full picture for subsequent Tier1
optimization.
* Use block profiles for both Tier0 methods that are likely to have patchpoints
and OSR methods.
* Fix phase ordering so partially jitted methods don't lose probes.
* A few more fixes for partial compilation, because the number of things
we think we might instrument and the number of things we end up instrumenting
can differ.
* Also improve the DumpJittedMethod output for OSR, and allow selective dumping
of a particular OSR variant by specifying its IL offset.

The updates on the runtime side are to pass BBINSTR to OSR methods, and to
handle the (typical) case where the OSR method instrumentation schema is a subset
of the Tier0 method schema.

We are still allowing OSR methods to read the profile data. So they are both
profile instrumented and profile optimized. Not clear if this is going to work
well as the Tier0 data will be incomplete and optimization quality may be poor.
Something to revisit down the road.

2 years ago[mini] Allow MONO_VERBOSE_METHOD='*:*' (#61520)
Aleksey Kliger (λgeek) [Sat, 13 Nov 2021 18:25:31 +0000 (13:25 -0500)]
[mini] Allow MONO_VERBOSE_METHOD='*:*' (#61520)

Implement method name wildcard matching for method descriptions

Globbing doesn't work because we don't have g_pattern_match_simple in eglib.
But a plain '*' wildcard does work.

2 years ago[DllImportGenerator] Treat pointer fields in structs as blittable regardless of what...
Elinor Fung [Sat, 13 Nov 2021 03:08:39 +0000 (19:08 -0800)]
[DllImportGenerator] Treat pointer fields in structs as blittable regardless of what they point at (#61538)

2 years agoUpdate exception docs (#61278)
Genevieve Warren [Fri, 12 Nov 2021 23:47:55 +0000 (15:47 -0800)]
Update exception docs (#61278)

2 years agoFix optIsLoopEntry to skip removed loops (#61527)
Bruce Forstall [Fri, 12 Nov 2021 22:39:52 +0000 (14:39 -0800)]
Fix optIsLoopEntry to skip removed loops (#61527)

This was preventing block compaction with loop entry blocks in loops
that had been previously optimized away (and thus removed from the
loop table).

There are a few cases where we now delete dead code that was previously
left in the function. There are a number of spurious local weighting
and IG textual asm diffs changes, possibly due to how PerfScore is implemented
(there are some surprisingly large PerfScore changes in a few cases,
despite no change in (most) generated code).

2 years ago[mono][jit] Optimize calls to Type:get_IsValueType () on gshared constrained types...
Zoltan Varga [Fri, 12 Nov 2021 22:11:29 +0000 (17:11 -0500)]
[mono][jit] Optimize calls to Type:get_IsValueType () on gshared constrained types. (#61514)

These are used for example in Span<T>:.ctor ().

2 years ago[mono][jit] Optimize constrained calls to object.GetHashCode () where the receiver...
Zoltan Varga [Fri, 12 Nov 2021 19:47:49 +0000 (14:47 -0500)]
[mono][jit] Optimize constrained calls to object.GetHashCode () where the receiver is a gshared type constrained to a primitive type/enum. (#61513)

2 years agoRemove all DLLIMPORTGENERATOR_ENABLED usage. (#61476)
Aaron Robinson [Fri, 12 Nov 2021 19:08:39 +0000 (11:08 -0800)]
Remove all DLLIMPORTGENERATOR_ENABLED usage. (#61476)

* Remove all DLLIMPORTGENERATOR_ENABLED usage.

* Explicitly set EnableDllImportGenerator to true in test project.

2 years agoLock non localizable strings on regex resources (#61489)
Santiago Fernandez Madero [Fri, 12 Nov 2021 18:06:15 +0000 (10:06 -0800)]
Lock non localizable strings on regex resources (#61489)

2 years agoRemove explicit '.exe' extension from assembly names in ilproj tests (#61479)
Tomáš Rylek [Fri, 12 Nov 2021 17:41:55 +0000 (18:41 +0100)]
Remove explicit '.exe' extension from assembly names in ilproj tests (#61479)

2 years agoSystem.IO files cleanup (#61413)
Adam Sitnik [Fri, 12 Nov 2021 15:13:09 +0000 (16:13 +0100)]
System.IO files cleanup (#61413)

* Environment.SystemPageSize returns cached value

* we are no longer shipping MS.IO.Redist, so we can use Array.MaxLength directly

* we are no longer shipping MS.IO.Redist, there is no need for File to be partial

* we are no longer shipping MS.IO.Redist, there is no need for FileInfo to be partial

* there is no need for .Win32.cs and .Windows.cs file anymore

2 years ago[wasm] Add AppStart task to the bench Sample (#61481)
Radek Doulik [Fri, 12 Nov 2021 14:34:56 +0000 (15:34 +0100)]
[wasm] Add AppStart task to the bench Sample (#61481)

Measure browser app start times, 2 measurements implemented.

First to measure till the JS window.pageshow event, second to measure
time when we reach managed C# code.

Example ouput:

    | measurement | time |
    |-:|-:|
    |                    AppStart, Page show |   108.1400ms |
    |                AppStart, Reach managed |   240.2174ms |

2 years agoImplement Narrow and Widen using SIMDAsHWIntrinsic (#60094)
Tanner Gooding [Fri, 12 Nov 2021 04:32:49 +0000 (20:32 -0800)]
Implement Narrow and Widen using SIMDAsHWIntrinsic (#60094)

* Moving Narrow to implemented using SIMDAsHWIntrinsic

* Moving Widen to implemented using SIMDAsHWIntrinsic

* Fix some handling of Narrow/Widen hwintrinsics

* Ensure that Vector.Widen is still treated as an intrinsic

* Fixing NI_VectorT128_WidenUpper on ARM64 to actually call gtNewSimdWidenUpper

2 years agoXARCH: Remove redudant tests for GT_LT/GT_GE relops. (#61152)
anthonycanino [Fri, 12 Nov 2021 01:41:39 +0000 (17:41 -0800)]
XARCH: Remove redudant tests for GT_LT/GT_GE relops. (#61152)

* XARCH: Remove redudant tests for GT_LT/GT_GE relops.

We can now optimize cases such as `(x + y < 0)` or `for (int x = v; x >= 0; x--)`
using the flag tracking logic during the emit stage. Notably, cases that
would generate...

```
add     reg0, reg1
test    reg0, reg0
jge     LABEL
```

now transform to

```
add     reg0, reg1
jns     LABEL
```

This transform is valid for signed GE and signed LT only.

* Add a few asserts related to flag reuse optimizations.

2 years agoUpdating src/tests/Interop/PInvoke/Generics/GenericsNative.Vector* to annotate indivi...
Tanner Gooding [Thu, 11 Nov 2021 23:33:25 +0000 (15:33 -0800)]
Updating src/tests/Interop/PInvoke/Generics/GenericsNative.Vector* to annotate individual methods as requiring AVX (#61259)

* Updating src/tests/Interop/PInvoke/Generics/GenericsNative.Vector* to annotate individual methods as requiring AVX

* Always use __m256i on XARCH

2 years agoAdd PEM PKCS#8 and SPKI exports for AsymmetricAlgorithm
Kevin Jones [Thu, 11 Nov 2021 21:42:40 +0000 (16:42 -0500)]
Add PEM PKCS#8 and SPKI exports for AsymmetricAlgorithm

2 years agoAdd tests for metricseventsource HistogramLimitReached(#60752, #61199) (#61449)
Yusuke Ito [Thu, 11 Nov 2021 21:05:31 +0000 (06:05 +0900)]
Add tests for metricseventsource HistogramLimitReached(#60752, #61199) (#61449)

2 years agoEnable sourcelink in source-build for '.version' file (#60944)
Davis Goodin [Thu, 11 Nov 2021 19:48:08 +0000 (13:48 -0600)]
Enable sourcelink in source-build for '.version' file (#60944)

2 years agoRefine superpmi-replay trigger (#61469)
Bruce Forstall [Thu, 11 Nov 2021 19:41:38 +0000 (11:41 -0800)]
Refine superpmi-replay trigger (#61469)

Don't run if the JIT-EE GUID has changed, since there won't be any collections
to download, so the downloads will fail.

Also update the superpmi-asmdiffs trigger comment.

2 years agoUse DllImportGenerator in System.Diagnostics.PerformanceCounter (#61389)
Elinor Fung [Thu, 11 Nov 2021 16:18:30 +0000 (08:18 -0800)]
Use DllImportGenerator in System.Diagnostics.PerformanceCounter (#61389)

2 years ago[main] Update dependencies from 5 repositories (#61463)
dotnet-maestro[bot] [Thu, 11 Nov 2021 15:48:27 +0000 (16:48 +0100)]
[main] Update dependencies from 5 repositories (#61463)

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2 years agoFix bug where we reference the entry #0 in the pinned plug queue (#60966)
Peter Sollich [Thu, 11 Nov 2021 15:02:07 +0000 (16:02 +0100)]
Fix bug where we reference the entry #0 in the pinned plug queue (#60966)

We reference entry #0 in the pinned plug queue even if there are no pinned plugs at all and thus the pinned plug queue contains left-over data from the mark phase.

The fix is to initialize saved_pinned_plug_index to a value that is invalid as a pinned plug queue index, and only use saved_pinned_plug_index as an index if  is valid.

2 years ago[Mono] Skip flaky android tests (#61460)
Simon Rozsival [Thu, 11 Nov 2021 14:10:34 +0000 (15:10 +0100)]
[Mono] Skip flaky android tests (#61460)

There are connectivity issues on some physical Android devices. We should disable the affected tests until the issue isn't resolved.

Ref #61343

2 years agoSome more precise debug info improvements (#61419)
Jakob Botsch Nielsen [Thu, 11 Nov 2021 11:00:35 +0000 (12:00 +0100)]
Some more precise debug info improvements (#61419)

* We were not recording precise info in inlinees except for at IL offset
  0 because most of the logic that handles determining when to attach
  debug info did not run for inlinees. There are no changes in what the
  EE sees since we were normalizing debug info back to the root anyway.

* Propagate debug info even further than just until rationalization, to
  make it simpler to dump the precise debug info. This means we create
  some more GT_IL_OFFSET nodes, in particular when the inlinee debug
  info is valid but the root info is invalid. This is currently
  happening for newobj IL instructions when the constructor is inlined.
  We generate two statements:
  GT_ASG(GT_LCL_VAR(X), ALLOCOBJ(CLS));
  GT_CALL(CTOR, GT_LCL_VAR(X))
  and the first statement ends up "consuming" the debug info, meaning we
  end up with no debug info for the GT_CALL, which eventually propagates
  into the inline tree. I have held off on fixing this for now since it
  causes debug info diffs in the data reported back to the EE.

  The additional nodes in LIR result in 0.15% more memory use and 0.015%
  more instructions retired for SPMI over libraries.

There is also a small fix in gtlist.h for GT_BFIZ when
MEASURE_NODE_SIZES is defined.

No SPMI diffs.

2 years agoInclude the "TargetingPack" folder in the mobile apps. (#61432)
Jeremy Koritzinsky [Thu, 11 Nov 2021 08:48:41 +0000 (00:48 -0800)]
Include the "TargetingPack" folder in the mobile apps. (#61432)

Fixes #61322
Fixes #61299

2 years agoClean up tests under Interop/PInvoke/BestFitMapping (#61390)
Elinor Fung [Thu, 11 Nov 2021 02:23:47 +0000 (18:23 -0800)]
Clean up tests under Interop/PInvoke/BestFitMapping (#61390)

2 years agoJIT: slightly more aggressive tail duplication (#61179)
Andy Ayers [Thu, 11 Nov 2021 01:58:36 +0000 (17:58 -0800)]
JIT: slightly more aggressive tail duplication (#61179)

Catch patterns like the one in #37904 where a trinary compare feeds a
binary compare.

2 years agoFix CI trigger of superpmi-asmdiffs pipeline (#61444)
Bruce Forstall [Thu, 11 Nov 2021 00:45:20 +0000 (16:45 -0800)]
Fix CI trigger of superpmi-asmdiffs pipeline (#61444)

2 years agoFix Array ctor integer widening and add Reflection tests (#61347)
Aaron Robinson [Thu, 11 Nov 2021 00:07:10 +0000 (16:07 -0800)]
Fix Array ctor integer widening and add Reflection tests (#61347)

* coreclr/

Make sure integral types respect sign extension during widen operation for Invoke Array ctor.
Remove always false IsStructRequiringStackAllocRetBuf().

* mono/

Create macro define for SPAN_T.

* libraries/

Add tests for Reflection Binder type conversion support during Invoke.

2 years agoExplicitly mark tests with CLRTestKind=SharedLibrary (#61235)
Tomáš Rylek [Thu, 11 Nov 2021 00:02:28 +0000 (01:02 +0100)]
Explicitly mark tests with CLRTestKind=SharedLibrary (#61235)

Previously the Directory.Build.targets script used to automatically
infer that OutputType=Library without a CLRTestKind implies
SharedLibrary. This is however hard to consolidate with the planned
test merging - as the SDK script set OutputType=Library by default,
we need the combination Library+(implicit)BuildAndRun to indicate
the "new-style" [Fact]-based tests. For this reason I propose to
remove this automatic inference and manually fix the handful of tests
that are missing an explicit CLRTestKind=SharedLibrary property.
In light of this description we can theoretically remove the
OutputType=Library specification from all test projects but even if
we decide to do that, I believe it will be easier to do that as a
separate mechanical change, not as part of this relatively small
change that has a different purpose. Additionally in the one case
of the GitHub_22583 regression test, I removed the explicit setting
of GenerateRunScript=false because that's the default.

Fix OutputType=exe in OpenDelegate.csproj

I believe this was a pre-existing bug - previously, with the
special clause regarding SharedLibrary, the test just got silently
skipped because it was considered to be a shared library.

Thanks

Tomas

2 years agoRemove dead code (#61427)
Larry Ewing [Wed, 10 Nov 2021 23:58:30 +0000 (17:58 -0600)]
Remove dead code (#61427)

2 years ago[DllImportGenerator] Initialize by-value out array to default (#61431)
Elinor Fung [Wed, 10 Nov 2021 23:27:59 +0000 (15:27 -0800)]
[DllImportGenerator] Initialize by-value out array to default (#61431)

2 years ago[main] Update dependencies from dotnet/arcade dotnet/icu dotnet/emsdk dotnet/hotreloa...
dotnet-maestro[bot] [Wed, 10 Nov 2021 22:30:14 +0000 (17:30 -0500)]
[main] Update dependencies from dotnet/arcade dotnet/icu dotnet/emsdk dotnet/hotreload-utils dotnet/llvm-project (#61365)

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Ankit Jain <radical@gmail.com>
2 years agoCreate superpmi-asmdiffs pipeline (#61194)
Bruce Forstall [Wed, 10 Nov 2021 21:28:49 +0000 (13:28 -0800)]
Create superpmi-asmdiffs pipeline (#61194)

Create a new `runtime-coreclr superpmi-asmdiffs` pipeline that runs SuperPMI asmdiffs for every change in the JIT directory.

The diffs are run on two platforms: Windows x64 and Windows x86. Linux, and Arm64 and Arm32, asm diffs are done using cross-compilers, as follows:

| Platform | Asm diffs |
| -- | -- |
| Windows x64 | win-x64, win-arm64, linux-x64, linux-arm64 |
| Windows x86 | win-x86, linux-arm |

The resulting summary .md files are uploaded into the pipeline artifacts, one .md file per platform (so, one for the Windows x64 runs and one for the Windows x86 runs). The results are also displayed in "Extensions" page of the AzDO pipeline.

The runs take about 50 minutes to complete (assuming not much waiting for machines).

The asm diffs pipeline is similar to the "superpmi-replay" pipeline, except:
1. It determines what an appropriate baseline JIT would be based on the PR commit and how it merges with the `main` branch. Given this, it downloads the matching baseline JITs from the JIT rolling build artifacts in Azure Storage.
2. It clones the `jitutils` repo and builds the `jit-analyze` tool, needed to generate the summary .md file.
3. It downloads and adds to the Helix machine payload a "portable" `git` installation, as `git diff` is used by `jit-analyze` for analyzing the generated .dasm files of the diff.
4. It collects all the various summary.md files into one per platform on which the runs are done, and publishes that to the artifacts and the `Extensions` page.
5. It only does one replay (asmdiffs) run, not one for each of a set of multiple stress modes.

As part of this implementation,
a. The `azdo_pipelines_util.py` was renamed to `jitutil.py`, and a lot of utility functions from superpmi.py were moved over to it. This was mostly to share the code for downloading and uncompressing .zip files. (There is a slight change to the output from the `superpmi.py download` command as a result.) However, I also moved a bunch of simple, more general helpers, for possible future sharing.
b. `jitrollingbuild.py download` can now take no arguments and download a baseline JIT (from the JIT rolling build Azure Storage location), for the current enlistment, to the default location. Previously, it required a specific git_hash and target directory. There is similar logic in superpmi.py, but not quite the same.
c. The `superpmi.py --no_progress` option was made global, and applied in a few more places. This was necessary because `superpmi.py asmdiffs` will download a coredistools binary from the JIT Azure Storage if one isn't found in the Core_Root folder.

Fixes https://github.com/dotnet/runtime/issues/59445

2 years agoFix inconsistency in p/invoke arguments introduced when switching some to be blittabl...
Elinor Fung [Wed, 10 Nov 2021 21:18:43 +0000 (13:18 -0800)]
Fix inconsistency in p/invoke arguments introduced when switching some to be blittable (#61071)

2 years agoBaseline two failing tests to make outerloop green again (#61280)
Tomáš Rylek [Wed, 10 Nov 2021 20:28:35 +0000 (21:28 +0100)]
Baseline two failing tests to make outerloop green again (#61280)

2 years agoUpdate timeout for sourcebuild (#61436)
Juan Hoyos [Wed, 10 Nov 2021 20:21:36 +0000 (12:21 -0800)]
Update timeout for sourcebuild (#61436)

2 years agoFix common workflow issues (#61027)
Adeel Mujahid [Wed, 10 Nov 2021 19:43:15 +0000 (21:43 +0200)]
Fix common workflow issues (#61027)

2 years agofix lint issue (#61433)
Pavel Savara [Wed, 10 Nov 2021 19:00:39 +0000 (20:00 +0100)]
fix lint issue (#61433)

2 years agoDelete unused mono_unbox_int (#61384)
Adeel Mujahid [Wed, 10 Nov 2021 17:22:45 +0000 (19:22 +0200)]
Delete unused mono_unbox_int (#61384)

* Delete unused mono_unbox_int

* Fix gcc step display name

* Match command invocation order

2 years ago[wasm] Build improvements (#61276)
Ankit Jain [Wed, 10 Nov 2021 16:33:33 +0000 (16:33 +0000)]
[wasm] Build improvements (#61276)

Fixes #61067
Fixes #59538

2 years ago[wasm][debugger] Correct the endian swapping and string implementation (#61386)
Larry Ewing [Wed, 10 Nov 2021 16:09:24 +0000 (10:09 -0600)]
[wasm][debugger] Correct the endian swapping and string implementation (#61386)

* [wasm][debugger[ Correct the endian swapping and string implementation

2 years ago[wasm] Add task marshaling tests. (#61324)
Marek Fišera [Wed, 10 Nov 2021 09:20:40 +0000 (10:20 +0100)]
[wasm] Add task marshaling tests. (#61324)

Add various tests for marshaling task to JavaScript promise.

- Sync and async.
- Task and ValueTask.
- Generic and non-generic.
- Successful and failed.

2 years agoChange WASM direct heap access to use helper functions (#61355)
Katelyn Gadd [Wed, 10 Nov 2021 08:47:26 +0000 (00:47 -0800)]
Change WASM direct heap access to use helper functions (#61355)

Direct heap writes via Module.HEAPxx[y] = func(...) are incorrect because the left-hand side (according to spec) is evaluated before the right, so if evaluating func(...) causes the heap to grow, the assignment target becomes a detached buffer and the write goes nowhere, breaking your application. This PR introduces a new set of helper functions for memory reads and writes.

2 years ago[arm64] JIT: Enable CSE/hoisting for "arrayBase + elementOffset" (#61293)
Egor Bogatov [Wed, 10 Nov 2021 06:53:04 +0000 (09:53 +0300)]
[arm64] JIT: Enable CSE/hoisting for "arrayBase + elementOffset" (#61293)

2 years ago[wasm] Allow enums in unmanaged callbacks. (#61377)
Zoltan Varga [Wed, 10 Nov 2021 02:01:03 +0000 (21:01 -0500)]
[wasm] Allow enums in unmanaged callbacks. (#61377)

Fixes https://github.com/dotnet/runtime/issues/61144.

2 years agoInstallWorkload: Use the repo's `nuget.config` as the base for installing manifests...
Ankit Jain [Tue, 9 Nov 2021 23:32:40 +0000 (23:32 +0000)]
InstallWorkload: Use the repo's `nuget.config` as the base for installing manifests (#60699)

2 years agoDelete unused test projects (#61348)
Elinor Fung [Tue, 9 Nov 2021 20:28:15 +0000 (12:28 -0800)]
Delete unused test projects (#61348)

2 years agoRemove unnecessary DLLIMPORTGENERATOR_ENABLED ifdefs (#61345)
Elinor Fung [Tue, 9 Nov 2021 20:27:10 +0000 (12:27 -0800)]
Remove unnecessary DLLIMPORTGENERATOR_ENABLED ifdefs (#61345)

2 years agoAdd unit test for variable length encoding HTTP/3 (#60766)
Badre BSAILA [Tue, 9 Nov 2021 19:51:38 +0000 (20:51 +0100)]
Add unit test for variable length encoding HTTP/3 (#60766)

Fixes #51519

2 years agoImplement WebRequest CachePolicy (#60913)
Badre BSAILA [Tue, 9 Nov 2021 19:38:32 +0000 (20:38 +0100)]
Implement WebRequest CachePolicy (#60913)

2 years agoStart tracking debug info for inlined statements (#61220)
Jakob Botsch Nielsen [Tue, 9 Nov 2021 19:32:14 +0000 (20:32 +0100)]
Start tracking debug info for inlined statements (#61220)

* Refactor IL_OFFSETX into DebugInfo

Remove IL_OFFSETX in favor of a DebugInfo structure. Previously we were
packing extra information into the upper bits of IL_OFFSETX, which are
now separate bit fields on a new ILLocation structure. DebugInfo
contains an ILLocation and also an inline context, which will be used in
the future when tracking debug info inside of inlinees.

Another problem with IL_OFFSETX was that there were several sentinel
values used to describe prologs, epilogs and no mappings. However these
were only used in code-gen, so refactor codegen to track this separately
instead of having to muddle it into IL_OFFSETX. This makes it clearer
what we can expect from IL offsets during JIT.

This change is no-diff and PIN also shows that TP is not negatively
affected; in fact, there seems to be a small TP gain, maybe because we
don't have to handle sentinel values anymore.

* Track debug information in statements from inlinees

Add support for tracking debug information in statements coming from
inlinees. Changes:

* Turn on compDbgInfo in inlinees. We use the implicit boundaries from
  the inline root, but we do not use any explicit boundaries. That is,
  we do not query the EE for explicit boundaries for the inlinee.

* Create InlineContexts eagerly and use them during import. All
  DebugInfo created in the JIT is in a "consistent" state, meaning that
  we never see an IL location set without a corresponding inline
  context. This was difficult before as InlineContexts would be created
  quite late, after the importer for the inlinee had run. We now create
  it eagerly and attach it to debug info during importation. Later, when
  we figure out whether an inline succeeded or not, we mark it as
  succeeded or failed.

* Stop carrying InlineContext around unconditionally in Statement. The
  inline context is now only part of the debug info, which may not be
  set. Inlining needs the inline context to create new inline contexts
  and to check for recursive inlines. Previously it retrieved it from
  the inline statement, but due to the above change we now have to get
  it from somewhere else. To do this we now keep it unconditionally
  together with InlineCandidateInfo so that we can retrieve it later.

* Validate all created debug information when associated with a
  statement. This is done by creating a bitvector containing IL
  locations that mark the beginning of IL instructions, and validating
  that all IL offsets point to these when Statement::SetDebugInfo is
  called.

* While we track debug info in statements from inlinees, the runtime
  side is still not hooked up. Currently we track the information until
  we get to rationalize, where we normalize all debug info back to the
  root inserted as GT_IL_OFFSET nodes. The change is free of any diffs
  due to this normalization. We also track IL offsets as part of basic
  blocks: these are also normalized to be in the root.

2 years agoProper VNs for zeroed structs (#61285)
SingleAccretion [Tue, 9 Nov 2021 19:12:49 +0000 (22:12 +0300)]
Proper VNs for zeroed structs (#61285)

* Number zero-initialized struct properly

Previously, zero-initialized struct locals were given
a special $VNForZeroMap, which had the nice property
that VNForMapSelect($VNForZeroMap, Field) would always
return zero of the appropriate type. However, the fact
that this VN is not unique meant that it was dangerous
to propagate it, e. g. through copies, which was hidden
by the fact that ApplySelectorsTypeCheck's logic is very
conservative.

This change introduces a new VNFunc to represent zeroed
objects - VNF_ZeroObj, that takes a struct handle as its
argument and is thus free of the aforementioned problem and
can be propagated freely and not treated specially. It
also, of course, retains the ZeroMap's selection property.

There are almost no diffs for this change because of some
other deficiencies in assertion and copy propagation, they
are being/will be fixed separately.

* Fix VNZeroForType's handling of SIMD types

Previously this codepath was reachable, but did not matter as
the returned values were immediately discarded because of the
conservative logic in VNApplySelectorsTypeCheck. This is still
more or less the case, but let's just fix it properly.

2 years agoSPMI: Use diffed bytes for jit-analyze and print more info (#61254)
Jakob Botsch Nielsen [Tue, 9 Nov 2021 18:23:48 +0000 (19:23 +0100)]
SPMI: Use diffed bytes for jit-analyze and print more info (#61254)

Fix the misleading total bytes displayed when diffing with SPMI. If one
of the JITs encountered missing data, the code bytes would not be
included, while the other JIT could still have it included if it did not
encounter missing data.

Also add more information about missing SPMI data/successful replays
printed. For replays that is useful to be able to gauge whether there is
still ok coverage after a large change. For diffs, we print a warning
for missing SPMI data that the diff summary may be misleading.

Example for a successful replay:
    Clean SuperPMI replay (219868 contexts processed)

Example for a replay with missing data:
    SuperPMI encountered missing data for 6 out of 27272 contexts

Example warning printed:
    Warning: SuperPMI encountered missing data during the diff. The diff
    summary printed above may be misleading.
    Missing with base JIT: 0. Missing with diff JIT: 6. Total contexts:
    27272.

2 years agoAdd System.Diagnostics.StackFrame.GetMethodFromNativeIP API for VS4Mac (#61289)
Mike McLaughlin [Tue, 9 Nov 2021 16:31:46 +0000 (08:31 -0800)]
Add System.Diagnostics.StackFrame.GetMethodFromNativeIP API for VS4Mac (#61289)

* Add System.Diagnostics.StackFrame.GetMethodInfoFromNativeIP API for VS4Mac

Issue: https://github.com/dotnet/runtime/issues/61186

2 years agoEnsure MaxBy/MinBy return first element if all keys are null. (#61364)
Eirik Tsarpalis [Tue, 9 Nov 2021 16:30:26 +0000 (16:30 +0000)]
Ensure MaxBy/MinBy return first element if all keys are null. (#61364)

2 years agoAdd additional steps in gcc validation leg (#61241)
Adeel Mujahid [Tue, 9 Nov 2021 15:50:46 +0000 (17:50 +0200)]
Add additional steps in gcc validation leg (#61241)

2 years ago[wasm] Remove WasmBuildTemplate (#61315)
Radek Doulik [Tue, 9 Nov 2021 15:28:52 +0000 (16:28 +0100)]
[wasm] Remove WasmBuildTemplate (#61315)

It is not needed anymore, as the flags and stripping is handled
by msbuild and cmake. The configuration dependent template parameters
are not used anymore.

2 years agoConvert concatenation string to interpolation for System.Private.Xml (#60057)
kronic [Tue, 9 Nov 2021 10:39:57 +0000 (13:39 +0300)]
Convert concatenation string to interpolation for System.Private.Xml (#60057)

* use interpolation string

* fix XmlSerializationReader

* fix new line

* fix new line for XmlSerializationReaderILGen

* review feedback

* review feedback

* fix XmlTextWriter

* fix Compiler

* fix XmlSchemaExporter

* fix XmlSchemas

* fix XmlSerializationReader

* fix XmlSerializationWriter

* fix XmlSerializationWriter

* fix XmlSerializationWriterILGen

* fix QilValidationVisitor

* fix XmlSerializationReaderILGen

* fix XmlQueryOutput

Co-authored-by: kronic <kronic@softland.ru>
2 years ago[wasm][aot] Disable (again) `Microsoft.Extensions.Logging.Generators.Roslyn3.11.Tests...
Krzysztof Wicher [Tue, 9 Nov 2021 09:36:07 +0000 (10:36 +0100)]
[wasm][aot] Disable (again) `Microsoft.Extensions.Logging.Generators.Roslyn3.11.Tests` failing due to OOM (#61323)

* [wasm] Disable tests failing due to OOM

Microsoft.Extensions.Logging.Generators.Roslyn3.11.Tests
https://github.com/dotnet/runtime/issues/61339

* [wasm] Use special exitcodes when AOT test build fails, and when it gets oom-killed

Co-authored-by: Ankit Jain <radical@gmail.com>
2 years agoProvide PEM implementations for AsymmetricAlgorithm.
Kevin Jones [Tue, 9 Nov 2021 08:04:25 +0000 (03:04 -0500)]
Provide PEM implementations for AsymmetricAlgorithm.

Now that the Encoding and Primitive assemblies are unified, an implementation
for PKCS#8 and SPKI keys can be provided in the abstract AsymmetricAlgorithm.
Derived types will continue to override these members to provide support
for additional PEM labels.

2 years agoFix binplacing for (impl) System.Security.Cryptography.Encoding.dll
Jeremy Barton [Tue, 9 Nov 2021 08:02:24 +0000 (00:02 -0800)]
Fix binplacing for (impl) System.Security.Cryptography.Encoding.dll

2 years agoUse UTC throughout certificate request tests
Kevin Jones [Tue, 9 Nov 2021 07:03:46 +0000 (02:03 -0500)]
Use UTC throughout certificate request tests

2 years agoAdding Regex source generator to Microsoft.netcore.app.ref pack (#61329)
Jose Perez Rodriguez [Tue, 9 Nov 2021 04:26:40 +0000 (20:26 -0800)]
Adding Regex source generator to Microsoft.netcore.app.ref pack (#61329)

2 years agoAdd instructions for using Codespaces (#60996)
Eric Erhardt [Tue, 9 Nov 2021 02:18:05 +0000 (20:18 -0600)]
Add instructions for using Codespaces (#60996)

* Add instructions for using Codespaces

* Automate resetting the HEAD to the same commit ID used to build the pre-built container

* - Add notes about testing changes.

- Add 4-core machines

* Revert 4-core change since prebuild doesn't support multiple sku_names.

2 years agoJIT: extend redundant relop to handle side effects (#61275)
Andy Ayers [Tue, 9 Nov 2021 01:30:01 +0000 (17:30 -0800)]
JIT: extend redundant relop to handle side effects (#61275)

Handle the case where the side-effecting redundant relop appears
just before the jump tree relop.

Also revamp how we search for related VNs so it can be done as a
search loop.

2 years agoFix format.py to use jit-format.exe, not jit-format.bat (#61334)
Bruce Forstall [Tue, 9 Nov 2021 00:07:20 +0000 (16:07 -0800)]
Fix format.py to use jit-format.exe, not jit-format.bat (#61334)

Adjust for https://github.com/dotnet/jitutils/pull/343