platform/upstream/dotnet/runtime.git
4 years agoDisable failing jobs in PR testing. (#1283)
Sergey Andreenko [Mon, 6 Jan 2020 02:06:07 +0000 (18:06 -0800)]
Disable failing jobs in PR testing. (#1283)

* Disable failing jobs in PR testing.

* Disable the same in runtime file.

4 years agoMake sure we update nextByte when we decode NEXT_OPCODE in x86 GCinfo (#1299)
Andrew Au [Sun, 5 Jan 2020 23:14:17 +0000 (15:14 -0800)]
Make sure we update nextByte when we decode NEXT_OPCODE in x86 GCinfo (#1299)

* Make sure we update nextByte when we decode NEXT_OPCODE in x86 GCinfo

* Update src/coreclr/src/tools/crossgen2/ILCompiler.Reflection.ReadyToRun/x86/InfoHdr.cs

Co-Authored-By: Jan Vorlicek <janvorli@microsoft.com>
Co-authored-by: Jan Vorlicek <janvorli@microsoft.com>
4 years agoContributing: renaming methods (#1303)
Maher Jendoubi [Sun, 5 Jan 2020 18:21:03 +0000 (19:21 +0100)]
Contributing: renaming methods (#1303)

4 years agoFix GCRefMap for generic method calls via Unboxing stub (#1304)
Jan Vorlicek [Sun, 5 Jan 2020 17:52:44 +0000 (18:52 +0100)]
Fix GCRefMap for generic method calls via Unboxing stub (#1304)

Crossgen2 was generating GCRefMap for calls to generic methods via
unboxing stubs incorrectly. With unboxing stub, the caller doesn't pass
in an extra generic parameter since the reference to the boxed value
type passed to the stub serves that purpose. But the GetCallRefMap method
was generating GCRefMap entry for the extra generic argument, which was
leading to a crash when GC was scanning the arguments.

4 years agoFix DelayLoadHelper kind for delegate ctors and IsInstanceOf (#1302)
Jan Vorlicek [Sun, 5 Jan 2020 15:14:40 +0000 (16:14 +0100)]
Fix DelayLoadHelper kind for delegate ctors and IsInstanceOf (#1302)

Crossgen2 was incorrectly setting the DelayLoadHelper kind to
DelayLoad_Helper instead of DelayLoad_Helper_Obj and
DelayLoad_Helper_ObjObj. This was causing GC holes.

4 years agoUpdate the path to built runtime for `build -vs` (#1295)
Ganbarukamo41 [Sat, 4 Jan 2020 23:14:01 +0000 (08:14 +0900)]
Update the path to built runtime for `build -vs` (#1295)

* After 3b9abae, the script was not updated to reflect the changes and was still setting the old path. This resulted in VSTest failing with `It was not possible to find any compatible framework version...`. This commit updates the path (albeit hard-coded; though, this is done in a few other scripts as well) to fix this for now.

4 years agoFix Environment.UserInteractive on Windows (#1234)
Dan Moseley [Sat, 4 Jan 2020 07:11:04 +0000 (23:11 -0800)]
Fix Environment.UserInteractive on Windows (#1234)

* Implement Environment.UserInteractive

* typo

* rename

* Revert M.Win32.SE

* CR feedback

* CR feedback:

* typo

* Fix test

* GUOI declaration

* Another typo!

* Fix build break

* Update src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems

Co-Authored-By: Jan Kotas <jkotas@microsoft.com>
* Update src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems

Co-Authored-By: Jan Kotas <jkotas@microsoft.com>
* Update src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems

Co-Authored-By: Jan Kotas <jkotas@microsoft.com>
* CR feedback

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
4 years agoRemoving ArrayTypeDesc (#1201)
Vladimir Sadov [Sat, 4 Jan 2020 05:53:15 +0000 (21:53 -0800)]
Removing ArrayTypeDesc (#1201)

* Reduce use of ArrayTpeDesc, somewhat

* remove `AsArray`. Fewer uses of ArrayTypeDesc

* remove `IsArrayType`

* remove AssertArrayTypeDescLoaded

* normalized use of GetElementType vs GetTypeParam vs GetArrayElementTypeHandle

* removed GetMethodTableOfElementType

* HasTypeParam  and GetTypeParam should work for TypeHandle when array is not a TypeDesc

* Some cleanup of `IsTypeDesc` use.

* Removed `ArrayTypeDesc`

* a few fixes

* another fix

* dealt with TODOs

* couple fixes from reviewing code

* PR feedback:
Removed `CORINFO_HELP_NEWARR_1_R2R_DIRECT`
Folded a `cmp` in x86 array Address.
Removed` METHOD__BUFFER__BLOCKCOPY` from mscorlib.h
`GetMethodTableOfRootTypeParam`
`GetRootTypeParam`
Straightened `Object::GetTypeHandle`
`AsMethodTable` changes from PR feedback

* Removed `ELEMENT_TYPE_NATIVE_ARRAY_TEMPLATE_ZAPSIG`

* `TypeDesc` is ok in `canInlineTypeCheckWithObjectVTable`

* trivial  `AsMethodTable` changes

*  `GetVarTypeForTypeHandle` should throw `unsupported` on TypeDescs

* not digging for the root element type in `GetGCSafeTypeHandleIfPossible`

* Last PR feedback

* Fix `TypeInfoTests.Guid()`

4 years agoRevert "Revert "Support GetCultureInfo with predefinedOnly flag (#654)" (#1257)"...
Tarek Mahmoud Sayed [Fri, 3 Jan 2020 23:12:18 +0000 (15:12 -0800)]
Revert "Revert "Support GetCultureInfo with predefinedOnly flag (#654)" (#1257)" (#1261)

This reverts commit 4f27799093dcc168384db1ee783e5164a1723df8.

4 years agoMake corelib work in VS (#1284)
Dan Moseley [Fri, 3 Jan 2020 22:59:58 +0000 (14:59 -0800)]
Make corelib work in VS (#1284)

4 years agoMake a copy of the image for PEReader (#1263)
Andrew Au [Fri, 3 Jan 2020 22:44:52 +0000 (14:44 -0800)]
Make a copy of the image for PEReader (#1263)

4 years ago[runtime] Arm64: Add ZipLow, ZipHigh, UnzipOdd and UnzipEven codegen and tests. ...
Tamar Christina [Fri, 3 Jan 2020 19:20:18 +0000 (19:20 +0000)]
[runtime] Arm64: Add ZipLow, ZipHigh, UnzipOdd and UnzipEven codegen and tests. (#1190)

4 years agoImprove message for missing C++ workload (#1253)
Dan Moseley [Fri, 3 Jan 2020 17:29:50 +0000 (09:29 -0800)]
Improve message for missing C++ workload (#1253)

* Improve message for missing C++ workload

* typo:

* Fix case of missing rootdir

4 years agoFix CompareInfo and SQL tests (#1254)
Tarek Mahmoud Sayed [Fri, 3 Jan 2020 16:47:11 +0000 (08:47 -0800)]
Fix CompareInfo and SQL tests (#1254)

* Fix CompareInfo tests after Windows Regression With Kana

* Fix SQL test

* Address the feedback

4 years agoMove most of CoreLib interop under Common (#1247)
Jan Kotas [Fri, 3 Jan 2020 04:21:27 +0000 (20:21 -0800)]
Move most of CoreLib interop under Common (#1247)

Contributes to #1232

4 years agoEscape vertical bar (`|`) in the echo message (#1160)
Ganbarukamo41 [Fri, 3 Jan 2020 01:18:32 +0000 (10:18 +0900)]
Escape vertical bar (`|`) in the echo message (#1160)

* When `--runtime-path` is not specified, this unescaped character causes the batch file to attempt executing `--runtime-path` (which obviously is not possible) giving out very confusing failures.

4 years agoArm64: Implement AbsoluteCompare* hardware intrinsics (#1223)
Egor Chesakov [Fri, 3 Jan 2020 00:41:13 +0000 (16:41 -0800)]
Arm64: Implement AbsoluteCompare* hardware intrinsics (#1223)

Implements the following set of hardware intrinsics:

* AbsoluteCompareGreaterThan
* AbsoluteCompareGreaterThanOrEqual
* AbsoluteCompareLessThan
* AbsoluteCompareLessThanOrEqual

Implements instructions facge and facgt.

4 years agoRevert "Support GetCultureInfo with predefinedOnly flag (#654)" (#1257)
Tarek Mahmoud Sayed [Thu, 2 Jan 2020 23:31:34 +0000 (15:31 -0800)]
Revert "Support GetCultureInfo with predefinedOnly flag (#654)" (#1257)

This reverts commit 5272637ab8ae41c164a51316d792c8dd316df35d.

4 years agoSupport GetCultureInfo with predefinedOnly flag (#654)
Tarek Mahmoud Sayed [Thu, 2 Jan 2020 23:25:42 +0000 (15:25 -0800)]
Support GetCultureInfo with predefinedOnly flag (#654)

* Support GetCultureInfo with predefinedOnly flag

4 years agoClean workspace in global-build-job.yml (#1136)
Egor Chesakov [Thu, 2 Jan 2020 20:17:22 +0000 (12:17 -0800)]
Clean workspace in global-build-job.yml (#1136)

4 years agoMore Code Cleanup for EH WriteThru (#1180)
Carol Eidt [Thu, 2 Jan 2020 18:00:25 +0000 (10:00 -0800)]
More Code Cleanup for EH WriteThru (#1180)

* More Code Cleanup for EH WriteThru

These changes arose from the code reviews for the EH WriteThru work. Some are only tangentially related to EH write-thru, were suggested during that review.

* Revert change to hasEHBoundaryIn condition

* PR feedback

* More PR Feedback

* Fix comment

4 years agoAllow folding of aligned loads when using the VEX encoding and optimizations are...
Tanner Gooding [Thu, 2 Jan 2020 17:57:29 +0000 (09:57 -0800)]
Allow folding of aligned loads when using the VEX encoding and optimizations are enabled (#376)

4 years agoGenerate struct LCL_VAR nodes in LocalAddressVisitor (#1084)
mikedn [Thu, 2 Jan 2020 16:48:20 +0000 (18:48 +0200)]
Generate struct LCL_VAR nodes in LocalAddressVisitor (#1084)

Converts trees like OBJ(ADDR(LCL_VAR)) into single struct LCL_VAR nodes. It turns out that these are pretty common, thanks to call args & impNormStructVal. Doing this transform before global morph allows local assertion propagation to catch more copies.

4 years agoCombine pal_compiler.h definitions (#1240)
Adeel Mujahid [Thu, 2 Jan 2020 01:01:57 +0000 (03:01 +0200)]
Combine pal_compiler.h definitions (#1240)

4 years agoImplement Arm64 comparison hardware intrinsics (#1196)
Egor Chesakov [Wed, 1 Jan 2020 03:47:45 +0000 (19:47 -0800)]
Implement Arm64 comparison hardware intrinsics (#1196)

This implements the following set of hardware intrinsics:

* CompareEqual
* CompareGreaterThan
* CompareGreaterThanOrEqual
* CompareLessThan
* CompareLessThanOrEqual
* CompareTest

4 years ago[runtime] Arm64: Add AddAcross Codegen and Tests. (#1093)
Tamar Christina [Tue, 31 Dec 2019 23:13:25 +0000 (23:13 +0000)]
[runtime] Arm64: Add AddAcross Codegen and Tests. (#1093)

4 years agoAnnotate System.Text.Json for nullable (#528)
buyaa-n [Tue, 31 Dec 2019 20:01:19 +0000 (12:01 -0800)]
Annotate System.Text.Json for nullable (#528)

Annotate System.Text.Json for nullable

4 years agoDelete DumpIR code (#1202)
mikedn [Tue, 31 Dec 2019 15:53:39 +0000 (17:53 +0200)]
Delete DumpIR code (#1202)

4 years agoFix order of arguments in message box call (#1214)
Mika Lehtinen [Tue, 31 Dec 2019 00:42:58 +0000 (02:42 +0200)]
Fix order of arguments in message box call (#1214)

4 years agofixing wrong MOV asm instruction emitter for arm64 (#1216)
Yaroslav Yamshchikov [Tue, 31 Dec 2019 00:27:25 +0000 (03:27 +0300)]
fixing wrong MOV asm instruction emitter for arm64 (#1216)

4 years agoFix typo in exception message (#1205)
Ahmad Ibrahim [Tue, 31 Dec 2019 00:17:48 +0000 (02:17 +0200)]
Fix typo in exception message (#1205)

4 years agoConsolidate .netcoreapp.cs files in Common project (#1178)
Roman Marusyk [Mon, 30 Dec 2019 12:03:17 +0000 (14:03 +0200)]
Consolidate .netcoreapp.cs files in Common project (#1178)

4 years agoExpose SocketAsyncEventArgs constructor for suppressing the execution context (#706)
Marco Rossignoli [Mon, 30 Dec 2019 11:51:09 +0000 (12:51 +0100)]
Expose SocketAsyncEventArgs constructor for suppressing the execution context (#706)

Make execution context suppressing ctor public. Resolves #937.

4 years agoMore R2RDump refactoring to make it easier for ILSpy to consume the APIs (#1209)
Andrew Au [Sun, 29 Dec 2019 21:51:46 +0000 (13:51 -0800)]
More R2RDump refactoring to make it easier for ILSpy to consume the APIs (#1209)

4 years agoMerge pull request #266 from ts2do/BigIntegerFix
Tanner Gooding [Sun, 29 Dec 2019 18:09:28 +0000 (10:09 -0800)]
Merge pull request #266 from ts2do/BigIntegerFix

Eliminate copy assignment of BigInteger

4 years agoRemove duplicate definition (#1067)
Sinan Kaya [Sat, 28 Dec 2019 06:58:48 +0000 (01:58 -0500)]
Remove duplicate definition (#1067)

4 years agoConsolidate .netcoreapp.cs test files in System.Reflection (#1176)
Roman Marusyk [Sat, 28 Dec 2019 01:13:15 +0000 (03:13 +0200)]
Consolidate .netcoreapp.cs test files in System.Reflection (#1176)

* Consolidate .netcoreapp.cs files because System.Reflection project is no longer cross-compiled

* Move extensions to separate class

4 years agoRemove some unnecessary console noise in the build (#1146)
Dan Moseley [Fri, 27 Dec 2019 20:19:07 +0000 (12:19 -0800)]
Remove some unnecessary console noise in the build (#1146)

* More nologo/nosummary

* Avoid CMAKE logging when skipping copy

4 years agoIntrinsify typeof(T).IsValueType (#1157)
Egor Bogatov [Fri, 27 Dec 2019 19:42:39 +0000 (22:42 +0300)]
Intrinsify typeof(T).IsValueType (#1157)

4 years agoRemove early exit logic in GetSortKey-related code paths (#1078)
Levi Broderick [Fri, 27 Dec 2019 18:52:14 +0000 (13:52 -0500)]
Remove early exit logic in GetSortKey-related code paths (#1078)

4 years agoAvoid copying in ReadSectionHeaders (#894)
Next Turn [Fri, 27 Dec 2019 18:43:47 +0000 (02:43 +0800)]
Avoid copying in ReadSectionHeaders (#894)

4 years agoApply FlagsAttribute to Characteristics (#837)
Next Turn [Fri, 27 Dec 2019 18:40:11 +0000 (02:40 +0800)]
Apply FlagsAttribute to Characteristics (#837)

4 years agoRevert changes to EncoderNLS/DecoderNLS.Convert (#752)
Levi Broderick [Fri, 27 Dec 2019 18:37:16 +0000 (13:37 -0500)]
Revert changes to EncoderNLS/DecoderNLS.Convert (#752)

4 years agoImprove ForEach micro-benchmark for ImmutableArray (#1183)
Henrique Fernandes Baggio [Fri, 27 Dec 2019 17:00:45 +0000 (14:00 -0300)]
Improve ForEach micro-benchmark for ImmutableArray (#1183)

* Improve Foreach benchmark in ImmutableArray<Int32>

Analysis of the generated ASM code vs the same benchmark for Array shows
that the GetEnumerator call is not being inlined (the loop itself is).

In the case of the ValueType ImmutableArray.GetEnumerator method,
there's a call to ThrowNullRefIfNotInitialized for validation.

By adding MethodImplAttribute(MethodImplOptions.AggressiveInlining)
to both methods, we are able to force the JIT to inline the call and get
similar results in the benchmark.
Looking at the hardware counters collected in the benchmark, there are less
CacheMisses and BranchMispredictions/Op when the inlining happens.

Unfortunately, the same fix didn't seem to work for the other overloads of
GetEnumerator, for the explicit generic implementation. That still needs
more investigation.

* AggressiveInline in ThrowNullRefIfNotInitialized isn't needed to inline GetEnumerator

4 years agoCleanup unneeded codes regarding `unsafe` (#1188)
Ganbarukamo41 [Fri, 27 Dec 2019 15:38:19 +0000 (00:38 +0900)]
Cleanup unneeded codes regarding `unsafe` (#1188)

* Remove incorrect comments

* Remove unnecessary `unsafe` keywords

4 years agoReplace GetDirectoryNameOfFileAbove with GetPathOfFileAbove where possible (#1175)
Jan Kotas [Fri, 27 Dec 2019 08:31:18 +0000 (00:31 -0800)]
Replace GetDirectoryNameOfFileAbove with GetPathOfFileAbove where possible (#1175)

4 years agoRemove XML dumper (#1184)
Andrew Au [Fri, 27 Dec 2019 07:11:08 +0000 (23:11 -0800)]
Remove XML dumper (#1184)

4 years agoonly set next segment if Sequence spans multiple segments (#276)
Vladislav Richter [Thu, 26 Dec 2019 23:47:48 +0000 (00:47 +0100)]
only set next segment if Sequence spans multiple segments (#276)

4 years agoCoreFX Renames (#872)
Erhan Atesoglu [Thu, 26 Dec 2019 23:44:23 +0000 (15:44 -0800)]
CoreFX Renames (#872)

* CoreFX Renames

* Update ReadMe.SharedCode.md

* CoreFX renames to libraries

* Update ReadMe.SharedCode.md

Additions to formatting.

4 years agoAdd up for grabs links to coreFX and coreCLR (#881)
dhusemann [Thu, 26 Dec 2019 23:30:25 +0000 (17:30 -0600)]
Add up for grabs links to coreFX and coreCLR (#881)

* Add up for grabs links to coreFX and coreCLR

Add note under Up for grabs about issues in CoreCLR and CoreFX, until Issues are fully consolidated.
and to submit pull requests to the Runtime Repo.
Contributes to #304

* Update CONTRIBUTING.md

Co-authored-by: Dan Moseley <danmose@microsoft.com>
4 years agoOrganize some markdowns and fix links (#1159)
Dan Moseley [Thu, 26 Dec 2019 23:22:57 +0000 (15:22 -0800)]
Organize some markdowns and fix links  (#1159)

* Move files into hierarchy

* fix more links

* Fix botr and features links

* Remove bad apostrophe

* spelling

* Apply suggestions from code review

Co-Authored-By: Youssef Victor <31348972+Youssef1313@users.noreply.github.com>
* Update docs/coding-guidelines/package-projects.md

Co-Authored-By: Jan Kotas <jkotas@microsoft.com>
Co-authored-by: Youssef Victor <31348972+Youssef1313@users.noreply.github.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
4 years ago[doc] Add requirements for cross building (#1169)
a-zh [Thu, 26 Dec 2019 18:10:11 +0000 (21:10 +0300)]
[doc] Add requirements for cross building (#1169)

Checked for clang building under Ubuntu 18.04 x64.

4 years agofix typo in Hashtable.cs (#1151)
@大爷是个码农 [Wed, 25 Dec 2019 15:42:46 +0000 (23:42 +0800)]
fix typo in Hashtable.cs (#1151)

4 years agoFix .cmd scripts help arguments (#1131)
Santiago Fernandez Madero [Mon, 23 Dec 2019 23:55:31 +0000 (17:55 -0600)]
Fix .cmd scripts help arguments (#1131)

4 years agoFlow archType to build script in global live build (#1133)
Santiago Fernandez Madero [Mon, 23 Dec 2019 22:30:33 +0000 (16:30 -0600)]
Flow archType to build script in global live build (#1133)

4 years agoChange bIsFree check in DacValidateMethodTable (#1086)
Dong-Heon Jung [Mon, 23 Dec 2019 19:11:43 +0000 (04:11 +0900)]
Change bIsFree check in DacValidateMethodTable (#1086)

Some commands of SOS validate a method table in DacValidateMethodTable.
In the function, it checks whether a method table is FreeObjectMethodTable or not with GetClass() value.
However, GetClass() should not be NULL. (There is an assert in GetClass())
In this patch, it compares pMT address with g_pFreeObjectMethodTable address only.

4 years agomore appropriate default rootfs-dir path (#1126)
Yaroslav Yamshchikov [Mon, 23 Dec 2019 17:14:45 +0000 (20:14 +0300)]
more appropriate default rootfs-dir path (#1126)

crossbuilding of at least armel:tizen and arm64:xenial works fine
without specifying the ROOTFS_DIR environment variable (with default
path) only if changes of this PR are applied. (building coreclr using
src/coreclr/build.sh script on linux)

4 years agochmod +x on scripts building rootfs for Tizen (#1125)
Yaroslav Yamshchikov [Mon, 23 Dec 2019 14:36:07 +0000 (17:36 +0300)]
chmod +x on scripts building rootfs for Tizen (#1125)

get the execute rights to Tizen scripts building the rootfs

4 years agoSequenceEqual picks the correct overload (#1113)
Günther Foidl [Sun, 22 Dec 2019 06:49:11 +0000 (07:49 +0100)]
SequenceEqual picks the correct overload (#1113)

4 years agoConsolidate .netcoreapp.cs files because System.Diagnostics.* projects is no longer...
Roman Marusyk [Sun, 22 Dec 2019 06:13:14 +0000 (08:13 +0200)]
Consolidate .netcoreapp.cs files because System.Diagnostics.* projects is no longer cross-compiled (#1101)

4 years agoRevert "Fix .cmd scripts help arguments (#1043)" (#1110)
Jan Kotas [Sat, 21 Dec 2019 20:54:56 +0000 (12:54 -0800)]
Revert "Fix .cmd scripts help arguments (#1043)" (#1110)

This reverts commit 0a29c61468f60f815119e52e477d0154351a4abf.

4 years agoPublish the official build to blob storage (#1092)
Davis Goodin [Fri, 20 Dec 2019 21:26:47 +0000 (15:26 -0600)]
Publish the official build to blob storage (#1092)

* Publish installers and checksums

- Use the arcade publishing process to publish the installers and checksums
- Remove old blob publishing
- Calculate the product version using an always-suffixed version
- Change the blob path that we should upload to to be Runtime/<version> instead of assets/core-setup/.. to line up with the desired paths.

* Updates for dotnet/runtime

Use InstallerTasksAssemblyPath.

Fail fast on RuntimeNupkgFile item duplicates.

Find some more symbol packages. AllConfigurations symbol nupkgs weren't detected due to different artifact arrangement. There may be more missing, however I did this to do unblock some quick local validation so I'm including it.

Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
4 years agoAllow R2RReader to reuse existing MetadataReader/PEReader objects (#1077)
Andrew Au [Fri, 20 Dec 2019 21:25:36 +0000 (13:25 -0800)]
Allow R2RReader to reuse existing MetadataReader/PEReader objects (#1077)

4 years agoPublish CoreCLR packages (#1090)
Davis Goodin [Fri, 20 Dec 2019 19:41:09 +0000 (13:41 -0600)]
Publish CoreCLR packages (#1090)

Add missing _BuildConfig. Pass configuration with Arcade style, at the end for win arg parsing.

Fix build-packages.sh binlog location.

Remove CoreCLR nupkg output redirection.

4 years agoInitial global build PR pipeline (#986)
Tomáš Rylek [Fri, 20 Dec 2019 18:34:22 +0000 (19:34 +0100)]
Initial global build PR pipeline (#986)

Fixes: #951

* Fix OSX build dependencies and container use per Santiago's advice

* Comment the purpose of the new pipeline per Jared's PR feedback

* Prune unused parameters of global-build-job

* Fix variable propagation

4 years agoMerge pull request #784 from layomia/nested_dicts
Layomi Akinrinade [Fri, 20 Dec 2019 03:27:35 +0000 (19:27 -0800)]
Merge pull request #784 from layomia/nested_dicts

Improve serialization support for nested dictionaries

4 years agoMake test libraries configuration agnostic (#378)
Santiago Fernandez Madero [Fri, 20 Dec 2019 02:06:30 +0000 (20:06 -0600)]
Make test libraries configuration agnostic (#378)

* Make test libraries configuration agnostic

* PR Feedback, keep Debug define for tests

* More PR Feedback

* Last pr feedback

4 years agoRestore "Start generating LCL_FLDs in LocalAddressVisitor #737" (#991)
mikedn [Fri, 20 Dec 2019 01:26:23 +0000 (03:26 +0200)]
Restore "Start generating LCL_FLDs in LocalAddressVisitor #737" (#991)

* Revert "Revert "Start generating LCL_FLDs in LocalAddressVisitor (#737)" (#973)"

This reverts commit 9bf91f8d178e09bb81fb1749a82d588cbe8028cf.

* Add a test that produces an unused, top-level indir

* If an indir has no user then it's not a def

* Fix test return code

4 years agoMerge pull request #993 from pgovind/RegEx
Prashanth Govindarajan [Thu, 19 Dec 2019 23:33:33 +0000 (15:33 -0800)]
Merge pull request #993 from pgovind/RegEx

Parse RegEx such as "[^]"

4 years agoFix .cmd scripts help arguments (#1043)
Santiago Fernandez Madero [Thu, 19 Dec 2019 19:38:25 +0000 (13:38 -0600)]
Fix .cmd scripts help arguments (#1043)

* Fix .cmd scripts help arguments

* Support -? arg in .cmd scripts

4 years agoPrevent method from being inlined to get correctly handled in try-catch blocks (...
Fadi Hanna [Thu, 19 Dec 2019 19:11:50 +0000 (11:11 -0800)]
Prevent method from being inlined to get correctly handled in try-catch blocks (#1066)

4 years agoFix dependencies.props import (#833)
Viktor Hofer [Thu, 19 Dec 2019 18:57:49 +0000 (19:57 +0100)]
Fix dependencies.props import (#833)

* Fix dependencies.props import

* Fix props by sanitizing variables

* Don't use ProjectDir variable in script

4 years agoMerge remote-tracking branch 'upstream/master' into RegEx
Prashanth Govindarajan [Thu, 19 Dec 2019 18:46:41 +0000 (10:46 -0800)]
Merge remote-tracking branch 'upstream/master' into RegEx

4 years agoAdd binder resolution events (#604)
Leandro A. F. Pereira [Thu, 19 Dec 2019 18:45:41 +0000 (10:45 -0800)]
Add binder resolution events (#604)

4 years agoHandle GenericParameterDesc's in validation (#1063)
Fadi Hanna [Thu, 19 Dec 2019 18:04:52 +0000 (10:04 -0800)]
Handle GenericParameterDesc's in validation (#1063)

4 years agoAdd Pri1 Crossgen2 pipeline (#1033)
Tomáš Rylek [Thu, 19 Dec 2019 11:13:18 +0000 (12:13 +0100)]
Add Pri1 Crossgen2 pipeline (#1033)

4 years agoUse goto to exit in build.cmd so that error code propagates out of cmd (#990)
Santiago Fernandez Madero [Thu, 19 Dec 2019 01:37:47 +0000 (19:37 -0600)]
Use goto to exit in build.cmd so that error code propagates out of cmd (#990)

* Use goto to exit in build.cmd so that error code propagates out of cmd

* Add comment

* Fix windows format job

4 years agoConsolidate .netcoreapp.cs test files in System.Runtime.* (#999)
Roman Marusyk [Thu, 19 Dec 2019 01:16:39 +0000 (03:16 +0200)]
Consolidate .netcoreapp.cs test files in System.Runtime.* (#999)

* Consolidate .netcoreapp.cs files because System.Runtime.* projects is no longer cross-compiled

4 years agoAdd official signed build pipeline (#1016)
Davis Goodin [Thu, 19 Dec 2019 00:55:25 +0000 (18:55 -0600)]
Add official signed build pipeline (#1016)

* Add official signed build

* Don't attempt test signing during PR validation

* Add build trigger include/exclude paths

* Remove unnecessary conditions (config, success)

* Add issue link for internal tool restore

* Add issue link for test signing

* Fix consolidation TODO formatting, links for all

4 years agoAdd a test to throw when Ecmascript is not specified
Prashanth Govindarajan [Wed, 18 Dec 2019 23:18:07 +0000 (15:18 -0800)]
Add a test to throw when Ecmascript is not specified

4 years agoFix EventSource to stop ignoring EventCommand.SendManifest (#848)
Sung Yoon Whang [Wed, 18 Dec 2019 22:57:33 +0000 (14:57 -0800)]
Fix EventSource to stop ignoring EventCommand.SendManifest (#848)

* Dont ignore EventCommand.SendManifest command in EventSource

* Add ETW manifest generation test

* Mark the ETW ManifestGeneration tests as privileged only

* Define IsProcessElevatedAndNotWindowsNanoServer

* Change undefined file path

4 years agoDelete strong name cruft (#1006)
Jan Kotas [Wed, 18 Dec 2019 22:26:28 +0000 (14:26 -0800)]
Delete strong name cruft (#1006)

The amount of strong name support that CoreCLR needs is very small (really just a method to convert public key to public key token). It is not worth it to build a separate .lib for just this single method. Fold the strong name APIs into metadata and change the API to return HRESULT.

4 years agoJsonNull return false when comparing against null (#842)
Henrik [Wed, 18 Dec 2019 21:28:07 +0000 (22:28 +0100)]
JsonNull return false when comparing against null (#842)

* JsonNull return false when comparing against null

I'ved modified JsonNulls comparison methods to return false when
compared against null, the matching test have also been updated
in change

Fix #820

* Updated xml comments to reflect my changes

I have updated the xml comments to reflect the changes
that was made in JsonNull and removed left over comment
in JsonNullTests

* Applied suggested change

Applied the suggested change to correct xml documentation

Co-Authored-By: Ahson Khan <ahkha@microsoft.com>
* Applied Suggested change

Applied the suggested change to correct xml documentation

Co-Authored-By: Ahson Khan <ahkha@microsoft.com>
4 years agoUpdate dependencies from https://github.com/dotnet/arcade build 20191217.1 (#1013)
dotnet-maestro[bot] [Wed, 18 Dec 2019 20:47:58 +0000 (14:47 -0600)]
Update dependencies from https://github.com/dotnet/arcade build 20191217.1 (#1013)

- Microsoft.DotNet.XUnitExtensions - 5.0.0-beta.19617.1
- Microsoft.DotNet.XUnitConsoleRunner - 2.5.1-beta.19617.1
- Microsoft.DotNet.VersionTools.Tasks - 5.0.0-beta.19617.1
- Microsoft.DotNet.ApiCompat - 5.0.0-beta.19617.1
- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19617.1
- Microsoft.DotNet.Build.Tasks.Configuration - 5.0.0-beta.19617.1
- Microsoft.DotNet.Build.Tasks.Feed - 5.0.0-beta.19617.1
- Microsoft.DotNet.Build.Tasks.Packaging - 5.0.0-beta.19617.1
- Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk - 5.0.0-beta.19617.1
- Microsoft.DotNet.CodeAnalysis - 5.0.0-beta.19617.1
- Microsoft.DotNet.GenAPI - 5.0.0-beta.19617.1
- Microsoft.DotNet.GenFacades - 5.0.0-beta.19617.1
- Microsoft.DotNet.Helix.Sdk - 5.0.0-beta.19617.1
- Microsoft.DotNet.RemoteExecutor - 5.0.0-beta.19617.1

4 years agoFix to array validation in type loadability checks (#1004)
Fadi Hanna [Wed, 18 Dec 2019 18:58:12 +0000 (10:58 -0800)]
Fix to array validation in type loadability checks (#1004)

4 years agosimplify SslStream.AuthenticateAs*Async() (#453)
Tomas Weinfurt [Wed, 18 Dec 2019 18:52:52 +0000 (10:52 -0800)]
simplify SslStream.AuthenticateAs*Async() (#453)

* port from corefx

* add TestHelper.cs

* capture handshake exception

* feedback from review

* cleanup more apm and renegotiation

* fix unit test

* feedback from review

* feedback from review

* feedback from review

* fix test after merge

* feedback from review

* add back ProcessAuthentication as main entry point

4 years agoFix named cgroup handling in docker (#980)
Jan Vorlicek [Wed, 18 Dec 2019 16:07:36 +0000 (17:07 +0100)]
Fix named cgroup handling in docker (#980)

While named cgroups work fine outside of docker container, they weren't
working when created and used inside of a docker container. The problem
was caused by the fact that the hierarchy root extracted from
/proc/self/mountinfo and the cgroup path extracted from /proc/self/cgroup
are not equal for named groups. They just share the same prefix.
The cgroups handling code was not epxecting this case and ended up building
the final cgroup path incorrectly (including the common part of the path).
This change fixes it by checking for matching prefix of the paths instead
of comparing the whole paths.

4 years agoSwitch over the remaining CoreCLR pipelines to live-live mode (#813)
Tomáš Rylek [Wed, 18 Dec 2019 13:55:35 +0000 (14:55 +0100)]
Switch over the remaining CoreCLR pipelines to live-live mode (#813)

I have also found out that my recent change to switch over the JIT
stress pipelines was incomplete - it was building the live libraries
but not actually using it due to a typo in the parameter name. I am
fixing that as part of this change.

Thanks

Tomas

4 years agoAdd tracing for default probing for managed assemblies (#740)
Elinor Fung [Wed, 18 Dec 2019 04:56:16 +0000 (20:56 -0800)]
Add tracing for default probing for managed assemblies (#740)

4 years agoRe-enable symstore targets for System.Private.CoreLib (#1003)
Santiago Fernandez Madero [Wed, 18 Dec 2019 04:30:38 +0000 (22:30 -0600)]
Re-enable symstore targets for System.Private.CoreLib (#1003)

4 years agoFileSystemAclExtensions missing `this` nullchecks (#1001)
Carlos Sanchez Lopez [Wed, 18 Dec 2019 03:06:55 +0000 (19:06 -0800)]
FileSystemAclExtensions missing `this` nullchecks (#1001)

4 years agoSet vtable offset as contained (#722)
Dong-Heon Jung [Wed, 18 Dec 2019 01:01:37 +0000 (10:01 +0900)]
Set vtable offset as contained (#722)

- Can remove a machine instruction which adds vtable offset

4 years agoadd test for nested ssl authentication (#873)
Tomas Weinfurt [Tue, 17 Dec 2019 22:31:47 +0000 (14:31 -0800)]
add test for nested ssl authentication (#873)

* add test for nested ssl authentication

* feedback from review

4 years agoMove System.Globalization.Native under libraries (#875)
Jan Kotas [Tue, 17 Dec 2019 21:39:23 +0000 (13:39 -0800)]
Move System.Globalization.Native under libraries (#875)

- Delete Microsoft.NETCore.Native package
- Unify CMake files with the rest of libraries/native
- Fix pedantic warnings
- Comment out assert (https://github.com/dotnet/runtime/issues/946)
- Delete dlclose during shutdown. It is not safe to unload any libraries that the runtime depends on.
- Install ICU for libraries build in the CI

Fixes https://github.com/dotnet/coreclr/issues/22391

4 years agosq
Prashanth Govindarajan [Tue, 17 Dec 2019 21:21:48 +0000 (13:21 -0800)]
sq

4 years agoParse [^] when ecmascript is set
Prashanth Govindarajan [Tue, 17 Dec 2019 21:15:27 +0000 (13:15 -0800)]
Parse [^] when ecmascript is set

4 years agoMerge pull request #984 from cshung/dev/andrewau/r2rdump-perf-fix
Simon Nattress [Tue, 17 Dec 2019 21:09:26 +0000 (13:09 -0800)]
Merge pull request #984 from cshung/dev/andrewau/r2rdump-perf-fix

Improving performance of R2RDump

4 years agoAll related headers are marked as NonTrailing (#903)
Alexander Nikolaev [Tue, 17 Dec 2019 20:51:25 +0000 (21:51 +0100)]
All related headers are marked as NonTrailing (#903)

Currently, some of the known headers disallowed in the message trailer are marked with HttpHeaderType.NonTrailing flag. However, there are others identified as disallowed by the related RFC missing this flag.
Fixes dotnet/corefx#42474

4 years agoSslStress: add randomized delays (#977)
Eirik Tsarpalis [Tue, 17 Dec 2019 19:17:51 +0000 (21:17 +0200)]
SslStress: add randomized delays (#977)

4 years agoRemove CoreFX.issues.rsp (#985)
Santiago Fernandez Madero [Tue, 17 Dec 2019 18:34:05 +0000 (12:34 -0600)]
Remove CoreFX.issues.rsp (#985)