platform/upstream/dotnet/runtime.git
5 years agoEnable build with clang static analyzer
Jan Vorlicek [Fri, 8 Mar 2019 01:31:39 +0000 (17:31 -0800)]
Enable build with clang static analyzer

As part of LLVM, there is a clang static analyzer tool that provides
useful analysis of potential issues in the source code base.

This change enables building coreclr with that analyzer enabled.

Commit migrated from https://github.com/dotnet/coreclr/commit/7b7f8ec1e3f974a43e96c3f01cb0d5a2da913e17

5 years agoUpdate delegate signature for GetSourceLineInfo and change reflection logic to find...
John Salem [Tue, 5 Mar 2019 21:20:55 +0000 (13:20 -0800)]
Update delegate signature for GetSourceLineInfo and change reflection logic to find correct overload on CoreFX side (dotnet/coreclr#22960)

Commit migrated from https://github.com/dotnet/coreclr/commit/98cd595b35ced3adb6efe0c667f5160f21067e0b

5 years agoRe-enable RCW license tests (dotnet/coreclr#23023)
Aaron Robinson [Tue, 5 Mar 2019 20:08:01 +0000 (12:08 -0800)]
Re-enable RCW license tests (dotnet/coreclr#23023)

Commit migrated from https://github.com/dotnet/coreclr/commit/2add95d3f3dc6e0b54946f88ba2215560f5002a3

5 years agoAdd Type Forward (dotnet/coreclr#23036)
Maryam Ariyan [Tue, 5 Mar 2019 19:36:02 +0000 (11:36 -0800)]
Add Type Forward (dotnet/coreclr#23036)

Commit migrated from https://github.com/dotnet/coreclr/commit/c004dff82def0f92ca837b81fd93445ae767fd62

5 years agoMove more Assembly methods to shared partition (dotnet/coreclr#22817)
Marek Safar [Tue, 5 Mar 2019 19:07:15 +0000 (20:07 +0100)]
Move more Assembly methods to shared partition (dotnet/coreclr#22817)

Commit migrated from https://github.com/dotnet/coreclr/commit/2a295e0232aa28dd9b98a0f8bd9bd6ed12b6a4bd

5 years agoMerge pull request dotnet/coreclr#23002 from optimization
Juan Hoyos [Tue, 5 Mar 2019 18:41:22 +0000 (10:41 -0800)]
Merge pull request dotnet/coreclr#23002 from optimization

[master] Update dependencies from  1 repositories

Commit migrated from https://github.com/dotnet/coreclr/commit/4834806fa2268b73ffe23ef6ccf40e93946bc7d6

5 years agoDisable test correctly. Missed casing (dotnet/coreclr#23035)
Jarret Shook [Tue, 5 Mar 2019 17:10:07 +0000 (09:10 -0800)]
Disable test correctly. Missed casing (dotnet/coreclr#23035)

Commit migrated from https://github.com/dotnet/coreclr/commit/75cc2a038d8608501d6788c1423965e3a7280dae

5 years agoFix JIT/Directed/pinvoke/tail
Russ Keldorph [Sun, 3 Mar 2019 05:00:34 +0000 (21:00 -0800)]
Fix JIT/Directed/pinvoke/tail

Remove dependency on Windows user32 library and enable test for all platforms.

Fixes dotnet/coreclr#13048

Commit migrated from https://github.com/dotnet/coreclr/commit/5739414d9757164ccf54cf92fd556f7ae6a16402

5 years agoFix issue 23009
Andrew Au [Mon, 4 Mar 2019 23:39:41 +0000 (15:39 -0800)]
Fix issue 23009

Commit migrated from https://github.com/dotnet/coreclr/commit/119cfe86d996aec5f81a2dae491e9c8c7f445bb5

5 years agoRemove dead AppDomain unload code (dotnet/coreclr#23026)
Steve MacLean [Tue, 5 Mar 2019 11:29:18 +0000 (06:29 -0500)]
Remove dead AppDomain unload code (dotnet/coreclr#23026)

Commit migrated from https://github.com/dotnet/coreclr/commit/dc11162e1c36624d3cabb6e0bf6583a94ab2e30c

5 years agoUpdate eventcounter spec (dotnet/coreclr#23019)
Sung Yoon Whang [Tue, 5 Mar 2019 11:06:40 +0000 (03:06 -0800)]
Update eventcounter spec (dotnet/coreclr#23019)

* Update EventCounter spec

* some wording fix

* some wording fix

* fix payload example

* Add DisplayRateTimeScale

Commit migrated from https://github.com/dotnet/coreclr/commit/b54752c8869f55c82cc24b49fbb1b48a87090943

5 years agoJIT: remove unneeded ref count updating traversal from optimizer (dotnet/coreclr...
Andy Ayers [Tue, 5 Mar 2019 07:30:48 +0000 (23:30 -0800)]
JIT: remove unneeded ref count updating traversal from optimizer (dotnet/coreclr#22954)

The ref count update traversal in the optimizer is not doing anything,
so remove it. This was overlooked when we changed away from incremental
updates in dotnet/coreclr#19345.

Also: fix up comments and documentation to reflect the current approach
to local var ref counts.

Commit migrated from https://github.com/dotnet/coreclr/commit/04fed62162092da2a824e425aa65b8fcfc70ce14

5 years agoRemove dead ContainToAppDomain (dotnet/coreclr#23021)
Steve MacLean [Tue, 5 Mar 2019 06:54:24 +0000 (01:54 -0500)]
Remove dead ContainToAppDomain (dotnet/coreclr#23021)

* Remove dead ContainToAppDomain

* Respond to feedback

Commit migrated from https://github.com/dotnet/coreclr/commit/7d54e6130f0db16b2eaa80272076ae3bd725cf69

5 years agoDo not treat warnings as errors during corefx build in docker. (dotnet/coreclr#23014)
Sergey Andreenko [Tue, 5 Mar 2019 05:46:19 +0000 (21:46 -0800)]
Do not treat warnings as errors during corefx build in docker. (dotnet/coreclr#23014)

* Do not treat warnings as errors during corefx build in docker.

* Add a comment.

Commit migrated from https://github.com/dotnet/coreclr/commit/14caedf474161891c09e740448f07e541e7a95b5

5 years agoRemove loose dependency in runtime on System.ComponentModel. (dotnet/coreclr#23010)
Aaron Robinson [Tue, 5 Mar 2019 02:58:56 +0000 (18:58 -0800)]
Remove loose dependency in runtime on System.ComponentModel. (dotnet/coreclr#23010)

Remove loose dependency in runtime on System.ComponentModel.
Disable test to sync with CoreFX

Commit migrated from https://github.com/dotnet/coreclr/commit/88ada237f7765b7edd39967adab8ea2ba25ea16c

5 years agoRemove BEGIN/END_EXCEPTION_GLUE from botr
Steve MacLean [Tue, 5 Mar 2019 01:29:11 +0000 (20:29 -0500)]
Remove BEGIN/END_EXCEPTION_GLUE from botr

Commit migrated from https://github.com/dotnet/coreclr/commit/77fcaf6b738941a0c5dc3c00b70b49c7d9f63b69

5 years agoPass -priority= argument directly to build-test.cmd (dotnet/coreclr#23007)
Egor Chesakov [Tue, 5 Mar 2019 00:42:40 +0000 (16:42 -0800)]
Pass -priority= argument directly to build-test.cmd (dotnet/coreclr#23007)

Commit migrated from https://github.com/dotnet/coreclr/commit/a217ea2902e26182e7f8f3f66afce1fffa1fc175

5 years agoPublish logs as pipeline artifacts for build-job.yml and test-job.yml (dotnet/coreclr...
Egor Chesakov [Mon, 4 Mar 2019 23:22:56 +0000 (15:22 -0800)]
Publish logs as pipeline artifacts for build-job.yml and test-job.yml (dotnet/coreclr#22926)

Commit migrated from https://github.com/dotnet/coreclr/commit/857567c1b7f35986bc72d7d417e8db64f4df9f72

5 years agoDisable tests for open issues (dotnet/coreclr#22976)
Jarret Shook [Mon, 4 Mar 2019 22:22:44 +0000 (14:22 -0800)]
Disable tests for open issues (dotnet/coreclr#22976)

* Disable tests for open issues

* Clean pri1 run

Commit migrated from https://github.com/dotnet/coreclr/commit/d17b66c8bbc21fc8be18d901e691ed7e9bc8d7ce

5 years agoFix rid choice setup stress (dotnet/coreclr#23004)
Jarret Shook [Mon, 4 Mar 2019 22:19:14 +0000 (14:19 -0800)]
Fix rid choice setup stress (dotnet/coreclr#23004)

* Correct rid choice for setting up coredistools

* Force ubuntu.14.04 as the rid choice for ubuntu

* Add better comment

* Fix typo

Commit migrated from https://github.com/dotnet/coreclr/commit/36cf483227b1fdc3d6554ab6694cb0215b0eed26

5 years agoMove EEClassLayoutInfo::CollectLayoutFieldMetadataThrowing to class.cpp (dotnet/corec...
Jeremy Koritzinsky [Mon, 4 Mar 2019 21:15:28 +0000 (13:15 -0800)]
Move EEClassLayoutInfo::CollectLayoutFieldMetadataThrowing to class.cpp (dotnet/coreclr#22932)

Move `EEClassLayoutInfo::CollectLayoutFieldMetadataThrowing` to class.cpp and out of fieldmarshaler.cpp.

This change co-locates `EEClassLayoutInfo::CollectLayoutFieldMetadataThrowing` with the rest of the implementation of `EEClassLayoutInfo`. Additionally, this PR separates out the field blittability check into a separate function instead of burying it in `CollectLayoutFieldMetadataThrowing`.

Finally, it adds a small optimization in the field marshaler implementations where if a field's native size is statically known, the code returns that value instead of calling into one of the FieldMarshaler "virtual" calls.

Originally part of dotnet/coreclr#21415, but extracted out to make that PR smaller.

Commit migrated from https://github.com/dotnet/coreclr/commit/1278da1f480e664b5afd1b62f2be74424dbefbb8

5 years agoMerge pull request dotnet/coreclr#22791 from CarolEidt/Fix19256
Carol Eidt [Mon, 4 Mar 2019 16:54:19 +0000 (08:54 -0800)]
Merge pull request dotnet/coreclr#22791 from CarolEidt/Fix19256

Fix condition for calling EvalArgsToTemps

Commit migrated from https://github.com/dotnet/coreclr/commit/fd3afcaf0dc0ace3f84d0412c128f4e64c419105

5 years agoCleanup more GCC warnings (dotnet/coreclr#22872)
Sinan Kaya [Mon, 4 Mar 2019 06:55:22 +0000 (01:55 -0500)]
Cleanup more GCC warnings (dotnet/coreclr#22872)

* Add parenthesis

src/vm/sha1.cpp: In function ‘void SHA1_block(SHA1_CTX*)’:
src/vm/sha1.cpp:93:29: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
 #define ROUND3(B, C, D) ((C & (B | D) | (B & D)) + sha1_round3)
                             ^
src/vm/sha1.cpp:139:32: note: in expansion of macro ‘ROUND3’
         e += ROTATE32L(a, 5) + ROUND3(b, c, d) + msg80[i];

* Move declaration into same file as one was defined Extern the other one was static

* Remove hr=hr undefined assignment

* Fix mutli-line comment warning

* Convert multi-character literal

* Remove null check for stack local variables

rc/vm/invokeutil.cpp: In static member function ‘static void InvokeUtil::SetValidField(CorElementType, TypeHandle, FieldDesc*, OBJECTREF*, OBJECTREF*, TypeHandle, CLR_BOOL*)’:
src/vm/invokeutil.cpp:978:29: warning: the address of ‘Throwable’ will never be NULL [-Waddress]
EX_CATCH_THROWABLE(&Throwable);
^
src/inc/ex.h:1087:21: note: in definition of macro ‘EX_CATCH_THROWABLE’
if (NULL != ppThrowable)
^

Commit migrated from https://github.com/dotnet/coreclr/commit/9d3f264b9ef8b4715017ec615dcb6f9d57e607cc

5 years agoMirror changes from dotnet/corert (dotnet/coreclr#22985)
Dotnet-GitSync-Bot [Mon, 4 Mar 2019 05:07:25 +0000 (21:07 -0800)]
Mirror changes from dotnet/corert (dotnet/coreclr#22985)

* Move fully managed TimerQueue implementation to shared partition (dotnet/coreclr#7111)

* Update CoreCLR for changes in shared partition

Commit migrated from https://github.com/dotnet/coreclr/commit/7da0883d9ceba31bccf36cc8cbbbf2fe77a4f3e0

5 years agoMerge pull request dotnet/coreclr#22981 from dotnet/darc-master-95952865-131b-47b2...
Stephen Toub [Sun, 3 Mar 2019 21:33:39 +0000 (16:33 -0500)]
Merge pull request dotnet/coreclr#22981 from dotnet/darc-master-95952865-131b-47b2-99d0-f60a630db1b3

[master] Update dependencies from dotnet/corefx

Commit migrated from https://github.com/dotnet/coreclr/commit/fef5785dbb0012da8ff2b53007b2684df23a729e

5 years agoDisable outdated tests
Jan Kotas [Sun, 3 Mar 2019 15:08:54 +0000 (07:08 -0800)]
Disable outdated tests

Commit migrated from https://github.com/dotnet/coreclr/commit/758823876700728fee63f7726791f35ef391d377

5 years agoFix CoreCLR build break
Jan Kotas [Sun, 3 Mar 2019 06:25:25 +0000 (22:25 -0800)]
Fix CoreCLR build break

Commit migrated from https://github.com/dotnet/coreclr/commit/d36c51023ef0bd58301e2f0e441f4c1901981263

5 years agoUpdate CoreRT for changes in shared partition
Jan Kotas [Sun, 3 Mar 2019 03:21:19 +0000 (19:21 -0800)]
Update CoreRT for changes in shared partition

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/f22edcb508780dc3d6442b8233c49d60ad695225

5 years agoCorrected some misspellings (dotnet/coreclr#22978)
Fawad Halim [Sun, 3 Mar 2019 03:21:39 +0000 (03:21 +0000)]
Corrected some misspellings (dotnet/coreclr#22978)

Commit migrated from https://github.com/dotnet/coreclr/commit/3e9f456f81e215ddcd6b1fb1443fa551725a3eb1

5 years agoMove Activator to shared partition (dotnet/coreclr#22894)
Marek Safar [Sat, 2 Mar 2019 22:22:55 +0000 (23:22 +0100)]
Move Activator to shared partition (dotnet/coreclr#22894)

Commit migrated from https://github.com/dotnet/coreclr/commit/7ddd038a33977b152e856448443425cbc6b591c6

5 years agoUse BitOperations in more callsites (CoreCLR) (dotnet/coreclr#22630)
Grant [Sat, 2 Mar 2019 21:55:07 +0000 (13:55 -0800)]
Use BitOperations in more callsites (CoreCLR) (dotnet/coreclr#22630)

* Missed perf improvement in EventProvider

* Add missing methods to StubEnvironment

Commit migrated from https://github.com/dotnet/coreclr/commit/3c0f075864df149fd477cbf07f0c606239798fc6

5 years ago[master] Update dependencies from dotnet/corefx (dotnet/coreclr#22968)
dotnet-maestro[bot] [Sat, 2 Mar 2019 18:55:15 +0000 (10:55 -0800)]
[master] Update dependencies from dotnet/corefx (dotnet/coreclr#22968)

* Update dependencies from https://github.com/dotnet/corefx build 20190302.1

This change updates the following dependencies
- Microsoft.NETCore.Platforms - 3.0.0-preview4.19152.1
- Microsoft.Private.CoreFx.NETCoreApp - 4.6.0-preview4.19152.1

* Disable outdated tests

Commit migrated from https://github.com/dotnet/coreclr/commit/fcfc3baa491b0ac7eb6a9cb73e3b2d46cb5929a0

5 years agoRevert "Revert "Improve coreclrhost.h header" (dotnet/coreclr#22955)" (dotnet/coreclr...
Jarret Shook [Sat, 2 Mar 2019 18:54:48 +0000 (10:54 -0800)]
Revert "Revert "Improve coreclrhost.h header" (dotnet/coreclr#22955)" (dotnet/coreclr#22973)

This reverts commit dotnet/coreclr@831cb13f1432aac09e66a8543831d3ed55b4bddf.

Commit migrated from https://github.com/dotnet/coreclr/commit/441f049754803a0f1b40bb2cacb977df8a1425fa

5 years agoRevert "Improve coreclrhost.h header" (dotnet/coreclr#22955)
Jarret Shook [Sat, 2 Mar 2019 18:51:40 +0000 (10:51 -0800)]
Revert "Improve coreclrhost.h header" (dotnet/coreclr#22955)

Commit migrated from https://github.com/dotnet/coreclr/commit/831cb13f1432aac09e66a8543831d3ed55b4bddf

5 years agoDisable DOTNET_MULTILEVEL_LOOKUP in the build scripts (dotnet/coreclr#22972)
Jan Kotas [Sat, 2 Mar 2019 16:49:52 +0000 (08:49 -0800)]
Disable DOTNET_MULTILEVEL_LOOKUP in the build scripts (dotnet/coreclr#22972)

Fixes dotnet/coreclr#22971

Commit migrated from https://github.com/dotnet/coreclr/commit/ff53a99fb9e4c6e479a60c09a7014bfb72af4936

5 years agoMove more Thread logic to shared partition (dotnet/coreclr#22935)
Marek Safar [Sat, 2 Mar 2019 13:46:27 +0000 (14:46 +0100)]
Move more Thread logic to shared partition (dotnet/coreclr#22935)

* Move more Thread logic to shared partition

* Keep the fields in runtime part for reliable layout structure

Commit migrated from https://github.com/dotnet/coreclr/commit/ef0fde985732148eea136e90aece4ccd3d0370b5

5 years agoFix CoreFX build break
Jan Kotas [Sat, 2 Mar 2019 04:15:28 +0000 (20:15 -0800)]
Fix CoreFX build break

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/d3e8eced36393f6c8b7e03b30acbcd33f2c284b9

5 years agoFix netfx build break
Jan Kotas [Fri, 1 Mar 2019 21:59:19 +0000 (13:59 -0800)]
Fix netfx build break

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/dc6bba9d005edf2cc5df77795591fb2ef660055f

5 years agoSupport IClassFactory2 - LicenseManager use in COM activation (dotnet/coreclr#22846)
Aaron Robinson [Sat, 2 Mar 2019 06:53:42 +0000 (22:53 -0800)]
Support IClassFactory2 - LicenseManager use in COM activation (dotnet/coreclr#22846)

* Implement IClassFactory2

* Add test support for IClassFactory2

* Add support for testing RCW activation via IClassFactory2

Commit migrated from https://github.com/dotnet/coreclr/commit/9e66e140f09b32694b32b98c34d8948bdf3608a3

5 years agoUse arcade's version of dotnet to build (dotnet/coreclr#22755)
Steve MacLean [Sat, 2 Mar 2019 04:07:35 +0000 (23:07 -0500)]
Use arcade's version of dotnet to build (dotnet/coreclr#22755)

* Use arcade dotnet

* Add cmake_msbuild.cmd

Move msbuild.cmd to cmake_msbuild.bat
Document intent that this file is only used to resolve
Windows cmake dependency on desktop msbuild.exe

Remove one instance of msbuild.cmd

* Fix inittools.cmd

* Remove spurious setup_vs_tools.cmd calls

Commit migrated from https://github.com/dotnet/coreclr/commit/42bc2de2c63fe0c95a582e642ff97b2fe0d4bb7e

5 years agoRevert heapcount and enable CPU Groups to fix Ubuntu FPE (dotnet/coreclr#22861)
Varun Venkatesan [Sat, 2 Mar 2019 00:41:09 +0000 (16:41 -0800)]
Revert heapcount and enable CPU Groups to fix Ubuntu FPE (dotnet/coreclr#22861)

Commit migrated from https://github.com/dotnet/coreclr/commit/c1801e85024add717f518feb6a9caed60d54500f

5 years agoFix CoreRT build breaks
Jan Kotas [Fri, 1 Mar 2019 18:08:59 +0000 (10:08 -0800)]
Fix CoreRT build breaks

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/5c911a4f16668a07ac53c4e29d8128afae6ff0f0

5 years ago[master] Update dependencies from dotnet/arcade (dotnet/coreclr#22818)
Juan Hoyos [Fri, 1 Mar 2019 22:00:15 +0000 (14:00 -0800)]
[master] Update dependencies from dotnet/arcade (dotnet/coreclr#22818)

* Update dependencies from https://github.com/dotnet/arcade build 20190228.3

This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19128.3
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19128.3

Commit migrated from https://github.com/dotnet/coreclr/commit/2410bfc989768a705293027db13512a2a4dd2474

5 years ago[master] Update dependencies from dotnet/corefx (dotnet/coreclr#22953)
dotnet-maestro[bot] [Fri, 1 Mar 2019 21:49:15 +0000 (13:49 -0800)]
[master] Update dependencies from dotnet/corefx (dotnet/coreclr#22953)

* Update dependencies from https://github.com/dotnet/corefx build 20190301.4

This change updates the following dependencies
- Microsoft.NETCore.Platforms - 3.0.0-preview4.19151.4
- Microsoft.Private.CoreFx.NETCoreApp - 4.6.0-preview4.19151.4

* Disable outdated tests

Commit migrated from https://github.com/dotnet/coreclr/commit/c3811b37b4f1633bd880a762e3759778237e7ad0

5 years agoRemove unused code from EventSource (dotnet/coreclr#22853)
Marek Safar [Fri, 1 Mar 2019 21:16:56 +0000 (22:16 +0100)]
Remove unused code from EventSource (dotnet/coreclr#22853)

FallbackActivityId is theoretically references in CoreFX but it's under never defined FEATURE_ACTIVITYSAMPLING
and the implementation should live in CoreFX part anyway

Commit migrated from https://github.com/dotnet/coreclr/commit/2f4a95b3a4bc8c3a2b928eb59b7a88c5de84b4e9

5 years agoLabel implements IEquatable<Label> (dotnet/coreclr#22938)
Foxtrek_64 [Fri, 1 Mar 2019 21:15:23 +0000 (15:15 -0600)]
Label implements IEquatable<Label> (dotnet/coreclr#22938)

Commit migrated from https://github.com/dotnet/coreclr/commit/919a19ce1d000049e9dd7e886760b8f03d861af9

5 years agoJIT: revise comment about struct-of-struct-of-field promotion (dotnet/coreclr#22952)
Andy Ayers [Fri, 1 Mar 2019 21:00:52 +0000 (13:00 -0800)]
JIT: revise comment about struct-of-struct-of-field promotion (dotnet/coreclr#22952)

Fixes an oversight in dotnet/coreclr#22867.

Commit migrated from https://github.com/dotnet/coreclr/commit/bd3a20d3c047fafbaf77a2cd56f32662b08a24dd

5 years agoFixes: Audit missing entries in ClrEtwAll.man dotnet/coreclr#22790 (dotnet/coreclr...
José Rivero [Fri, 1 Mar 2019 19:23:49 +0000 (11:23 -0800)]
Fixes: Audit missing entries in ClrEtwAll.man dotnet/coreclr#22790 (dotnet/coreclr#22795)

Commit migrated from https://github.com/dotnet/coreclr/commit/b290578abfe5e5526c5ed0502527942fd381945d

5 years agoFix issue dotnet/coreclr#22337
Andrew Au [Fri, 1 Mar 2019 01:39:08 +0000 (17:39 -0800)]
Fix issue dotnet/coreclr#22337

Commit migrated from https://github.com/dotnet/coreclr/commit/4d7a99fb5b4a6345153ae0c80a17fd0f0cf20cd0

5 years agoMerge pull request dotnet/coreclr#22905 from vancem/RundownFix
Vance Morrison [Fri, 1 Mar 2019 17:07:16 +0000 (09:07 -0800)]
Merge pull request dotnet/coreclr#22905 from vancem/RundownFix

Rundown profiler fix

Commit migrated from https://github.com/dotnet/coreclr/commit/00e757cc51bc341386de95c6e9ab1b9b27574e64

5 years agoTurn on IBC and enforce PGO in official and release builds. (dotnet/coreclr#22843)
Jeremy Koritzinsky [Fri, 1 Mar 2019 16:48:49 +0000 (08:48 -0800)]
Turn on IBC and enforce PGO in official and release builds. (dotnet/coreclr#22843)

* Enable pgocheck to run on python 3.

* Enable IBC optimizations in official builds and enforce PGO in release builds on platforms where pgocheck.py works.

* Only enable IBC on Windows x64/x86.

Commit migrated from https://github.com/dotnet/coreclr/commit/d778ad50511f5511ef799afa7fdef86ab5756e95

5 years agoImplement Serialization Guard
Morgan Brown [Fri, 1 Mar 2019 16:46:22 +0000 (08:46 -0800)]
Implement Serialization Guard

Add Serialization Guard API and consume it in CoreLib targets

Commit migrated from https://github.com/dotnet/coreclr/commit/3c0d755886d2130e1b0db01524c140cb6c6b6fe6

5 years agoMerge pull request dotnet/coreclr#22801 from janvorli/improve-coreclrhost-header
Jan Vorlicek [Fri, 1 Mar 2019 16:40:55 +0000 (17:40 +0100)]
Merge pull request dotnet/coreclr#22801 from janvorli/improve-coreclrhost-header

Improve coreclrhost.h header

Commit migrated from https://github.com/dotnet/coreclr/commit/051ec3753e416cb7fab3cf36b4f3112c7a924f1e

5 years agoMerge pull request dotnet/coreclr#22821 from am11/fix/signed-compare-and-narrowing
Jan Vorlicek [Fri, 1 Mar 2019 16:38:44 +0000 (17:38 +0100)]
Merge pull request dotnet/coreclr#22821 from am11/fix/signed-compare-and-narrowing

Fix comparison and narrowing errors reported by GCC

Commit migrated from https://github.com/dotnet/coreclr/commit/fd448f7d0c9d5ed3beee3b0ef078f29d97f3eefa

5 years agoDisable tests for a clean official build
jashook [Thu, 28 Feb 2019 22:44:15 +0000 (14:44 -0800)]
Disable tests for a clean official build

Commit migrated from https://github.com/dotnet/coreclr/commit/a37cb15b812961e00cd1824bdeb1ec7d41d11ddf

5 years agoFix resource stream for collectible assemblies (dotnet/coreclr#22925)
Jan Vorlicek [Fri, 1 Mar 2019 11:10:49 +0000 (12:10 +0100)]
Fix resource stream for collectible assemblies (dotnet/coreclr#22925)

* Fix resource stream for collectible assemblies

The GetManifestResourceStream was returning a stream that didn't keep
the underlying assembly alive. For collectible assemblies, that means
that an assembly could be collected and the stream still kept,
potentially reading garbage.

The fix is to create a new stream type that stores a reference to the
underlying assembly, thus ensuring the proper lifetime management.

* Make the new stream class sealed

Commit migrated from https://github.com/dotnet/coreclr/commit/452c40d2338bcf3f9298d316b49fbd1389a70cd5

5 years agoAnother small tweak to fix Thread behavioral difference (dotnet/coreclr#22943)
Stephen Toub [Fri, 1 Mar 2019 09:35:45 +0000 (04:35 -0500)]
Another small tweak to fix Thread behavioral difference (dotnet/coreclr#22943)

To match existing behavior: https://github.com/dotnet/corefx/blob/dotnet/coreclr@5dc8132370532804a5381b90e2ce87d6c52b61f6/src/Common/src/CoreLib/System/Threading/Thread.Unix.cs#L13

Commit migrated from https://github.com/dotnet/coreclr/commit/a26aabef798c3a0c42b38c75e0a14a0cb253594f

5 years agoFix keyword for PinPlugAtGCTime event (dotnet/coreclr#22806)
Sung Yoon Whang [Fri, 1 Mar 2019 05:50:14 +0000 (21:50 -0800)]
Fix keyword for PinPlugAtGCTime event (dotnet/coreclr#22806)

Commit migrated from https://github.com/dotnet/coreclr/commit/dacab04a17e0cd4ed2b321be936f233cf75bb7e8

5 years agoAdd Rune.DecodeUtf16 / DecodeUtf8 and friends (dotnet/coreclr#22725)
Levi Broderick [Fri, 1 Mar 2019 05:48:01 +0000 (21:48 -0800)]
Add Rune.DecodeUtf16 / DecodeUtf8 and friends (dotnet/coreclr#22725)

Commit migrated from https://github.com/dotnet/coreclr/commit/484466c6344b1d7997a6ed00ce6fc7230b84a7d0

5 years agoMove COM related attributes to the shared source location of Object class. (dotnet...
Aaron Robinson [Fri, 1 Mar 2019 03:17:13 +0000 (19:17 -0800)]
Move COM related attributes to the shared source location of Object class. (dotnet/coreclr#22942)

Commit migrated from https://github.com/dotnet/coreclr/commit/80eece76a5d3e9c4a731633334cce37f6050b9e7

5 years agoConsume optimization packages using new dependency flow system (dotnet/coreclr#22915)
Juan Hoyos [Fri, 1 Mar 2019 02:55:34 +0000 (18:55 -0800)]
Consume optimization packages using new dependency flow system (dotnet/coreclr#22915)

* Consume optimization packages using new dependency flow system.

Commit migrated from https://github.com/dotnet/coreclr/commit/c659d285baed0b083fd0c25658a1a8e24a550425

5 years agoFix CoreFX build scripts2. (dotnet/coreclr#22931)
Sergey Andreenko [Fri, 1 Mar 2019 02:31:44 +0000 (18:31 -0800)]
Fix CoreFX build scripts2. (dotnet/coreclr#22931)

Commit migrated from https://github.com/dotnet/coreclr/commit/557eac638356ff47af7b92c9f349931eed5e0891

5 years agochange to kick off CI
Vance Morrison [Fri, 1 Mar 2019 00:42:26 +0000 (16:42 -0800)]
change to kick off CI

Commit migrated from https://github.com/dotnet/coreclr/commit/0fe6be13fdc45f3d2432db943a741e2e397e49d6

5 years agoRemoving the ExtractVector128 and InsertVector128 APIs that take an address. (dotnet...
Tanner Gooding [Fri, 1 Mar 2019 00:28:14 +0000 (16:28 -0800)]
Removing the ExtractVector128 and InsertVector128 APIs that take an address. (dotnet/coreclr#22886)

* Removing the InsertVector128 and ExtractVector128 overloads that take an address from S.P.Corelib

* Removing the ExtractStore and InsertLoad tests.

* Fixing the PacketTracer test to use the appropriate Extract/InsertVector128 overloads

* Removing the JIT support for the Extract/InsertVector128 overloads that take an address.

Commit migrated from https://github.com/dotnet/coreclr/commit/d06becc2658b2130c152d0f6c34a358441dd0f8e

5 years agoRevert "Update added types and methoddefs on ApplyMetadata (dotnet/coreclr#22617...
Jan Kotas [Thu, 28 Feb 2019 23:45:26 +0000 (15:45 -0800)]
Revert "Update added types and methoddefs on ApplyMetadata (dotnet/coreclr#22617)" (dotnet/coreclr#22923)

This reverts commit dotnet/coreclr@ee755e322dabc2fc280e2561b0fbaf6e90aedf54.

Commit migrated from https://github.com/dotnet/coreclr/commit/f9c10f995fe65c0e7c30aa1734f7bb22c519983d

5 years agoSet the MarshalByRefObject to be ComVisible and (dotnet/coreclr#22930)
Aaron Robinson [Thu, 28 Feb 2019 23:25:17 +0000 (15:25 -0800)]
Set the MarshalByRefObject to be ComVisible and (dotnet/coreclr#22930)

a IDispatch class interface. this is being done
  to ensure WinForms consumers can interact with
  COM based controls.

Commit migrated from https://github.com/dotnet/coreclr/commit/780bdacf375f031f12d7d64295521cddcca4478b

5 years agoSet flag in comp info to signal that a caller has >8 byte struct args (dotnet/coreclr...
Jarret Shook [Thu, 28 Feb 2019 22:30:03 +0000 (14:30 -0800)]
Set flag in comp info to signal that a caller has >8 byte struct args (dotnet/coreclr#22775)

* Set flag in comp info to signal that a caller has >8 byte struct args

This will be used by fgCanFastTailCall to correctly determine whether an arm64
or x64 linux caller/callee can fastTailCall.
It is also a workaround to dotnet/coreclr#12468 to catch early any slot shuffling that would happen in LowerFastTailCall. Which currently assumes all parameters are one slot size.

* Address feedback

* Apply format patch

* Add comment

* apply new format patch

Commit migrated from https://github.com/dotnet/coreclr/commit/0a29aaf5e40d36cdd23f59b2dee487cf8b926391

5 years agoNativeLibraryTests: Platform restriction on some tests (dotnet/coreclr#22732)
Swaroop Sridhar [Thu, 28 Feb 2019 22:10:46 +0000 (14:10 -0800)]
NativeLibraryTests: Platform restriction on some tests (dotnet/coreclr#22732)

NativeLibraryTests: Platform restriction on some tests

This change adds platform restrictions on two API tests:
* Change the System32 dll loading test from `msi.dll` to `uri.dll`
* Restrict the System32 dll loading test to platforms where `uri.dll` actually exists in the System32 directory.
* Disable double-free tests on Linux, because the OS call doesn't reliably fail.

Use the public version of CoreLib, since the NativeLibrary APIs are
now available.

Fixes dotnet/coreclr#22726

Commit migrated from https://github.com/dotnet/coreclr/commit/c395a8a8e7a987000455d65efac371973d96a3c8

5 years agoFix DumpAsync to understand ContinuationWrapper (dotnet/coreclr#22913)
Stephen Toub [Thu, 28 Feb 2019 21:44:26 +0000 (16:44 -0500)]
Fix DumpAsync to understand ContinuationWrapper (dotnet/coreclr#22913)

Continuations created while the debugger is attached or certain EventSource events are enabled end up getting wrapped in an extra ContinuationWrapper object that carries some additional information.  DumpAsync currently isn't unwrapping these but should.  This just teaches it to look for a known field name so that it can "see through" these wrappers while following async "stacks".

Commit migrated from https://github.com/dotnet/coreclr/commit/3a0367c75a9b5cebbcc2f2c9609aa05536ed921b

5 years agoFix GetApartmentState value on Unix to be Unknown (dotnet/coreclr#22928)
Stephen Toub [Thu, 28 Feb 2019 21:42:27 +0000 (16:42 -0500)]
Fix GetApartmentState value on Unix to be Unknown (dotnet/coreclr#22928)

* Fix GetApartmentState value on Unix to be Unknown

The code in corefx is returning ApartmentState.Unknown on Unix.  This new coreclr implementation should do the same.

* Fix visibility on TrySetApartmentStateUnchecked

Commit migrated from https://github.com/dotnet/coreclr/commit/0a93b5136621040b93b9f805e26e7d27d11dc955

5 years agoJIT: allow slightly more general promotion of structs with struct fields (dotnet...
Andy Ayers [Thu, 28 Feb 2019 20:15:19 +0000 (12:15 -0800)]
JIT: allow slightly more general promotion of structs with struct fields (dotnet/coreclr#22867)

For a while now the jit has been able to promote an outer struct A with an
inner struct field B that itself has a single non-struct field C, provided
that C occupies all of B and that C and B are pointer-sized.

For example, this comes up when supporting promotion of `Span<T>`, as a span
contains a `ByReference<T>` field that itself contains a pointer-sized field.

This change relaxes the constraints slightly, allowing B and C to be less than
pointer sized, provided C still occupies all of B, and B is suitably aligned
within A.

Doing so allows promotion of the new `Range` type, which contains two `Index`
fields that each wrap an `int`. This improves performance for uses of `Range`
for simple examples like those in dotnet/coreclr#22079.

Commit migrated from https://github.com/dotnet/coreclr/commit/8f5bf71321ca29dcd9c5847185e15c0b7fb9a8e7

5 years agoMake the new stream class sealed
Jan Vorlicek [Thu, 28 Feb 2019 19:59:34 +0000 (20:59 +0100)]
Make the new stream class sealed

Commit migrated from https://github.com/dotnet/coreclr/commit/48de3c0418b389f117e3ca8c96caaddbf664f149

5 years agoRemove unused packages from init-tools.msbuild (dotnet/coreclr#22884)
Steve MacLean [Thu, 28 Feb 2019 19:47:58 +0000 (14:47 -0500)]
Remove unused packages from init-tools.msbuild (dotnet/coreclr#22884)

Commit migrated from https://github.com/dotnet/coreclr/commit/a2460500555f6c47aad1f3cef19f4df0c099a078

5 years agoRemove sdmaclea from active arm64 users (dotnet/coreclr#22924)
Steve MacLean [Thu, 28 Feb 2019 19:08:06 +0000 (14:08 -0500)]
Remove sdmaclea from active arm64 users (dotnet/coreclr#22924)

Commit migrated from https://github.com/dotnet/coreclr/commit/1e087524a6ed3a64a0c682423c6655308c062d3d

5 years agoFix resource stream for collectible assemblies
Jan Vorlicek [Thu, 28 Feb 2019 19:06:57 +0000 (20:06 +0100)]
Fix resource stream for collectible assemblies

The GetManifestResourceStream was returning a stream that didn't keep
the underlying assembly alive. For collectible assemblies, that means
that an assembly could be collected and the stream still kept,
potentially reading garbage.

The fix is to create a new stream type that stores a reference to the
underlying assembly, thus ensuring the proper lifetime management.

Commit migrated from https://github.com/dotnet/coreclr/commit/5fcc6f14e1197c313edc3673ad67f6af26c2199e

5 years agoRe-partition MSBuild test groups (dotnet/coreclr#22885)
Egor Chesakov [Thu, 28 Feb 2019 17:55:28 +0000 (09:55 -0800)]
Re-partition MSBuild test groups (dotnet/coreclr#22885)

This changes a tests partitioning scheme of coreclr tests in several different ways:

1. Make the test groups are of equal (to some extent) sizes keeping the number of tests in one group less than 1000;

2. As a resulf of 1) this increases a number of groups needed for Pri0 tests to 3 and decreases a number of groups for Pri1 tests to 10;

3. This also changes a way of tests partitioning scheme is defined - instead of explicitly specifying MSBuild Include-patterns this defines a boundaries between test groups in a form of _StartsWith ItemGroup. Then I use StringComparer.Ordinal to pick tests that belong to a particular group.

Commit migrated from https://github.com/dotnet/coreclr/commit/39b643fa45e62cd016b36c173d6166c41d85f0f7

5 years agoFix CoreRT build break
Jan Kotas [Thu, 28 Feb 2019 07:41:42 +0000 (23:41 -0800)]
Fix CoreRT build break

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/062597365c5fe0cbab66aa11447e8e6459179cd6

5 years agoChange IBC package layout to match what we generate (dotnet/coreclr#22799)
Michelle McDaniel [Thu, 28 Feb 2019 06:52:30 +0000 (22:52 -0800)]
Change IBC package layout to match what we generate (dotnet/coreclr#22799)

* Change IBC package layout to match what the optimization repo now generates

Commit migrated from https://github.com/dotnet/coreclr/commit/d639ff3a0fe8677ff0a4963a92d5dbd1c465bf48

5 years agoMerge pull request dotnet/coreclr#22890 from stephentoub/fixthreadbehavior
Stephen Toub [Thu, 28 Feb 2019 04:23:46 +0000 (23:23 -0500)]
Merge pull request dotnet/coreclr#22890 from stephentoub/fixthreadbehavior

Fix Thread-related behavior changes

Commit migrated from https://github.com/dotnet/coreclr/commit/4a0a0c043eb07a3cc75ba94dcbd8072455ddcab5

5 years agoUpdate BuildTools, CoreClr, IbcData, PgoData to preview1-03723-01, preview4-27427...
Juan Hoyos [Thu, 28 Feb 2019 02:27:31 +0000 (18:27 -0800)]
Update BuildTools, CoreClr, IbcData, PgoData to preview1-03723-01, preview4-27427-72, master-20190227.1, master-20190227.1, respectively (master) [Manual] (dotnet/coreclr#22903)

Commit migrated from https://github.com/dotnet/coreclr/commit/7566ca9442cb43c167523e63ffc34658bd438c01

5 years agoAddress PR feedback (clean up style in Thread.CoreCLR.cs)
Stephen Toub [Wed, 27 Feb 2019 22:53:25 +0000 (17:53 -0500)]
Address PR feedback (clean up style in Thread.CoreCLR.cs)

Commit migrated from https://github.com/dotnet/coreclr/commit/d30aaca62d40d235a55a445edff2f85b8c56ba26

5 years agoRemove legacy classfactory.cpp implementation for managed COM activation (dotnet...
Aaron Robinson [Thu, 28 Feb 2019 00:49:26 +0000 (16:49 -0800)]
Remove legacy classfactory.cpp implementation for managed COM activation (dotnet/coreclr#22895)

Commit migrated from https://github.com/dotnet/coreclr/commit/83e6a8043699da675c241a3ef325eff54c6a59cb

5 years agoadded a lightweight GC profiling option (dotnet/coreclr#22866)
Maoni Stephens [Thu, 28 Feb 2019 00:35:03 +0000 (16:35 -0800)]
added a lightweight GC profiling option (dotnet/coreclr#22866)

added a profiling event mask in the high 32-bit, COR_PRF_HIGH_BASIC_GC, for basic GC monitoring. it can be set via `ICorProfilerInfo5::SetEventMask2`. all this gives you is

    * GC start callback

    * GC end callback

    * update generational bounds

note that one different behavior between this and the existing COR_PRF_MONITOR_GC is, aside from the obvious that it doesn't give you any info beyond the above, is that the GC end callback + update generational bounds are enabled for _all_ GCs, not just non concurrent GCs. I kept the behavior the same for COR_PRF_MONITOR_GC because I don't want to risk breaking existing profiling tools that do not anticipate these for concurrent GCs.

Commit migrated from https://github.com/dotnet/coreclr/commit/ea099fba14da84c3e81eb8d5ad93ecae7c659489

5 years agoMerge pull request dotnet/coreclr#22736 from dotnet/dev/tomat/copyrights
Tomáš Matoušek [Thu, 28 Feb 2019 00:20:36 +0000 (16:20 -0800)]
Merge pull request dotnet/coreclr#22736 from dotnet/dev/tomat/copyrights

Set copyright and package license

Commit migrated from https://github.com/dotnet/coreclr/commit/d0743a467c1df473f511ca0ab73eaf1d119a309b

5 years agoUpdate issue number
Vance Morrison [Thu, 28 Feb 2019 00:19:31 +0000 (16:19 -0800)]
Update issue number

Commit migrated from https://github.com/dotnet/coreclr/commit/7f344c963d65f5e4049bb4b29e564205f4533d8e

5 years agoPartial fix for issue 22585. Fixes symbol lookup in profilers.
Vance Morrison [Thu, 28 Feb 2019 00:18:42 +0000 (16:18 -0800)]
Partial fix for issue 22585.   Fixes symbol lookup in profilers.

Commit migrated from https://github.com/dotnet/coreclr/commit/47fffe462cd60e361e97bad4d59564ea73c92d1d

5 years agoFix BitOperations using in standalone EventSource build
Stephen Toub [Wed, 27 Feb 2019 13:43:03 +0000 (08:43 -0500)]
Fix BitOperations using in standalone EventSource build

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/63b850917dd28c7ab08a51954c8799ca5440ea4e

5 years agoFix EventSource StubEnvironment
Jan Kotas [Wed, 27 Feb 2019 06:21:32 +0000 (22:21 -0800)]
Fix EventSource StubEnvironment

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/39c57ad960fe37e265e426d23f3a158c508f672f

5 years agoFix sync.sh syntax error (dotnet/coreclr#22883)
Steve MacLean [Wed, 27 Feb 2019 21:53:08 +0000 (16:53 -0500)]
Fix sync.sh syntax error (dotnet/coreclr#22883)

Commit migrated from https://github.com/dotnet/coreclr/commit/e7289a7c8f9c1fcc9d6fa4c9d4954cdbf5ba4acc

5 years ago[Test fix] Test failure: tracing_eventsource._eventpipeandetw_eventpipeandetw_eventpi...
José Rivero [Wed, 27 Feb 2019 21:46:54 +0000 (13:46 -0800)]
[Test fix] Test failure: tracing_eventsource._eventpipeandetw_eventpipeandetw_eventpipeandetw_/_eventpipeandetw_eventpipeandetw_eventpipeandetw_cmd (dotnet/coreclr#22870)

- Fixes dotnet/coreclr#19302

Commit migrated from https://github.com/dotnet/coreclr/commit/95207c60d472047aeb1688d04f23b77216aafeae

5 years agoDisabling runtimeeventsource to unblock official build. (dotnet/coreclr#22899)
José Rivero [Wed, 27 Feb 2019 21:41:45 +0000 (13:41 -0800)]
Disabling runtimeeventsource to unblock official build. (dotnet/coreclr#22899)

- Related failures: dotnet/coreclr#18907, dotnet/coreclr#19340, dotnet/coreclr#22441, dotnet/coreclr#22729.

Commit migrated from https://github.com/dotnet/coreclr/commit/1ca41721bf335d0ef21612fe5907854e8f24ecad

5 years agoDisabling windows event log test till further investigation on frequent failures...
Sung Yoon Whang [Wed, 27 Feb 2019 21:34:36 +0000 (13:34 -0800)]
Disabling windows event log test till further investigation on frequent failures (dotnet/coreclr#22889)

Commit migrated from https://github.com/dotnet/coreclr/commit/70b477b41fc7df148c7627886380a31053dbd5ae

5 years agoFixing hwintrinsicArm64 to return nullptr for the Base_As intrinsics if featureSimd...
Tanner Gooding [Wed, 27 Feb 2019 20:14:00 +0000 (12:14 -0800)]
Fixing hwintrinsicArm64 to return nullptr for the Base_As intrinsics if featureSimd is false (dotnet/coreclr#22831)

Commit migrated from https://github.com/dotnet/coreclr/commit/5c95e296a3f67d6d04146f455fe364e2fd9e9ddc

5 years agoFix Thread-related breaking changes
Stephen Toub [Wed, 27 Feb 2019 19:51:50 +0000 (14:51 -0500)]
Fix Thread-related breaking changes

- Thread.ExecutionContext needs to return ExecutionContext.Capture() to public callers.
- Fix restoring of culture to be inside of the ExecutionContext callback where applicable

Commit migrated from https://github.com/dotnet/coreclr/commit/3042c90aa8ed4bfe56b6f6bc21c4bd93545ee239

5 years agoFix Thread.ExecutionContext breaking change (dotnet/coreclr#22882)
Stephen Toub [Wed, 27 Feb 2019 18:16:11 +0000 (13:16 -0500)]
Fix Thread.ExecutionContext breaking change (dotnet/coreclr#22882)

Its getter is a public API and can't be made internal.

Commit migrated from https://github.com/dotnet/coreclr/commit/12167a75fc494deb8040fa3a04961ca5f10d14aa

5 years agoFix WaitTimeout breaking change (dotnet/coreclr#22881)
Stephen Toub [Wed, 27 Feb 2019 17:40:06 +0000 (12:40 -0500)]
Fix WaitTimeout breaking change (dotnet/coreclr#22881)

WaitHandle.WaitTimeout is a public API.  It can't be made internal.

Commit migrated from https://github.com/dotnet/coreclr/commit/5472a34cc2ffcc4465dfd0ef1a99afefc37df90e

5 years agoRemove BuildTestsAgainstPackages logic
Russ Keldorph [Tue, 26 Feb 2019 19:02:53 +0000 (11:02 -0800)]
Remove BuildTestsAgainstPackages logic

No longer necessary without PipeBuild logic

Commit migrated from https://github.com/dotnet/coreclr/commit/d0c9a5380eec480dcd3b63ac2da46754fd6e5cd1

5 years agoAdd blob feed to dependencies.props (dotnet/coreclr#22857)
Jeremy Koritzinsky [Wed, 27 Feb 2019 06:59:33 +0000 (22:59 -0800)]
Add blob feed to dependencies.props (dotnet/coreclr#22857)

Commit migrated from https://github.com/dotnet/coreclr/commit/39f9e894aa16113c2c0dda1e99ce5dd606bd45a6

5 years agoPreserve Marshal.GetLastWin32Error in SafeHandle.DangerousRelease (dotnet/coreclr...
Jan Kotas [Wed, 27 Feb 2019 06:51:21 +0000 (22:51 -0800)]
Preserve Marshal.GetLastWin32Error in SafeHandle.DangerousRelease (dotnet/coreclr#22871)

Commit migrated from https://github.com/dotnet/coreclr/commit/4e2d07b5f592627530ee5645fd94325f17ee9487

5 years agoMove Thread to shared CoreLib (dotnet/coreclr#22744)
Filip Navara [Wed, 27 Feb 2019 06:48:33 +0000 (07:48 +0100)]
Move Thread to shared CoreLib (dotnet/coreclr#22744)

* Move Thread to shared CoreLib

* Remove all local variables from Thread in shared code

* Remove duplicate checks

* Port back CoreRT changes needed for shared code

* Fix missing culture initialization in ThreadStart()

* Adjust for shared WaitHandle

Commit migrated from https://github.com/dotnet/coreclr/commit/a94826d9aac0eae32c5cc59ad0e013d8dc3e0817