platform/upstream/dotnet/runtime.git
7 years agoFix netci.groovy
Hyeongseok Oh [Tue, 11 Apr 2017 07:47:27 +0000 (16:47 +0900)]
Fix netci.groovy

Fix netci.groovy instead of test script to avoid rebase

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

7 years agoFix CI test error: permission error
Hyeongseok Oh [Tue, 11 Apr 2017 07:12:10 +0000 (16:12 +0900)]
Fix CI test error: permission error

Fix CoreCLR/CoreFX copy order: permission problem

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

7 years ago[Local GC] Move knowledge of the free object method table outside of the GC (dotnet...
Sean Gillespie [Sun, 9 Apr 2017 20:58:29 +0000 (13:58 -0700)]
[Local GC] Move knowledge of the free object method table outside of the GC (dotnet/coreclr#10755)

* [Local GC] Move knowledge of the free object method table outside of the GC

* Revert "[Local GC] Move knowledge of the free object method table outside of the GC"

This reverts commit dotnet/coreclr@02979e5eb12dd44edb2603e16411dd7d7ffc377d.

* Address code review feedback: leave ArrayBase alone, as it should be part of the binary contract between the EE and the GC

* Correct a bad merge

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

7 years agoMove files to shared CoreLib partition (dotnet/coreclr#10830)
Jan Kotas [Sun, 9 Apr 2017 13:55:23 +0000 (06:55 -0700)]
Move files to shared CoreLib partition (dotnet/coreclr#10830)

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

7 years agoUpdate VS2017 'Individual Components' install info (dotnet/coreclr#10695)
Joseph Tremoulet [Sun, 9 Apr 2017 06:50:02 +0000 (02:50 -0400)]
Update VS2017 'Individual Components' install info (dotnet/coreclr#10695)

A few small changes to make it easier to compare selections in the
installer UI against the list in the doc:

 - Re-order the list to match the order presented in the installer UI
 - Place the individual items under groupings matching the installer
 - Change casing to match installer UI

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

7 years agoDelete reference to model.xml since it no longer exists (dotnet/coreclr#10827)
Jan Kotas [Sun, 9 Apr 2017 05:12:22 +0000 (22:12 -0700)]
Delete reference to model.xml since it no longer exists (dotnet/coreclr#10827)

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

7 years agoFix the broken link in contributing.md (dotnet/coreclr#10828)
Jim Ma [Sun, 9 Apr 2017 03:43:12 +0000 (11:43 +0800)]
Fix the broken link in contributing.md (dotnet/coreclr#10828)

The List.cs link is broken in contributing.md. This PR updates the link to List.cs accordingly.

Fix dotnet/coreclr#10822

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

7 years agoMerge pull request dotnet/coreclr#10776 from sdmaclea/PR-ARM64-CpBlkUnroll
Bruce Forstall [Sun, 9 Apr 2017 03:23:52 +0000 (20:23 -0700)]
Merge pull request dotnet/coreclr#10776 from sdmaclea/PR-ARM64-CpBlkUnroll

[Arm64] Enable cpblk loop unrolling

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

7 years agoMerge pull request dotnet/coreclr#10736 from sdmaclea/PR-ARM64-GC-genLeaInstruction
Bruce Forstall [Sun, 9 Apr 2017 03:23:34 +0000 (20:23 -0700)]
Merge pull request dotnet/coreclr#10736 from sdmaclea/PR-ARM64-GC-genLeaInstruction

[Arm64] Fix GC Hole in genLeaInstruction

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

7 years agoFix corerun issue when loaded from PATH (dotnet/coreclr#10745)
Hadi Brais [Sat, 8 Apr 2017 19:24:23 +0000 (00:54 +0530)]
Fix corerun issue when loaded from PATH (dotnet/coreclr#10745)

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

7 years agoUse a monotonic clock for test timing (dotnet/coreclr#10812)
Alex Perovich [Sat, 8 Apr 2017 19:24:01 +0000 (14:24 -0500)]
Use a monotonic clock for test timing (dotnet/coreclr#10812)

Fixes dotnet/coreclr#8348

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

7 years agoHandle SIGTERM on OSX (dotnet/coreclr#10723)
Koundinya Veluri [Sat, 8 Apr 2017 19:23:33 +0000 (12:23 -0700)]
Handle SIGTERM on OSX (dotnet/coreclr#10723)

* Handle SIGTERM on OSX

Fixes dotnet/coreclr#7394

* Address feedback

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

7 years agoExit gracefully when running ildasm -nat against unsupported ni file. (dotnet/coreclr...
Jim Ma [Sat, 8 Apr 2017 16:43:47 +0000 (00:43 +0800)]
Exit gracefully when running ildasm -nat against unsupported ni file. (dotnet/coreclr#10821)

ildasm -nat only works for fragile native images (ie CoreLib only by default).
Running ildasm -nat against unsupported native images would cause a segmentation fault. This PR checks pNativeHeader->Signature == CORCOMPILE_SIGNATURE and end the program with a meaningful error message.

fix dotnet/coreclr#10247

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

7 years agoMerge pull request dotnet/coreclr#10811 from BruceForstall/RemoveRELOC_SUPPORT
Bruce Forstall [Sat, 8 Apr 2017 15:37:44 +0000 (08:37 -0700)]
Merge pull request dotnet/coreclr#10811 from BruceForstall/RemoveRELOC_SUPPORT

Remove RELOC_SUPPORT define

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

7 years ago[Local GC] Fix some interface violations (dotnet/coreclr#10817)
Sean Gillespie [Sat, 8 Apr 2017 06:59:00 +0000 (23:59 -0700)]
[Local GC] Fix some interface violations (dotnet/coreclr#10817)

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

7 years agoMerge pull request dotnet/corertdotnet/coreclr#3262 from dotnet/nmirror
Jan Kotas [Fri, 7 Apr 2017 23:49:04 +0000 (16:49 -0700)]
Merge pull request dotnet/corertdotnet/coreclr#3262 from dotnet/nmirror

Merge nmirror to master

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

7 years agoFind & replace Exception.SetErrorCode with Exception.HResult setter (dotnet/coreclr...
Jan Kotas [Fri, 7 Apr 2017 23:49:58 +0000 (16:49 -0700)]
Find & replace Exception.SetErrorCode with Exception.HResult setter (dotnet/coreclr#10810)

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

7 years agoMerge pull request dotnet/coreclr#10757 from adityamandaleeka/handle_table_local_gc_init
Aditya Mandaleeka [Fri, 7 Apr 2017 22:02:53 +0000 (15:02 -0700)]
Merge pull request dotnet/coreclr#10757 from adityamandaleeka/handle_table_local_gc_init

[Local GC] Move handle creation to IGCHandleTable

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

7 years agoMove OBJECTHANDLE definition to gcinterface.h
Aditya Mandaleeka [Fri, 7 Apr 2017 01:11:57 +0000 (18:11 -0700)]
Move OBJECTHANDLE definition to gcinterface.h

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

7 years agoAdd creation of special handle types to IGCHandleTable.
Aditya Mandaleeka [Thu, 6 Apr 2017 02:31:32 +0000 (19:31 -0700)]
Add creation of special handle types to IGCHandleTable.

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

7 years agoAdd System.Runtime.CompilerServices.ReadOnlyAttribute (dotnet/coreclr#10777)
Omar Tawfik [Fri, 7 Apr 2017 21:48:09 +0000 (14:48 -0700)]
Add System.Runtime.CompilerServices.ReadOnlyAttribute (dotnet/coreclr#10777)

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

7 years agoTemporarily disable symweb indexing (dotnet/coreclr#10807)
Davis Goodin [Fri, 7 Apr 2017 21:38:02 +0000 (16:38 -0500)]
Temporarily disable symweb indexing (dotnet/coreclr#10807)

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

7 years agoRemove RELOC_SUPPORT define
Bruce Forstall [Fri, 7 Apr 2017 21:18:26 +0000 (14:18 -0700)]
Remove RELOC_SUPPORT define

It's always defined, is always expected to be defined, and the build
doesn't work without it.

Also remove unused `SECURITY_CHECK` and `VERIFY_IMPORTER` defines.

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

7 years agoStrip out unused reg code. (dotnet/coreclr#10741)
Jeremy Kuhne [Fri, 7 Apr 2017 21:21:47 +0000 (14:21 -0700)]
Strip out unused reg code. (dotnet/coreclr#10741)

* Strip out unused reg code.

Removing the unused code to better be able to audit our CoreLib usage and to prepare for targeted code sharing with CoreFX. Wraps key usages in using statements.

* Fix static init and remove Contract

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

7 years agoMerge pull request dotnet/coreclr#10806 from wtgodbe/portableMac
William Godbe [Fri, 7 Apr 2017 20:46:11 +0000 (13:46 -0700)]
Merge pull request dotnet/coreclr#10806 from wtgodbe/portableMac

Publish portable OSX binaries into separate container in pipeline

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

7 years agoDelete moved file
Jan Kotas [Fri, 7 Apr 2017 18:38:02 +0000 (11:38 -0700)]
Delete moved file

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

7 years agoMerge pull request dotnet/corertdotnet/coreclr#3247 from dotnet/nmirror
Jan Kotas [Fri, 7 Apr 2017 15:34:41 +0000 (08:34 -0700)]
Merge pull request dotnet/corertdotnet/coreclr#3247 from dotnet/nmirror

Merge nmirror to master

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

7 years agoUsing AsSpan since we no longer have slice on string. Renaming Tests. (dotnet/coreclr...
Ahson Ahmed Khan [Fri, 7 Apr 2017 20:05:29 +0000 (13:05 -0700)]
Using AsSpan since we no longer have slice on string. Renaming Tests. (dotnet/coreclr#10758)

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

7 years agoMerge pull request dotnet/coreclr#10799 from sdmaclea/PR-Fix-lvRegister-assert
Bruce Forstall [Fri, 7 Apr 2017 19:54:00 +0000 (12:54 -0700)]
Merge pull request dotnet/coreclr#10799 from sdmaclea/PR-Fix-lvRegister-assert

Correct assert w.r.t meaning of lvRegister

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

7 years agoPublish portable OSX binaries into separate container in pipeline
wtgodbe [Fri, 7 Apr 2017 19:47:22 +0000 (12:47 -0700)]
Publish portable OSX binaries into separate container in pipeline

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

7 years agoMove public ThreadAbortException back to CoreLib (dotnet/coreclr#10801)
Jan Kotas [Fri, 7 Apr 2017 18:31:03 +0000 (11:31 -0700)]
Move public ThreadAbortException back to CoreLib (dotnet/coreclr#10801)

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

7 years agoUpdate CoreClr, CoreFx to preview1-25207-02, preview1-25205-01, respectively (dotnet...
dotnet bot [Fri, 7 Apr 2017 18:20:52 +0000 (11:20 -0700)]
Update CoreClr, CoreFx to preview1-25207-02, preview1-25205-01, respectively (dotnet/coreclr#10787)

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

7 years agoAddress dotnet/coreclr#10799 comments
Steve MacLean, Qualcomm Datacenter Technologies, Inc [Fri, 7 Apr 2017 18:16:11 +0000 (18:16 +0000)]
Address dotnet/coreclr#10799 comments

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

7 years agoMerge pull request dotnet/coreclr#10656 from hseok-oh/ryujit/fix_10654
Bruce Forstall [Fri, 7 Apr 2017 18:09:16 +0000 (11:09 -0700)]
Merge pull request dotnet/coreclr#10656 from hseok-oh/ryujit/fix_10654

[RyuJIT/ARM32] [ReadyToRun] Fix target register for invocation to Thunk

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

7 years agoMerge pull request dotnet/coreclr#10781 from rartemev/ilasm_path_length_fix
Roman Artemev [Fri, 7 Apr 2017 18:09:02 +0000 (11:09 -0700)]
Merge pull request dotnet/coreclr#10781 from rartemev/ilasm_path_length_fix

Changes for dotnet/coreclr#9757 issue. Handle long parameters in the right way.

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

7 years agoMerge pull request dotnet/coreclr#10704 from wtgodbe/BuildDefs
William Godbe [Fri, 7 Apr 2017 17:45:37 +0000 (10:45 -0700)]
Merge pull request dotnet/coreclr#10704 from wtgodbe/BuildDefs

Initial commit of checked in build definitions for CoreCLR

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

7 years ago[Arm64] Use ldp/stp in CpBlkUnroll
Steve MacLean, Qualcomm Datacenter Technologies, Inc [Fri, 7 Apr 2017 15:10:42 +0000 (15:10 +0000)]
[Arm64] Use ldp/stp in CpBlkUnroll

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

7 years agoMerge pull request dotnet/coreclr#10798 from adiaaida/fixjit32Perf
Michelle McDaniel [Fri, 7 Apr 2017 17:02:04 +0000 (10:02 -0700)]
Merge pull request dotnet/coreclr#10798 from adiaaida/fixjit32Perf

Fix jit32 Perf testing

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

7 years agoDelete duplicate files and fix build breaks
Jan Kotas [Fri, 7 Apr 2017 13:29:10 +0000 (06:29 -0700)]
Delete duplicate files and fix build breaks

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

7 years agoMerge pull request dotnet/corertdotnet/coreclr#3243 from dotnet/nmirror
Jan Kotas [Fri, 7 Apr 2017 06:54:36 +0000 (23:54 -0700)]
Merge pull request dotnet/corertdotnet/coreclr#3243 from dotnet/nmirror

Merge nmirror to master

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

7 years agoAddress review feedback
Steve MacLean, Qualcomm Datacenter Technologies, Inc [Fri, 7 Apr 2017 15:10:33 +0000 (15:10 +0000)]
Address review feedback

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

7 years agoCorrect assert w.r.t meaning of lvRegister
Steve MacLean, Qualcomm Datacenter Technologies, Inc [Fri, 7 Apr 2017 12:51:18 +0000 (12:51 +0000)]
Correct assert w.r.t meaning of lvRegister

Per recomendation of Pat Gavlin in dotnet/coreclr#9898

Fixes dotnet/coreclr#9898

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

7 years agoFix jit32 Perf testing
Michelle McDaniel [Fri, 7 Apr 2017 15:45:30 +0000 (08:45 -0700)]
Fix jit32 Perf testing

In the CI, we were moving compatjit.dll into the Products directory
instead of the core_root directory, so the jit32 compatjit.dll was not
being picked up by the build. This change moves the nuget logic to before
we run runtest.cmd generatelayoutonly, so the jit32 compatjit.dll will be
moved to the core_root directory along with everything else.

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

7 years agoHandle unsupported varargs tests on Unix gracefully. (dotnet/coreclr#10794)
Jim Ma [Fri, 7 Apr 2017 15:33:21 +0000 (23:33 +0800)]
Handle unsupported varargs tests on Unix gracefully. (dotnet/coreclr#10794)

Some of mcc_i* tests caused segmentation faults on Unix. This commit make these tests exit by throwing a System.EntryPointNotFoundException exception instead of causing a segmentation fault.

Fix dotnet/coreclr#9530

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

7 years agoBring back DefaultDllImportSearchPathsAttribute (dotnet/coreclr#10786)
Yi Zhang (CLR) [Fri, 7 Apr 2017 14:29:10 +0000 (07:29 -0700)]
Bring back DefaultDllImportSearchPathsAttribute (dotnet/coreclr#10786)

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

7 years agoAdd reporting swap file size to GlobalMemoryStatusEx on Unix (dotnet/coreclr#10700)
Jan Vorlicek [Fri, 7 Apr 2017 13:35:34 +0000 (15:35 +0200)]
Add reporting swap file size to GlobalMemoryStatusEx on Unix (dotnet/coreclr#10700)

The swap file size reporting is added using the Linux, OSX and FreeBSD
means. Also a new PAL test was added to exercise the function.

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

7 years agoDelete duplicate files and fix build breaks
Jan Kotas [Fri, 7 Apr 2017 04:00:36 +0000 (21:00 -0700)]
Delete duplicate files and fix build breaks

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

7 years agoMerge pull request dotnet/corertdotnet/coreclr#3226 from dotnet/nmirror
Simon Nattress [Fri, 7 Apr 2017 01:02:03 +0000 (18:02 -0700)]
Merge pull request dotnet/corertdotnet/coreclr#3226 from dotnet/nmirror

Merge nmirror to master

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

7 years agoCall custom parameterless constructor on structs through Activator (dotnet/coreclr...
Koundinya Veluri [Fri, 7 Apr 2017 06:51:13 +0000 (23:51 -0700)]
Call custom parameterless constructor on structs through Activator (dotnet/coreclr#10778)

Fixes dotnet/coreclr#6843
- Disabled caching struct types that have custom parameterless constructors in `ActivatorCache`
- Removed some things relevant to security, which don't apply to CoreCLR

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

7 years agoremove fedora 23 (dotnet/coreclr#10725)
Dan Moseley [Fri, 7 Apr 2017 04:28:14 +0000 (21:28 -0700)]
remove fedora 23 (dotnet/coreclr#10725)

* remove fedora 23

* Fedora rename

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

7 years agoNS2.0 Prepare FileNotFoundException for move to shared partition. (dotnet/coreclr...
Atsushi Kanamori [Fri, 7 Apr 2017 02:33:50 +0000 (19:33 -0700)]
NS2.0 Prepare FileNotFoundException for move to shared partition. (dotnet/coreclr#10775)

* String->string - get rid of the big comment block.

* Fields into autoprops.

* FullName => ToString() to avoid MME problems on N.

* Remove SecurityException guard around FusionLog

* Split off the parts we don't want to share.

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

7 years agoMerge pull request dotnet/corertdotnet/coreclr#3216 from dotnet/nmirror
Michal Strehovský [Wed, 5 Apr 2017 18:25:20 +0000 (11:25 -0700)]
Merge pull request dotnet/corertdotnet/coreclr#3216 from dotnet/nmirror

Merge nmirror to master

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

7 years agoMerge pull request dotnet/coreclr#10784 from briansull/ibc-shutdown-fix
Brian Sullivan [Fri, 7 Apr 2017 02:13:35 +0000 (19:13 -0700)]
Merge pull request dotnet/coreclr#10784 from briansull/ibc-shutdown-fix

Fix shutdown A/V issue when IBC logging with the Music Store app

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

7 years agoDevirtualizable default encoding (dotnet/coreclr#10783)
Ben Adams [Fri, 7 Apr 2017 02:05:18 +0000 (03:05 +0100)]
Devirtualizable default encoding (dotnet/coreclr#10783)

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

7 years agodon't switch to COOP GC when logging CCW ref count (dotnet/coreclr#10756)
Yi Zhang (CLR) [Fri, 7 Apr 2017 01:36:22 +0000 (18:36 -0700)]
don't switch to COOP GC when logging CCW ref count (dotnet/coreclr#10756)

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

7 years agoUse _TARGET_ARMARCH_
Hyeongseok Oh [Fri, 7 Apr 2017 01:33:54 +0000 (10:33 +0900)]
Use _TARGET_ARMARCH_

Chagne _TARGET_ARM_ and _TARGET_ARM64_ to _TARGET_ARMARCH_

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

7 years agoFix shutdown A/V issue when IBC logging with the Music Store app
Brian Sullivan [Fri, 7 Apr 2017 00:36:15 +0000 (17:36 -0700)]
Fix shutdown A/V issue when IBC logging with the Music Store app

This app continues to run managed code on other threads after the Main thread exits and enters shutdown.
We now block IBC logging during the time that we are writing out the IBC data.

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

7 years agoUpdate ILLink build scripts
Swaroop Sridhar [Wed, 5 Apr 2017 01:38:17 +0000 (18:38 -0700)]
Update ILLink build scripts

Update ILLINK build commands to reflect current CoreBuild of ILLinker.
Also remove the line that sets DoNotEmbedDescriptors,
since it is no longer necessary.

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

7 years agoCorrect fix for long ilasm params
Roman Artemev [Thu, 6 Apr 2017 22:54:03 +0000 (15:54 -0700)]
Correct fix for long ilasm params

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

7 years agoFix formating
Steve MacLean, Qualcomm Datacenter Technologies, Inc [Thu, 6 Apr 2017 21:56:08 +0000 (21:56 +0000)]
Fix formating

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

7 years agoMerge pull request dotnet/coreclr#10768 from mskvortsov/ryujit-arm32-lea
Bruce Forstall [Thu, 6 Apr 2017 21:40:08 +0000 (14:40 -0700)]
Merge pull request dotnet/coreclr#10768 from mskvortsov/ryujit-arm32-lea

[RyuJIT/ARM32] Update genLeaInstruction

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

7 years ago[Arm64] Enable cpblk loop unrolling
Steve MacLean, Qualcomm Datacenter Technologies, Inc [Thu, 6 Apr 2017 17:58:14 +0000 (17:58 +0000)]
[Arm64] Enable cpblk loop unrolling

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

7 years agoAdd views for the jitstress and illink folders (dotnet/coreclr#10773)
Matt Mitchell [Thu, 6 Apr 2017 20:54:23 +0000 (13:54 -0700)]
Add views for the jitstress and illink folders (dotnet/coreclr#10773)

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

7 years agoInitial commit of checked in build definitions for CoreCLR
wtgodbe [Tue, 4 Apr 2017 18:52:59 +0000 (11:52 -0700)]
Initial commit of checked in build definitions for CoreCLR

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

7 years agoMake Encoding.Default return UTF8 without BOM emission (dotnet/coreclr#10747)
Tarek Mahmoud Sayed [Thu, 6 Apr 2017 19:58:17 +0000 (12:58 -0700)]
Make Encoding.Default return UTF8 without BOM emission (dotnet/coreclr#10747)

* Make Encoding.Default return UTF8 without BOM emission

* Remove SL reference in the code

* Remove the static cache

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

7 years agoMerge pull request dotnet/coreclr#10697 from sdmaclea/PR-FIX-RUNTEST
Bruce Forstall [Thu, 6 Apr 2017 18:29:42 +0000 (11:29 -0700)]
Merge pull request dotnet/coreclr#10697 from sdmaclea/PR-FIX-RUNTEST

Do not use declare -A

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

7 years agoMerge pull request dotnet/coreclr#9086 from mikedn/simd-cast
Bruce Forstall [Thu, 6 Apr 2017 18:26:37 +0000 (11:26 -0700)]
Merge pull request dotnet/coreclr#9086 from mikedn/simd-cast

Add Vector.op_Explicit tests

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

7 years agoRevert EncodingForwarder for the sake of the Perf (dotnet/coreclr#10740)
Tarek Mahmoud Sayed [Thu, 6 Apr 2017 17:11:21 +0000 (10:11 -0700)]
Revert EncodingForwarder for the sake of the Perf (dotnet/coreclr#10740)

* Revert EncodingForwarder for the sake of the Perf

* Add missing optimization

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

7 years ago[x86/Linux] PAL test in CI build (dotnet/coreclr#10688)
Hyeongseok Oh [Thu, 6 Apr 2017 16:23:13 +0000 (01:23 +0900)]
[x86/Linux] PAL test in CI build (dotnet/coreclr#10688)

* [x86/Linux] PAL test in CI build

Add PAL test in CI x86/Linux build
Change docker image: including rootfs

* Fix netci.groovy

Add PAL test's result

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

7 years ago[ARM/CI] Update image for armel Tizen CI (dotnet/coreclr#10730)
Hyung-Kyu Choi [Thu, 6 Apr 2017 16:22:53 +0000 (01:22 +0900)]
[ARM/CI] Update image for armel Tizen CI (dotnet/coreclr#10730)

Update image for armel CI to sync with Tizen rootfs

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/cd67f7ada2e2796472a0ba32d336744eceb67345

7 years agoRyuJIT/ARM32: update GT_LEA codegen
Mikhail Skvortcov [Thu, 6 Apr 2017 15:53:15 +0000 (18:53 +0300)]
RyuJIT/ARM32: update GT_LEA codegen

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

7 years agoMerge pull request dotnet/coreclr#10742 from BruceForstall/RemoveUnusedDefine
Bruce Forstall [Thu, 6 Apr 2017 15:52:42 +0000 (08:52 -0700)]
Merge pull request dotnet/coreclr#10742 from BruceForstall/RemoveUnusedDefine

Remove unused PREDICT_REG_RER_INDIRECT_PARAM define

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

7 years agoMerge pull request dotnet/coreclr#10752 from BruceForstall/FixBBFformatting
Bruce Forstall [Thu, 6 Apr 2017 15:52:24 +0000 (08:52 -0700)]
Merge pull request dotnet/coreclr#10752 from BruceForstall/FixBBFformatting

Clean up block.h formatting

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

7 years agoClean up and prepare FileLoadException.cs for move to Shared Partition. (dotnet/corec...
Atsushi Kanamori [Thu, 6 Apr 2017 14:45:58 +0000 (07:45 -0700)]
Clean up and prepare FileLoadException.cs for move to Shared Partition. (dotnet/coreclr#10764)

* String => string

* Replace fields with autoprops.

* Turn Type.FullName call to Type.ToString() in ToString().

Avoids MissingMetadataExceptions on CoreRT.

Assuming metadata exists, ToString() and FullName()
still generates the same string except in the weird
case where an app subclasses FileLoadException
with a generic exception type - in which case,
the ToString() version is actually more readable.

* Get rid of useless try-catch around FusionLog calls.

FusionLog is now just a normal property and an answer
to a trivia question - it won't throw SecurityException.

* Get rid of low-value SetMessageField() middleman.

* Split off the stuff we don't want to share.

* The complementary carwash...

* Don't conditionalize FusionLog serialization.

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

7 years agoModify THUNK_PARAM generated in SaveWork
Hyeongseok Oh [Thu, 6 Apr 2017 08:56:58 +0000 (17:56 +0900)]
Modify THUNK_PARAM generated in SaveWork

- Use parameter r4 to pass Indirection from code generated by R2R
- Define REG_R2R_INDIRECT_PARAM in ARM32 to merge with ARM64 routine

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

7 years ago[x86/Linux] Clean up ZapUnwindData (dotnet/coreclr#10750)
Jonghyun Park [Thu, 6 Apr 2017 09:51:19 +0000 (18:51 +0900)]
[x86/Linux] Clean up ZapUnwindData (dotnet/coreclr#10750)

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

7 years agoAdd Vector.op_Explicit tests
Mike Danes [Tue, 24 Jan 2017 16:49:16 +0000 (18:49 +0200)]
Add Vector.op_Explicit tests

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

7 years ago[Local GC] Fix a bad merge (dotnet/coreclr#10748)
Sean Gillespie [Thu, 6 Apr 2017 05:20:35 +0000 (22:20 -0700)]
[Local GC] Fix a bad merge (dotnet/coreclr#10748)

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

7 years agoMove handle table stuff out of gcheaputilities.
Aditya Mandaleeka [Wed, 5 Apr 2017 23:55:30 +0000 (16:55 -0700)]
Move handle table stuff out of gcheaputilities.

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

7 years agoreplace the linear time algorithm from lclvars with the constant one. (dotnet/coreclr...
Sergey Andreenko [Thu, 6 Apr 2017 02:00:43 +0000 (19:00 -0700)]
replace the linear time algorithm from lclvars with the constant one. (dotnet/coreclr#10401)

add new block flag DOMINATED_BY_NOT_NORMAL_ENTRY

It allows to answer the question: "Is block dominated by non normal
entry" - in O(1).

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

7 years agogtLdftnResolvedToken is no longer necessary, because token is saved on the stack...
Sergey Andreenko [Thu, 6 Apr 2017 01:23:19 +0000 (18:23 -0700)]
gtLdftnResolvedToken is no longer necessary, because token is saved on the stack. (dotnet/coreclr#10738)

The was an error in the assert because I checked pointers that were
obvious different.
The actual values could not be different because they are created from
the same token in the same place (importer.cpp DO_LDFTN:
impMethodPointer saved resolvedToken as gtLdftnResolvedToken ,
CORINFO_RESOLVED_TOKEN* heapToken = impAllocateToken(resolvedToken);
impPushOnStack(op1, typeInfo(heapToken)); saved the token on the stack.

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

7 years ago[x86/Linux] 16-byte aligned HelperMethodFrameRestoreState (dotnet/coreclr#10720)
Jonghyun Park [Thu, 6 Apr 2017 00:36:37 +0000 (09:36 +0900)]
[x86/Linux] 16-byte aligned HelperMethodFrameRestoreState (dotnet/coreclr#10720)

* [x86/Linux] 16-byte aligned HelperMethodFrameRestoreState

* Use STACK_ALIGN_PADDING and update comment

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

7 years agoClean up block.h formatting
Bruce Forstall [Thu, 6 Apr 2017 00:09:29 +0000 (17:09 -0700)]
Clean up block.h formatting

Hide a few things from clang-format

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

7 years agoAdd handle creation functionality to IGCHandleTable and make VM code use it.
Aditya Mandaleeka [Wed, 5 Apr 2017 22:14:44 +0000 (15:14 -0700)]
Add handle creation functionality to IGCHandleTable and make VM code use it.

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

7 years agoMerge pull request dotnet/coreclr#10724 from mikedn/small-type-xchg
Bruce Forstall [Wed, 5 Apr 2017 23:28:16 +0000 (16:28 -0700)]
Merge pull request dotnet/coreclr#10724 from mikedn/small-type-xchg

Use the correct type for interlocked instructions

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

7 years agoMerge pull request dotnet/coreclr#10615 from brianrob/profiler
Brian Robbins [Wed, 5 Apr 2017 23:21:39 +0000 (16:21 -0700)]
Merge pull request dotnet/coreclr#10615 from brianrob/profiler

Cross-Platform Sample-Based Profiler

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

7 years agoMerge pull request dotnet/coreclr#10739 from wtgodbe/GroovyFedora
William Godbe [Wed, 5 Apr 2017 22:37:40 +0000 (15:37 -0700)]
Merge pull request dotnet/coreclr#10739 from wtgodbe/GroovyFedora

Add Fedora24 to CI

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

7 years agoRemove unused PREDICT_REG_RER_INDIRECT_PARAM define
Bruce Forstall [Wed, 5 Apr 2017 22:20:07 +0000 (15:20 -0700)]
Remove unused PREDICT_REG_RER_INDIRECT_PARAM define

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

7 years ago[Local GC] Pull some logic using SystemDomain::System out of the GC (dotnet/coreclr...
Sean Gillespie [Wed, 5 Apr 2017 21:40:42 +0000 (14:40 -0700)]
[Local GC] Pull some logic using SystemDomain::System out of the GC (dotnet/coreclr#10670)

* [Local GC] Pull some logic using SystemDomain::System out of the GC

* Address code review feedback: add comment about this (per the GitHub discussion) and rename API to ForceFullGCToBeBlocking

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

7 years agoMerge pull request dotnet/coreclr#10727 from hqueue/typo/doc_ryujit
Aditya Mandaleeka [Wed, 5 Apr 2017 21:38:39 +0000 (14:38 -0700)]
Merge pull request dotnet/coreclr#10727 from hqueue/typo/doc_ryujit

Fix class name in ryujit-overview.md

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

7 years agoFix formatting
Steve MacLean, Qualcomm Datacenter Technologies, Inc [Wed, 5 Apr 2017 21:27:03 +0000 (21:27 +0000)]
Fix formatting

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

7 years agoMerge pull request dotnet/coreclr#10211 from sdmaclea/PR-ARM64-CROSSGEN-DISCONTIG
Jarret Shook [Wed, 5 Apr 2017 20:28:44 +0000 (13:28 -0700)]
Merge pull request dotnet/coreclr#10211 from sdmaclea/PR-ARM64-CROSSGEN-DISCONTIG

[Arm64] Simplify trackedStackPtrsContig logic

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

7 years agoAdd Fedora24 to CI
wtgodbe [Wed, 5 Apr 2017 19:36:59 +0000 (12:36 -0700)]
Add Fedora24 to CI

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

7 years ago[Arm64] Fix GC Hole in genLeaInstruction
Steve MacLean, Qualcomm Datacenter Technologies, Inc [Wed, 5 Apr 2017 16:43:54 +0000 (16:43 +0000)]
[Arm64] Fix GC Hole in genLeaInstruction

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

7 years agoFix registry name enumeration (dotnet/coreclr#10711)
Jeremy Kuhne [Wed, 5 Apr 2017 17:51:25 +0000 (10:51 -0700)]
Fix registry name enumeration (dotnet/coreclr#10711)

1. Values can be removed after we've gotten the count
2. Allocations for names were  over 32K * enum call + 32K.

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

7 years ago[Local GC] Move Weak Reference finalization out of the GC (dotnet/coreclr#10676)
Sean Gillespie [Wed, 5 Apr 2017 16:57:50 +0000 (09:57 -0700)]
[Local GC] Move Weak Reference finalization out of the GC (dotnet/coreclr#10676)

* [Local GC] Move Weak Reference finalization out of the GC

* Address two issues:
  1) Use GetGCSafeMethodTable instead of GetMethodTable, so that the
     mark bit is correctly masked off the object's method table pointer,
  2) Address code review feedback by re-inserting a missed call to
     GetCanonicalMethodTable and rename the new API to EagerFinalized to
     better illustrate its broader purpose.

* Repair the GC sample

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

7 years agoMerge pull request dotnet/coreclr#10574 from JosephTremoulet/FixTestProjectPath
Joseph Tremoulet [Wed, 5 Apr 2017 16:40:27 +0000 (12:40 -0400)]
Merge pull request dotnet/coreclr#10574 from JosephTremoulet/FixTestProjectPath

Fix path to CoreCLRTestLibrary from SizeConstTest

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

7 years agoFix ThrowExceptionFromContextInternal for x86 Linux (dotnet/coreclr#10728)
Jan Vorlicek [Wed, 5 Apr 2017 15:45:55 +0000 (17:45 +0200)]
Fix ThrowExceptionFromContextInternal for x86 Linux (dotnet/coreclr#10728)

The function was missing restoring of some callee saved registers
which caused crashes in Checked build and hang in Release build.

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

7 years ago[x86/Linux] Fix build error in nuget packaging (dotnet/coreclr#10691)
Hyeongseok Oh [Wed, 5 Apr 2017 15:15:22 +0000 (00:15 +0900)]
[x86/Linux] Fix build error in nuget packaging (dotnet/coreclr#10691)

* [x86/Linux] Fix build error in nuget packaging

Fix build error in nuget packaging
Modify condition for excluding libcoreclrtraceptprovider.so

* Update runtime.Linux.Microsoft.NETCore.Runtime.CoreCLR.props

Fix typo

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

7 years agoMerge pull request dotnet/coreclr#10112 from pgavlin/gh10106
Pat Gavlin [Wed, 5 Apr 2017 15:14:36 +0000 (08:14 -0700)]
Merge pull request dotnet/coreclr#10112 from pgavlin/gh10106

Only build compatjit.dll when building JIT32.

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