platform/upstream/dotnet/runtime.git
3 years agoFix build on some libs projects when metadata isn't available (#39960)
Viktor Hofer [Mon, 27 Jul 2020 14:38:45 +0000 (16:38 +0200)]
Fix build on some libs projects when metadata isn't available (#39960)

* Fix build on some libs projects when metadata isn't available

* Update references.targets

3 years ago[wasm] Remove System.ValueTuple.Tests test suite from the exclusion list (#39957)
Maxim Lipnin [Mon, 27 Jul 2020 12:08:16 +0000 (15:08 +0300)]
[wasm] Remove System.ValueTuple.Tests test suite from the exclusion list (#39957)

3 years agoAnnotate System.Data.{Odbc,OleDb} for nullability (#39597)
Shay Rojansky [Mon, 27 Jul 2020 09:09:50 +0000 (12:09 +0300)]
Annotate System.Data.{Odbc,OleDb} for nullability (#39597)

* Annotate System.Data.Odbc for nullability
* Annotate System.Data.OleDb for nullability
* Suppress nullable warnings on netcoreapp < 3.0
* Mark System.Data.DataSetExtensions as null-annotated
* Fix null-check bug in System.Data.OleDb

3 years agoMark the multifolder GC2 test as GC stress incompatible until fixed (#39942)
Tomáš Rylek [Mon, 27 Jul 2020 06:58:01 +0000 (08:58 +0200)]
Mark the multifolder GC2 test as GC stress incompatible until fixed (#39942)

3 years agoDisable reverseouter test under GCStress (#39937)
Bruce Forstall [Mon, 27 Jul 2020 03:47:32 +0000 (20:47 -0700)]
Disable reverseouter test under GCStress (#39937)

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

3 years agoDisable processinfo for ilasm round-trip testing (#39936)
Bruce Forstall [Mon, 27 Jul 2020 03:46:59 +0000 (20:46 -0700)]
Disable processinfo for ilasm round-trip testing (#39936)

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

3 years agoDisable Microsoft.Extensions.Caching.Memory.CapacityTests.DoNotAddIfSizeOverflows...
Bruce Forstall [Sun, 26 Jul 2020 18:39:41 +0000 (11:39 -0700)]
Disable Microsoft.Extensions.Caching.Memory.CapacityTests.DoNotAddIfSizeOverflows (#39930)

Issue: https://github.com/dotnet/runtime/issues/33993,
https://github.com/dotnet/runtime/issues/39241

3 years agoMark Assembly.CodeBase / Assembly.EscapedCodeBase as obsolete (#31127) (#39261)
Josh Schreuder [Sun, 26 Jul 2020 18:38:15 +0000 (04:38 +1000)]
Mark Assembly.CodeBase / Assembly.EscapedCodeBase as obsolete (#31127) (#39261)

3 years agoUse consistent access modifiers in AsnValueReader.cs
Scott Xu [Sun, 26 Jul 2020 16:56:57 +0000 (00:56 +0800)]
Use consistent access modifiers in AsnValueReader.cs

3 years agoRemove unused locals in System.Numerics.Tensors (#39578)
Matt Kotsenas [Sat, 25 Jul 2020 18:39:57 +0000 (11:39 -0700)]
Remove unused locals in System.Numerics.Tensors (#39578)

3 years agoFix CoreLib path resolution (#39921)
Viktor Hofer [Sat, 25 Jul 2020 18:34:14 +0000 (20:34 +0200)]
Fix CoreLib path resolution (#39921)

Fixes issue described in https://github.com/dotnet/runtime/pull/39891#issuecomment-663767530.

3 years ago[Arm64] Don't generate hardware intrinsic method bodies (#39753)
Egor Chesakov [Sat, 25 Jul 2020 18:33:55 +0000 (11:33 -0700)]
[Arm64] Don't generate hardware intrinsic method bodies (#39753)

* Don't generate hardware intrinsic method bodies on Arm64 in zapinfo.cpp

* Treat Vector64 and Vector128 methods as intrinsics on Arm64 in zapinfo.cpp

3 years agoAddress slowdowns in type loader performance (#39841)
David Wrighton [Sat, 25 Jul 2020 18:30:34 +0000 (11:30 -0700)]
Address slowdowns in type loader performance (#39841)

3 years agoRemove CoreMangLib duplicate tests (#36612)
Hugh Bellamy [Sat, 25 Jul 2020 18:28:58 +0000 (19:28 +0100)]
Remove CoreMangLib duplicate tests (#36612)

* Cleanup duplicated Type tests

* Baseline mono test failures

3 years agoAdd linker annotation to LazyDebugView to avoid warnings (#39899)
Vitek Karas [Sat, 25 Jul 2020 18:11:14 +0000 (11:11 -0700)]
Add linker annotation to LazyDebugView to avoid warnings (#39899)

In reality this is only to get rid of the warnings, the class is never instatiated by the managed code, so the annotation has no effect on including more code.
When in debugger the class is instatiated with the same T of an existing Lazy<T> which has the same annotation, so the T will always fulfill the annotation's requirements.

3 years agoMacOS managed debugging perf fix (#39804)
Mike McLaughlin [Sat, 25 Jul 2020 04:01:54 +0000 (21:01 -0700)]
MacOS managed debugging perf fix (#39804)

* MacOS managed debugging perf fix

This PR adds PAL_OpenProcessMemory, PAL_ReadProcessMemory and PAL_CloseProcessMemory that
encapsulate the remote read memory functions for both MacOS and Linux.

The DBI code that reads memory using the runtime IPC messages to use these new functions
and fallback to the IPC message if the open fails.

On MacOS, this won't have any affect on VSCode performance until vsdbg/vsdbgui are signed
with the "com.apple.security.cs.debugger" entitlement.

Sample entitlements.plist file:

```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>com.apple.security.cs.debugger</key>
      <true/>
  </dict>
</plist>
```

Example of locally signing with entitlement command:

codesign -s <local-cert> --entitlements entitlements.plist

Fix FreeBSD build. Remove FEATURE_DATATARGET4 for macOS so managed debugging uses faster OOP unwind for HelpMethodFrames

3 years agoFix `fgUpdateChangedFlowGraph`. (#39878)
Eugene Rozenfeld [Sat, 25 Jul 2020 03:55:49 +0000 (20:55 -0700)]
Fix `fgUpdateChangedFlowGraph`. (#39878)

`fgComputeDoms` has an assumption that the flow graph
has no unreachable blocks. It's checked with this assert:

https://github.com/dotnet/runtime/blob/ad325b014124b1adb9306abf95fdac85e3f7f2f4/src/coreclr/src/jit/flowgraph.cpp#L2342

This assert fired when testing #39474 (`Convert Math{F}.CoreCLR methods from FCall to QCall`)
when we are updating the flow graph after inserting GC polls.

This change switches `fgUpdateChangedFlowGraph` to call `fgComputeReachability`,
which both removes unreachable blocks and calls `fgComputeDoms`.

pin-icount reported a 0.0043% throughput improvement, which is within noise level.

3 years agoFix CanCastTo behavior (#39915)
David Wrighton [Sat, 25 Jul 2020 03:31:58 +0000 (20:31 -0700)]
Fix CanCastTo behavior (#39915)

* Fix missing cases in CanCastTo

* Update issues.targets to start running the previously broken tests

3 years agoAvoid using DateTime - Switch to DateTimeOffset (#39916)
Maryam Ariyan [Sat, 25 Jul 2020 01:26:56 +0000 (18:26 -0700)]
Avoid using DateTime - Switch to DateTimeOffset (#39916)

3 years agoFix issue in type equivalence involving arrays (#39914)
David Wrighton [Sat, 25 Jul 2020 00:12:19 +0000 (17:12 -0700)]
Fix issue in type equivalence involving arrays (#39914)

- Fix issue where single dimensional arrays and multidimensional arrays of rank 1 are considered equivalent

3 years agoNullable: System.Xml, part 5 (XmlDocument) (#39691)
Krzysztof Wicher [Fri, 24 Jul 2020 23:18:45 +0000 (01:18 +0200)]
Nullable: System.Xml, part 5 (XmlDocument) (#39691)

* Nullable: System.Xml, part 5 (XmlDocument)

* apply feedback

3 years agoAnsiParser improvement (#39729)
Maryam Ariyan [Fri, 24 Jul 2020 23:11:53 +0000 (16:11 -0700)]
AnsiParser improvement (#39729)

3 years agoFix issues with JitStressRange (#39754)
Egor Chesakov [Fri, 24 Jul 2020 22:48:32 +0000 (15:48 -0700)]
Fix issues with JitStressRange (#39754)

* Add 10 when digit is [a-fA-F] in ConfigMethodRange::InitRanges in utils.cpp

* Zero out compMethodHashPrivate earlier in Compiler::compInit() in compiler.cpp

3 years agoDelete redundant MSVC compiler options (#39901)
Jan Kotas [Fri, 24 Jul 2020 22:29:24 +0000 (15:29 -0700)]
Delete redundant MSVC compiler options (#39901)

3 years agoEnsure CoreCLR pkgproj include packaging props (#39906)
Eric StJohn [Fri, 24 Jul 2020 22:17:43 +0000 (15:17 -0700)]
Ensure CoreCLR pkgproj include packaging props (#39906)

Since these projects don't directly consume the nupkg they didn't
automatically get props when we added it.

3 years agoFix lcl fld addr. (#39424)
Sergey Andreenko [Fri, 24 Jul 2020 21:45:48 +0000 (14:45 -0700)]
Fix lcl fld addr. (#39424)

* Add a repro test.

* Small ref.

Combine long chains of `addr->OperGet() == GT_* ||` with `GT_LCL_VAR_ADDR` using `OperIs` to simplify future changes.

* Add an assert that would fire in the repro test.

`emitter::emitHandleMemOp` has special logic for contained `memBase` and but the last block does not
expect a contained node. A contained node doesn't produce a register so it is not correct to use result
of `GetRegNum()` from a contained node as a valid register.
However, adding an assert to `GetRegNum()` that `!this->isContained` is a bigger task that is out of this PR.

* Assert that `LCL_FLD_ADDR` is not contained in `genPutArgStk(Split)`

We have contained `LCL_VAR_ADDR` support there but make sure that contained `LCL_FLD_ADDR` can't reach it.

* Contain `GT_LCL_FLD_ADDR` under HW_INTRINSIC.

This is an additional optimization that makes future changes simpler.

* Add contained checks.

In all these places we expect `LCL_VAR_ADDR` to be contained.
If we had gotten a `LCL_VAR_ADDR` that is not contained we would have instantiated `LCL_VAR_ADDR` twice:
in the register and the parent instruction.
The register value would have been unused.

* Support `FLD_ADDR` where `LCL_ADDR` is supported.

However, fire an assert if we think that this path is unreachable for now.

* Delete asserts in the  reachable blocks.

We have coverage for this asserts in the following tests:
hwintrinsic 478: Ssse3_ro
instr 11645: Runtime_39403
instr 1028 : Aes_ro
hwintrinsic 716: pmi of Microsoft.Diagnostics.Tracing.TraceEvent

* Review response.

* Add repro cases.

Delete the rest `assert(!"don't expect GT_LCL_FLD_ADDR");`.

* Use `GetLclOffs` from `LclVarCommon`.

* missed file.

3 years agoRemove setting ICUCORE for macOS in System.Globalization.Native CMake config (#39900)
Alexander Köplinger [Fri, 24 Jul 2020 20:31:59 +0000 (22:31 +0200)]
Remove setting ICUCORE for macOS in System.Globalization.Native CMake config (#39900)

Follow-up to #39833.

We don't link against ICU on macOS but load it via `dlopen()` at runtime and compilation uses headers from homebrew.
That means `HAVE_SET_MAX_VARIABLE` and `HAVE_UDAT_STANDALONE_SHORTER_WEEKDAYS` will always be defined and we don't need the ICUCORE variable.

* PR feedback

Co-authored-by: Adeel Mujahid <adeelbm@outlook.com>
3 years agoFix GC Poll inlining. (#39881)
Eugene Rozenfeld [Fri, 24 Jul 2020 20:19:43 +0000 (13:19 -0700)]
Fix GC Poll inlining. (#39881)

* Don't inline GC polls in cold basic blocks.
* Allow GC poll inlining in basic blocks with `BBF_LOOP_PREHEADER` or `BBF_RETLESS_CALL` set.

This fixes one of the assert seen in https://github.com/dotnet/runtime/pull/39474#issuecomment-662033060

Contributes to resolving #39726.

3 years agoUpdate to unified Alpine build image version (#39903)
Jeremy Koritzinsky [Fri, 24 Jul 2020 19:30:37 +0000 (12:30 -0700)]
Update to unified Alpine build image version (#39903)

Update our Alpine build image so we can unify for a single image for our builds.

Fixes #2030

3 years agoJit: fix some sources of x64 chk/rel diffs (#39888)
Andy Ayers [Fri, 24 Jul 2020 17:59:16 +0000 (10:59 -0700)]
Jit: fix some sources of x64 chk/rel diffs (#39888)

Break IGs for perfscores the same way in chk and rel. Also, fix the xarch
peephole to work across extended IGs.

Closes #39845.

3 years agoNew fix for duplicate methods in the AltJit jit-diff output (#39751)
Brian Sullivan [Fri, 24 Jul 2020 17:21:25 +0000 (10:21 -0700)]
New fix for duplicate methods in the AltJit jit-diff output (#39751)

3 years agoFix ActivitySource.StartActivity when start time is provided (#39884)
Alan West [Fri, 24 Jul 2020 16:25:05 +0000 (09:25 -0700)]
Fix ActivitySource.StartActivity when start time is provided (#39884)

3 years agoPost #35606 cleanup (#39891)
Viktor Hofer [Fri, 24 Jul 2020 16:02:32 +0000 (18:02 +0200)]
Post #35606 cleanup (#39891)

* Post #35606 cleanup

3 years agoConvert math intrinsics to named intrinsics (#39730)
Adeel Mujahid [Fri, 24 Jul 2020 15:35:17 +0000 (18:35 +0300)]
Convert math intrinsics to named intrinsics (#39730)

* Convert math intrinsics to named intrinsics

* Annotate Floor and Ceiling with [Intrinsic]

3 years ago[debugger] Removing unhandled_exception which was used for android. (#39377)
monojenkins [Fri, 24 Jul 2020 14:42:10 +0000 (10:42 -0400)]
[debugger] Removing unhandled_exception which was used for android. (#39377)

Trying to remove the usage of unhandled_exception function to make debugger handle with an exception when running on android.
We should ignore the try catch that is in an WRAPPER_SUBTYPE_ICALL_WRAPPER, then we can walk through all the callstack and find any try catch in managed code if it exists.

Co-authored-by: thaystg <thaystg@users.noreply.github.com>
3 years agoAdd CBOR property-based tests (#39828)
Eirik Tsarpalis [Fri, 24 Jul 2020 13:56:12 +0000 (14:56 +0100)]
Add CBOR property-based tests (#39828)

* Add CBOR property-based tests

* address feedback

3 years ago[browser][tests] Activate System.Private.Uri.Functional.Tests (#39817)
Kenneth Pouncey [Fri, 24 Jul 2020 09:50:41 +0000 (11:50 +0200)]
[browser][tests] Activate System.Private.Uri.Functional.Tests (#39817)

Local:

```
info: test[0]
        Tests run: 883, Errors: 0, Failures: 0, Skipped: 1. Time: 188.7140968s
```

3 years ago[runtime] Fix some more gc tracking problems in create_cattr_named/typed_arg. (#39856)
Zoltan Varga [Fri, 24 Jul 2020 09:23:38 +0000 (05:23 -0400)]
[runtime] Fix some more gc tracking problems in create_cattr_named/typed_arg. (#39856)

3 years agoRemove leading dot check for cookie domain (#39781)
Natalia Kondratyeva [Fri, 24 Jul 2020 07:18:00 +0000 (10:18 +0300)]
Remove leading dot check for cookie domain (#39781)

Minimal fix for domain-related cookie issues of #26141

To fully comply with RFC 6265, one should remove deprecated cookie
properties, such as Version, from public API. So only the stated
issues with leading dot were addressed now.

Also note that the leading dot was not stripped from the domain even
though RFC 6265 proposed it. This behavior was chosen because
browsers like Chrome and Edge also don't strip the leading dot.

3 years agoAdd ReferenceConverter entry to intrinsic type converters table (#39854)
Santiago Fernandez Madero [Fri, 24 Jul 2020 06:13:07 +0000 (23:13 -0700)]
Add ReferenceConverter entry to intrinsic type converters table (#39854)

* Add ReferenceConverter entry to intrinsic type converters table

* Add tests

3 years agoRemove unused pinvokes for WinRT scenarios (#39846)
Aaron Robinson [Fri, 24 Jul 2020 01:03:29 +0000 (18:03 -0700)]
Remove unused pinvokes for WinRT scenarios (#39846)

* Remove GetRestructedErrorInfo P/Invoke

* Remove win32 core memory P/Invokes

* Remove RoGetBufferMarshaler P/Invoke

* Remove RoGetActivationFactory P/Invoke

* Remove CoreComm P/Invokes

* Remove IRestrictedErrorInfo definition.

3 years ago[aot] Avoid a crash in generic sharing for invalid generic instances. Fixes https...
monojenkins [Fri, 24 Jul 2020 00:58:24 +0000 (20:58 -0400)]
[aot] Avoid a crash in generic sharing for invalid generic instances. Fixes https://github.com/mono/mono/issues/20138. (#39869)

Co-authored-by: vargaz <vargaz@users.noreply.github.com>
3 years agoAnnotate TypeConverterAttribute so that the ILLinker preserves the ctor on the conver...
Layomi Akinrinade [Fri, 24 Jul 2020 00:54:19 +0000 (17:54 -0700)]
Annotate TypeConverterAttribute so that the ILLinker preserves the ctor on the converter (#39144)

* Annotate TypeConverterAttribute so that the ILLinker preserves the ctor on the converter

* Address review feedback & add attributes to ref

* Use custom enum converter type

* Split tests

3 years agoImplementation of CSE for GT_CNS_INT benefits ARM64 (#39096)
Brian Sullivan [Fri, 24 Jul 2020 00:20:46 +0000 (17:20 -0700)]
Implementation of CSE for GT_CNS_INT benefits ARM64 (#39096)

* Change the type of csdHashKey to size_t

* Update gtCostSz and gtCostEx for constant nodes

* Implementation of code size optimization, CSE of constant values for ARM64
Implementation of code size optimization, CSE of constant values for ARM64
We will share a single CSE for constants that differ only in their low 12 bits on ARM64

Number of shared constant low bits set in target.h  CSE_CONST_SHARED_LOW_BITS
we use 12 bits on Arm platforms and 16 bits on XArch platforms

Disable the CSE of the REG_R2R_INDIRECT_PARAM on Arm32
as it hits  Assertion failed 'candidates != candidateBit' in lsra.cpp Line: 3723

Config variable: COMPlus_JitConstCSE
// Default 0: enable the CSE of Constants, including nearby offsets. (only for ARM64)
// If 1, disable all the CSE of Constants
// If 2, enable the CSE of Constants but don't combine with nearby offsets. (only for ARM64)
// If 3, enable the CSE of Constants including nearby offsets. (all platforms)
// If 4, enable the CSE of Constants but don't combine with nearby offsets. (all platforms)
//

* Added additional Priority 0 test coverage for Floating Point optimizations

* Fix for COMPLUS_JitConstCSE=4

* Renamed config variable from COMPlus_JitDisableConstCSE to COMPlus_JitConstCSE

* Updated with Codereview feedback, removed sort from Const CSE phase

* Fix for assertionProp issue in the refTypesdynamic test

3 years agoWASM: Enable Invariant.Tests (#39814)
Santiago Fernandez Madero [Thu, 23 Jul 2020 23:21:06 +0000 (16:21 -0700)]
WASM: Enable Invariant.Tests (#39814)

* WASM: Enable Invariant.Tests

* Fix build and PR Feedback

3 years agoWASM: enable System.ObjectModel.Tests (#39849)
Santiago Fernandez Madero [Thu, 23 Jul 2020 22:05:43 +0000 (15:05 -0700)]
WASM: enable System.ObjectModel.Tests (#39849)

3 years agoRemove obsolete ActiveIssue attributes for #23972 (#39842)
Viktor Hofer [Thu, 23 Jul 2020 21:18:40 +0000 (23:18 +0200)]
Remove obsolete ActiveIssue attributes for #23972 (#39842)

3 years agoExtend Linker test job timeout to 2 hours (#39847)
Jose Perez Rodriguez [Thu, 23 Jul 2020 21:06:09 +0000 (14:06 -0700)]
Extend Linker test job timeout to 2 hours (#39847)

3 years agoRemove a new assert that can fire with unsafe code and type casts (#38912)
Brian Sullivan [Thu, 23 Jul 2020 21:05:35 +0000 (14:05 -0700)]
Remove a new assert that can fire with unsafe code and type casts (#38912)

3 years agoAdd @dotnet/jit-contrib to CODEOWNERS (#39862)
Jan Kotas [Thu, 23 Jul 2020 21:01:07 +0000 (14:01 -0700)]
Add @dotnet/jit-contrib to CODEOWNERS (#39862)

3 years agoWrite error events for service errors (#39766)
Next Turn [Thu, 23 Jul 2020 19:10:43 +0000 (03:10 +0800)]
Write error events for service errors (#39766)

* Write error events for service errors

* Explicitly specify EventLogEntryType.Error

3 years agoEnsure the size of Vector<T> takes COMPlus_EnableHWIntrinsic into account (#39368)
Tanner Gooding [Thu, 23 Jul 2020 18:41:38 +0000 (11:41 -0700)]
Ensure the size of Vector<T> takes COMPlus_EnableHWIntrinsic into account (#39368)

* Ensure the size of Vector<T> takes COMPlus_EnableHWIntrinsic into account

* Add basic logging to Runtime_34587

* Exclude InstructionSet_POPCNT and InstructionSet_POPCNT_X64 if featureSIMD is disabled

3 years agoturn pauseonstart test off for Windows (#39789)
John Salem [Thu, 23 Jul 2020 17:46:36 +0000 (10:46 -0700)]
turn pauseonstart test off for Windows (#39789)

3 years agoRemove outdated comment in System.CM.Composition.Tests (#39839)
Viktor Hofer [Thu, 23 Jul 2020 16:20:02 +0000 (18:20 +0200)]
Remove outdated comment in System.CM.Composition.Tests (#39839)

We don't plan to add a .NETFramework test configuration for this library anymore.

3 years agoRemove depprojs in favor of PackageReferences (#35606)
Viktor Hofer [Thu, 23 Jul 2020 15:20:26 +0000 (17:20 +0200)]
Remove depprojs in favor of PackageReferences  (#35606)

- Remove depprojs which currently binplace external references into the RefPath folders in favor of PackageReference and PackageDownload items.
- Build all configurations by default when building an individual project (either on the CLI or inside VS) same as with the official SDK. This enables .NETFramework Test Explorer support.
- Centrally define libraries that compose the shared framework instead of in each Directory.Build.props file to be able to build the targeting pack first and consume it in the OOB libraries.
- Use ProjectReferences to reference OOB projects. Compile against the reference assembly but use the implementation assembly app-local during runtime.
- Remove OOBs from the testhost and remove the testhost folder for .NETFramework as it isn't required anymore.
- Only binplace for $(NetCoreAppCurrent) to compose a) the targeting pack, b) the runtime pack, c) the testhost, d) a full closure for the shims.
- Use Targeting Packs for OOB projects (with their implicit assembly references) but still explicitly define granular references for .NETCoreApp configurations (DisableImplicitAssemblyReferences switch). Use the implicit targeting pack references in some Microsoft.Extensions.* cases.
- Remove placeholder configurations as they aren't needed anymore with explicit P2Ps vs Targeting Pack references.
- Remove implicit assembly references (ie for .NETFramework, mscorlib)
- Remove AssemblySearchPath hacks that were introduced with b7c4cb7 as the targeting pack is now used by default.
- Reduce unnecessary .NETFramework configurations that were added to run tests in favor of the already existing ref&src configurations.
- Stop hardcoding the paths for wasm assemblies and use the returned TargetPath of the ProjectReferences.
- Addressed formatting (ItemGroups, References at the bottom of the project file, ordering of references, use LibrariesProjectRoot instead of a relative path, unnecessary AssemblyName and RootNamespace properties which are identical to the project name, ordering of tfms)
- Revert "fix clean (#33758)"

3 years agoFix CNG persisted symmetric key operations
Jeremy Barton [Thu, 23 Jul 2020 15:19:04 +0000 (08:19 -0700)]
Fix CNG persisted symmetric key operations

During a code cleanup the encoding changed from UTF-16LE
to UTF-8, which is not valid for the P/Invoke.

3 years agoWASM: Fix System.Net.Primitives and tests (#39748)
Alexander Köplinger [Thu, 23 Jul 2020 14:43:07 +0000 (16:43 +0200)]
WASM: Fix System.Net.Primitives and tests (#39748)

Add HostInformationPal and InterfaceInfoPal implementations for Browser.

In CookiePortTest.cs use example.com instead of localhost for the tests since Browser uses `localhost` as the `Environment.MachineName` and that changes the test values.

Allows the tests to run on WebAssembly:
```
System.Net.Primitives.Pal.Tests: Tests run: 60, Errors: 0, Failures: 0, Skipped: 0. Time: 0.15872s
System.Net.Primitives.Functional.Tests: Tests run: 2620, Errors: 0, Failures: 0, Skipped: 1. Time: 3.145804s
```

3 years ago[wasm] Enable System.Threading.Thread.Tests test suite (#39826)
Maxim Lipnin [Thu, 23 Jul 2020 13:21:59 +0000 (16:21 +0300)]
[wasm] Enable System.Threading.Thread.Tests test suite (#39826)

3 years agoHardcode path to ICU on macOS (#39833)
Alexander Köplinger [Thu, 23 Jul 2020 12:14:44 +0000 (14:14 +0200)]
Hardcode path to ICU on macOS (#39833)

3 years agoSuppress credscan false positives (#38026)
Jan Jahoda [Thu, 23 Jul 2020 09:59:00 +0000 (11:59 +0200)]
Suppress credscan false positives (#38026)

* Suppress initial cred issues

* Another bunch of supresses

* Clean up

* Another bunch of supresses

* Revert to suppression messages

* Clean up

* Apply suggestions from code review

Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
* Revert passwords literals

* Fix suppression justification comment

Co-authored-by: Jan Jahoda <jajahoda@.microsoft.com>
Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
3 years agoSwitch Windows arm64 testing to use Windows.10.Arm64v8.Open queue. (#39802)
Eugene Rozenfeld [Thu, 23 Jul 2020 07:17:29 +0000 (00:17 -0700)]
Switch Windows arm64 testing to use Windows.10.Arm64v8.Open queue. (#39802)

Windows arm testing has been scaled back in #39655 so now we can start
using better machines for Windows arm64 testing. These machines were
previously used for Windows arm testing.

3 years agoFix FCall implementation collision on ARM64 (#39810)
Anton Lapounov [Thu, 23 Jul 2020 04:17:42 +0000 (21:17 -0700)]
Fix FCall implementation collision on ARM64 (#39810)

Two FCalls, DependentHandle::nSetPrimary and MarshalNative::GCHandleInternalSet, had identical implementations, which led to a failure in ECall::GetFCallImpl ("Duplicate pImplementation entries found in reverse fcall table"). Add FCUnique() to make them different.

3 years agoDisabled tests with the PlatformDetection.IsPreciseGcSupported (#39796)
Maryam Ariyan [Thu, 23 Jul 2020 01:20:55 +0000 (18:20 -0700)]
Disabled tests with the PlatformDetection.IsPreciseGcSupported (#39796)

3 years agoTry re-enabling IBC on macOS. (#39801)
Jeremy Koritzinsky [Thu, 23 Jul 2020 01:09:46 +0000 (18:09 -0700)]
Try re-enabling IBC on macOS. (#39801)

3 years ago[browser][file system] GetLogicalDrives implementation (#39763)
Kenneth Pouncey [Wed, 22 Jul 2020 23:30:50 +0000 (01:30 +0200)]
[browser][file system] GetLogicalDrives implementation (#39763)

- Directory.GetLogicalDrives threw PNSE.  Follows existing code paths.
- Add common DriveInfoInternal.Browser that is common code path for other implementations
   - Environment.GetLogicalDrives
   - DriveInfo.Drives

Fix for FileSystemTest https://github.com/dotnet/runtime/blob/master/src/libraries/System.IO.FileSystem/tests/Directory/GetLogicalDrives.cs

3 years agoFix Failing Casing Tests with Invariant Culture (#39747)
Tarek Mahmoud Sayed [Wed, 22 Jul 2020 21:58:36 +0000 (14:58 -0700)]
Fix Failing Casing Tests with Invariant Culture (#39747)

3 years agoLimit arm32 Windows testing. (#39655)
Eugene Rozenfeld [Wed, 22 Jul 2020 21:55:42 +0000 (14:55 -0700)]
Limit arm32 Windows testing. (#39655)

Remove Windows arm32 testing from PRs. Builds are not removed.
Remove Windows arm32 jitstress testing.
Remove Windows arm32 builds from official builds.

Outerloop still has Windows arm32 builds and testing.

3 years ago[runtime] Make sure newly created objects are pinned during a runtime invoke in creat...
Zoltan Varga [Wed, 22 Jul 2020 21:05:27 +0000 (17:05 -0400)]
[runtime] Make sure newly created objects are pinned during a runtime invoke in create_cattr_typed/named_arg (). (#39774)

Hopefully helps with https://github.com/dotnet/runtime/issues/39473.

3 years agoUpdate the JITEEVersionIdentifier (#39779)
Tanner Gooding [Wed, 22 Jul 2020 20:44:19 +0000 (13:44 -0700)]
Update the JITEEVersionIdentifier (#39779)

3 years agofix CborWriter bug when writing tagged empty collections (#39786)
Eirik Tsarpalis [Wed, 22 Jul 2020 19:58:21 +0000 (20:58 +0100)]
fix CborWriter bug when writing tagged empty collections (#39786)

3 years agoAdd events around type load and r2r usage (#39656)
David Wrighton [Wed, 22 Jul 2020 19:54:37 +0000 (12:54 -0700)]
Add events around type load and r2r usage (#39656)

- Allows for investigation of type loader performance
  - Uses a new keyword, as this event will generate many strings which is itself fairly slow
- Changes R2R events from Verbose events to Informational events
  - These events are already controlled by a separate keyword, and don't need to also be only emitted when Verbose eventing is on

3 years ago[wasm] add zone.tab to dotnet.timezones.blat (#39731)
Tammy Qiu [Wed, 22 Jul 2020 19:41:40 +0000 (15:41 -0400)]
[wasm] add zone.tab to dotnet.timezones.blat  (#39731)

* [wasm] add zone.tab to dotnet.timezones.blat to allow system time zones to load
* renable GetSystemTimeZones()
* reduce size of data file by removing unnecessary timezones

3 years agoRemove BundleDir/PublishDir at the end of ArchiveTests to save disk space (#39714)
Alexander Köplinger [Wed, 22 Jul 2020 19:13:38 +0000 (21:13 +0200)]
Remove BundleDir/PublishDir at the end of ArchiveTests to save disk space (#39714)

Hosted build agents have not a lot of free disk space and since we don't need these dirs anymore after we created the test archive we can delete it.

3 years ago[Infra] collect dumps of all corerun in tree on timeout (#38647)
John Salem [Wed, 22 Jul 2020 19:03:00 +0000 (12:03 -0700)]
[Infra] collect dumps of all corerun in tree on timeout (#38647)

3 years agoAdd missing space padding before exception message in log (#39534) (#39719)
Maryam Ariyan [Wed, 22 Jul 2020 18:39:02 +0000 (11:39 -0700)]
Add missing space padding before exception message in log (#39534) (#39719)

3 years agoMEH test failure on mono (#39784)
Maryam Ariyan [Wed, 22 Jul 2020 18:25:38 +0000 (11:25 -0700)]
MEH test failure on mono (#39784)

Factory_CleanupCycle_DisposesEligibleHandler

3 years agoFix double-writes in test projects (#39778)
Viktor Hofer [Wed, 22 Jul 2020 18:15:17 +0000 (20:15 +0200)]
Fix double-writes in test projects (#39778)

* Fix double-writes in test projects

3 years agoAdd rules for changing InstructionSetDesc.txt (#39777)
Jan Kotas [Wed, 22 Jul 2020 18:10:44 +0000 (11:10 -0700)]
Add rules for changing InstructionSetDesc.txt (#39777)

3 years agoAdd runtimelab.yml for dotnet/runtimelab experiments CI and build infrastructure...
Jose Perez Rodriguez [Wed, 22 Jul 2020 17:49:22 +0000 (10:49 -0700)]
Add runtimelab.yml for dotnet/runtimelab experiments CI and build infrastructure (#39749)

* Add runtimelab.yml for dotnet/runtimelab experiments CI and build infrastructure

* rename one of the ymls based on feedback

4 years agoAllow higher iteration counts for PBES2
Kevin Jones [Wed, 22 Jul 2020 16:18:14 +0000 (12:18 -0400)]
Allow higher iteration counts for PBES2

4 years agoFix some scenarios for DynamicRevocationTests on macOS.
Kevin Jones [Wed, 22 Jul 2020 16:16:51 +0000 (12:16 -0400)]
Fix some scenarios for DynamicRevocationTests on macOS.

4 years ago[wasm] Enable System.Linq.Expressions.Tests test suite (#39772)
Maxim Lipnin [Wed, 22 Jul 2020 14:45:43 +0000 (17:45 +0300)]
[wasm] Enable System.Linq.Expressions.Tests test suite (#39772)

4 years agoUse function pointers in more places (#39752)
Jan Kotas [Wed, 22 Jul 2020 14:27:01 +0000 (07:27 -0700)]
Use function pointers in more places (#39752)

4 years ago[wasm] WasmAppBuilder write the json as json (#39660)
Larry Ewing [Wed, 22 Jul 2020 14:15:42 +0000 (09:15 -0500)]
[wasm] WasmAppBuilder write the json as json (#39660)

* Write the json as json

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
4 years ago[wasm] Enable System.Xml.XmlSerializer.ReflectionOnly.Tests, System.Xml.XmlSerializer...
Maxim Lipnin [Wed, 22 Jul 2020 11:40:18 +0000 (14:40 +0300)]
[wasm] Enable System.Xml.XmlSerializer.ReflectionOnly.Tests, System.Xml.XmlSerializer.Tests, and System.Security.Permissions.Tests test suites (#39767)

4 years agoCI Integration for Cross OS DAC (#39574)
Juan Hoyos [Wed, 22 Jul 2020 10:15:11 +0000 (03:15 -0700)]
CI Integration for Cross OS DAC (#39574)

* Transfer assets from Cross OS DAC builds into a pipeline container
* Preserve additional properties in subsets' projects
* Add packaging projects for Cross OS Dac assets
* Pipeline change to package, sign, and publish the cross OS DAC

4 years agoMove `GetLclOffs` method to `GenTreeLclVarCommon`. (#39623)
Sergey Andreenko [Wed, 22 Jul 2020 09:02:32 +0000 (02:02 -0700)]
Move `GetLclOffs` method to `GenTreeLclVarCommon`. (#39623)

* Move `GetLclOffs` to `Common`.

* Start using it.

* Review response.

4 years agoUse lib prefix for native library names for consistency (#39717)
Jan Kotas [Wed, 22 Jul 2020 03:15:13 +0000 (20:15 -0700)]
Use lib prefix for native library names for consistency (#39717)

4 years agoAdd note about the tagging bot to area-owners.md (#39750)
Alexander Köplinger [Wed, 22 Jul 2020 03:05:43 +0000 (05:05 +0200)]
Add note about the tagging bot to area-owners.md (#39750)

Follow-up to https://github.com/dotnet/runtime/pull/39659

Co-authored-by: Dan Moseley <danmose@microsoft.com>
4 years agoAdd Overloads for Add(Json/Systemd/Simple)Console (#39725)
Maryam Ariyan [Tue, 21 Jul 2020 23:14:07 +0000 (16:14 -0700)]
Add Overloads for Add(Json/Systemd/Simple)Console (#39725)

4 years agoFix libraries outerloop builds (#39735)
Santiago Fernandez Madero [Tue, 21 Jul 2020 22:41:58 +0000 (15:41 -0700)]
Fix libraries outerloop builds (#39735)

* Fix libraries outerloop builds

* Remove liveRuntimeBuildConfig from all configurations build to not make it wait for coreclr to run

4 years ago[runtime] Initialize the class if needed in type_is_blittable (). (#39700)
Zoltan Varga [Tue, 21 Jul 2020 22:08:40 +0000 (18:08 -0400)]
[runtime] Initialize the class if needed in type_is_blittable (). (#39700)

* [runtime] Initialize the class if needed in type_is_blittable ().

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

* Delete workarounds.

4 years agoModify build-test scripts to use response files for Crossgen compilation (#39705)
Tomáš Rylek [Tue, 21 Jul 2020 19:35:50 +0000 (21:35 +0200)]
Modify build-test scripts to use response files for Crossgen compilation (#39705)

This makes it much easier to rerun Crossgen(2) for a particular
framework assembly or for the framework composite build as opposed
to having to copy over the lengthy command line.

Thanks

Tomas

4 years ago[wasm] Enable System.ComponentModel.TypeConverter test suite (#39710)
Maxim Lipnin [Tue, 21 Jul 2020 19:30:28 +0000 (22:30 +0300)]
[wasm] Enable System.ComponentModel.TypeConverter test suite (#39710)

4 years agoWASM: Enable System.Reflection tests (#39696)
Alexander Köplinger [Tue, 21 Jul 2020 19:25:24 +0000 (21:25 +0200)]
WASM: Enable System.Reflection tests (#39696)

Disable tests that won't work on browser.

4 years agoClean up code following JSON number handling and field support PRs (#39716)
Layomi Akinrinade [Tue, 21 Jul 2020 19:23:03 +0000 (12:23 -0700)]
Clean up code following JSON number handling and field support PRs (#39716)

* Clean up code following JSON number handling and field support PRs

* Move IsValidNumberHandlingValue to better location

4 years agoDisable crossgen2smoke test for GCStress (#39680)
Bruce Forstall [Tue, 21 Jul 2020 18:49:36 +0000 (11:49 -0700)]
Disable crossgen2smoke test for GCStress (#39680)

It times out in some modes, especially HeapVerify modes.

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

4 years agoEnable builds of internal branches (#39437)
Matt Mitchell [Tue, 21 Jul 2020 16:22:40 +0000 (09:22 -0700)]
Enable builds of internal branches (#39437)

4 years agoFix hosted crossgen2 build on arm64 (#39537)
Omair Majid [Tue, 21 Jul 2020 16:15:15 +0000 (12:15 -0400)]
Fix hosted crossgen2 build on arm64 (#39537)

4 years agoUpdate license header in NameResolutionTelemetry (#39711)
Miha Zupan [Tue, 21 Jul 2020 15:52:18 +0000 (17:52 +0200)]
Update license header in NameResolutionTelemetry (#39711)