platform/upstream/dotnet/runtime.git
4 years agoUpdating `JitEEVersionIdentifier` GIUD. A follow up for removing ArrayTypeDesc. ...
Vladimir Sadov [Mon, 6 Jan 2020 22:42:52 +0000 (14:42 -0800)]
Updating `JitEEVersionIdentifier` GIUD. A follow up for removing ArrayTypeDesc. (#1330)

4 years agoOptimize AdjustMaxWorkersActive (#1103)
Bill Wert [Mon, 6 Jan 2020 22:31:11 +0000 (14:31 -0800)]
Optimize AdjustMaxWorkersActive (#1103)

@ninedan reported this function as expensive in one of the server scenarios
he monitors. The actual time is spent in `ThreadStore::GetAllThreadList`.
Moving the call to `GetTotalWorkerThreadPoolCompletionCount` should reduce this
cost.

Fixes #1079

4 years agoCopy change to XsdDateTime (#1319)
ts2do [Mon, 6 Jan 2020 21:57:32 +0000 (15:57 -0600)]
Copy change to XsdDateTime (#1319)

I copied the change from dotnet/coreclr#7769 to XsdDateTime which eliminates extraneous iterations of the days array.

4 years agoAdd documentation guidelines when adding new APIs (#1335)
Carlos Sanchez Lopez [Mon, 6 Jan 2020 21:57:05 +0000 (13:57 -0800)]
Add documentation guidelines when adding new APIs (#1335)

* Add documentation guidelines when adding new APIs

* Update docs/coding-guidelines/adding-api-guidelines.md

Co-Authored-By: Dan Moseley <danmose@microsoft.com>
* Update docs/coding-guidelines/adding-api-guidelines.md

Co-Authored-By: Dan Moseley <danmose@microsoft.com>
* Update docs/coding-guidelines/adding-api-guidelines.md

Co-Authored-By: Maira Wenzel <mairaw@microsoft.com>
* Update docs/coding-guidelines/adding-api-guidelines.md

Co-Authored-By: Maira Wenzel <mairaw@microsoft.com>
* Update docs/coding-guidelines/adding-api-guidelines.md

Co-Authored-By: Maira Wenzel <mairaw@microsoft.com>
Co-authored-by: Dan Moseley <danmose@microsoft.com>
Co-authored-by: Maira Wenzel <mairaw@microsoft.com>
4 years agoRemove STREAM_MEMORY_OVERLOADS_AVAILABLE (#1328)
Eric StJohn [Mon, 6 Jan 2020 20:49:43 +0000 (12:49 -0800)]
Remove STREAM_MEMORY_OVERLOADS_AVAILABLE (#1328)

4 years agoRemoved duplicates/unused code from src\jit\jitstd. (#1272)
Dmitriy Maksimov [Mon, 6 Jan 2020 19:25:42 +0000 (05:25 +1000)]
Removed duplicates/unused code from src\jit\jitstd. (#1272)

make_signed/make_unsigned moved to clr_std/type_traits.
Removed pair.h and type_traits.h

Fix #27557

4 years agoFix reported result for incompatible version for default ALC (#1083)
Elinor Fung [Mon, 6 Jan 2020 19:24:32 +0000 (11:24 -0800)]
Fix reported result for incompatible version for default ALC (#1083)

FindInLoadContext and ApplicationAssemblies stages were reporting name
mismatch instead of incompatible version

4 years agoCoreFX Renames in System.IO PathInternal.Tests (#1017)
Erhan Atesoglu [Mon, 6 Jan 2020 18:34:08 +0000 (10:34 -0800)]
CoreFX Renames in System.IO PathInternal.Tests (#1017)

4 years agoFix typo: availabe -> available (#1324)
Andrew Arnott [Mon, 6 Jan 2020 18:29:28 +0000 (11:29 -0700)]
Fix typo: availabe -> available (#1324)

4 years agoAdd CMAKE add_jit function and remove duplicated code for all JIT (#1292)
Alexandre Mutel [Mon, 6 Jan 2020 18:26:51 +0000 (19:26 +0100)]
Add CMAKE add_jit function and remove duplicated code for all JIT (#1292)

4 years ago[ARM64] Change INS_bkpt to INS_brk for INS_BREAKPOINT (#892)
Leslie Zhai [Mon, 6 Jan 2020 18:10:42 +0000 (12:10 -0600)]
[ARM64] Change INS_bkpt to INS_brk for INS_BREAKPOINT (#892)

* [ARM64] Change INS_bkpt to INS_brk for INS_BREAKPOINT

https://github.com/dotnet/runtime/issues/606

* [ARM64] Change INS_bkpt to INS_brk for INS_BREAKPOINT

https://github.com/dotnet/runtime/issues/606

* [ARM64] Change INS_bkpt to INS_brk for INS_BREAKPOINT

https://github.com/dotnet/runtime/issues/606

* [ARM64] Change INS_bkpt to INS_brk for TARGET_UNIX

https://github.com/dotnet/runtime/issues/606

* [ARM64] Change INS_bkpt to INS_brk for TARGET_UNIX

https://github.com/dotnet/runtime/issues/606

* Fix formatting errors for INS_MULADD

4 years agoMove LocalAddressVisitor to a separate file (#1306)
mikedn [Mon, 6 Jan 2020 18:08:57 +0000 (20:08 +0200)]
Move LocalAddressVisitor to a separate file (#1306)

4 years agoimplement GetScopeId() on Linux (#1038)
Tomas Weinfurt [Mon, 6 Jan 2020 17:17:50 +0000 (09:17 -0800)]
implement GetScopeId() on Linux (#1038)

4 years agoAdd asserts to catch unintentional use of generic overloads (#1200)
Jan Kotas [Mon, 6 Jan 2020 17:15:24 +0000 (09:15 -0800)]
Add asserts to catch unintentional use of generic overloads (#1200)

* Add asserts to catch unintentional use of generic overloads

* Delete unnecessary ifdefs

4 years agoMove Corelib shared files under Common (#1307)
Jan Kotas [Mon, 6 Jan 2020 17:07:16 +0000 (09:07 -0800)]
Move Corelib shared files under Common (#1307)

Contributes to #1232

4 years agoImplement HttpContent and HttpClient cancellation APIs (#686)
Miha Zupan [Mon, 6 Jan 2020 11:28:15 +0000 (12:28 +0100)]
Implement HttpContent and HttpClient cancellation APIs (#686)

* Implement HttpContent and HttpClient cancellation APIs

Implements APIs approved in dotnet/corefx#32615 and dotnet/runtime#576

* Use new CreateContentReadStreamAsync overload in MultipartContent

* Expose HttpContent.SerializeToStreamAsync overload with cancellation

* Remove HTTP_DLL preprocessor directives

* Rename WIN_HTTP_HANDLER to WINHTTPHANDLER_DLL

* Use more 'var' where type is obvious

4 years agoShare compiler config code between libs and coreclr (#1072)
Adeel Mujahid [Mon, 6 Jan 2020 09:19:58 +0000 (11:19 +0200)]
Share compiler config code between libs and coreclr (#1072)

* Share compiler config code between libs and coreclr

4 years agoDelete cmake_minimum_required from PAL tests (#1312)
Jan Kotas [Mon, 6 Jan 2020 04:08:35 +0000 (20:08 -0800)]
Delete cmake_minimum_required from PAL tests (#1312)

It is sufficient to have it in the top level file only

4 years agoFix which platform should be excluded. (#1314)
Sergey Andreenko [Mon, 6 Jan 2020 03:46:16 +0000 (19:46 -0800)]
Fix which platform should be excluded. (#1314)

4 years agoConsolidate .netcoreapp.cs files because System.Numerics.Vectors project is no longer...
Roman Marusyk [Mon, 6 Jan 2020 02:11:45 +0000 (04:11 +0200)]
Consolidate .netcoreapp.cs files because System.Numerics.Vectors project is no longer cross-compiled (#1310)

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