platform/upstream/coreclr.git
7 years agoMerge pull request #12852 from jyoungyun/ryujit/rewrite_the_struct_args_to_be_passed_...
Carol Eidt [Fri, 21 Jul 2017 15:56:43 +0000 (08:56 -0700)]
Merge pull request #12852 from jyoungyun/ryujit/rewrite_the_struct_args_to_be_passed_by_value_on_stack

[RyuJIT/ARM32] Rewrite the stack args to be passed by value on stack

7 years agoMerge pull request #12968 from wateret/fix-gentree-creation
Carol Eidt [Fri, 21 Jul 2017 15:55:33 +0000 (08:55 -0700)]
Merge pull request #12968 from wateret/fix-gentree-creation

[RyuJIT/armel] Fix incorrect GenTree creation

7 years agoAdd CGroup CFS CPU limit support (#12797)
Guillaume B [Fri, 21 Jul 2017 12:08:11 +0000 (14:08 +0200)]
Add CGroup CFS CPU limit support (#12797)

7 years ago[RyuJIT/armel] Fix incorrect GenTree creation
Hanjoung Lee [Fri, 21 Jul 2017 06:03:29 +0000 (15:03 +0900)]
[RyuJIT/armel] Fix incorrect GenTree creation

When we generate a node for GT_PUTARG_REG, it should call gtNewPutArgReg().

7 years agoMoving 'System.Single' and 'System.Double' to the 'System.Private.CoreLib.Shared...
Tanner Gooding [Fri, 21 Jul 2017 05:01:39 +0000 (22:01 -0700)]
Moving 'System.Single' and 'System.Double' to the 'System.Private.CoreLib.Shared' project. (#12967)

7 years ago[Local GC] Refactor usage of GC-internal functions in the DAC (#12458)
Sean Gillespie [Fri, 21 Jul 2017 04:53:46 +0000 (21:53 -0700)]
[Local GC] Refactor usage of GC-internal functions in the DAC (#12458)

* Refactor usage of GC-internal functions in the DAC

* Fix one debugger test failure, one to go

7 years ago[RyuJIT/ARM32] Remove unnecessary GT_ADDR and GT_LCL_VAR_ADDR related code
Jiyoung Yun [Fri, 21 Jul 2017 01:43:14 +0000 (10:43 +0900)]
[RyuJIT/ARM32] Remove unnecessary GT_ADDR and GT_LCL_VAR_ADDR related code

7 years agoFix resources lookup to use satellite assembly resouce lookup inside AppX when the...
Santiago Fernandez Madero [Thu, 20 Jul 2017 23:36:15 +0000 (16:36 -0700)]
Fix resources lookup to use satellite assembly resouce lookup inside AppX when the assembly is Private.Corelib (#12954)

7 years agoMerge pull request #12866 from erozenfeld/12761ILRegressionTest
Eugene Rozenfeld [Thu, 20 Jul 2017 22:08:47 +0000 (15:08 -0700)]
Merge pull request #12866 from erozenfeld/12761ILRegressionTest

Add regression tests for #12761.

7 years agoMerge pull request #12961 from jashook/up_arm64_arm_timeouts
Jarret Shook [Thu, 20 Jul 2017 22:02:47 +0000 (15:02 -0700)]
Merge pull request #12961 from jashook/up_arm64_arm_timeouts

Up arm timeout to arm64 timeout

7 years agoUp arm timeout to arm64 timeout
jashook [Thu, 20 Jul 2017 20:55:20 +0000 (13:55 -0700)]
Up arm timeout to arm64 timeout

7 years agoMerge pull request #12960 from jashook/stop_arm64_default_jobs
Jarret Shook [Thu, 20 Jul 2017 20:46:38 +0000 (13:46 -0700)]
Merge pull request #12960 from jashook/stop_arm64_default_jobs

Add the correct job name and regex to arm64 ubuntu flow jobs

7 years agoMerge pull request #12955 from stephentoub/tryderegister
Stephen Toub [Thu, 20 Jul 2017 20:35:36 +0000 (16:35 -0400)]
Merge pull request #12955 from stephentoub/tryderegister

Fix corefx break due to missing internal method

7 years agoMerge pull request #10496 from sergign60/jitdrop
Noah Falk [Thu, 20 Jul 2017 20:30:31 +0000 (13:30 -0700)]
Merge pull request #10496 from sergign60/jitdrop

Jitted Code Pitching Feature implemented

7 years agoAdd the correct job name and regex to arm64 ubuntu flow jobs
jashook [Thu, 20 Jul 2017 18:59:18 +0000 (11:59 -0700)]
Add the correct job name and regex to arm64 ubuntu flow jobs

This will keep the arm64 ubuntu jobs from being default auto triggered.

7 years agoFix IndexOutOfRangeException in PayloadNames property (#12932)
Vance Morrison [Thu, 20 Jul 2017 18:28:25 +0000 (11:28 -0700)]
Fix IndexOutOfRangeException in PayloadNames property (#12932)

If you pass an null payload using Write<T>, and in the EventListener then call PayloadNames, it
will throw an IndexOutOfRangeException.   It should just return null.   This fixes this.

7 years agoMerge pull request #12945 from pgavlin/FixLstFile
Jarret Shook [Thu, 20 Jul 2017 18:15:24 +0000 (11:15 -0700)]
Merge pull request #12945 from pgavlin/FixLstFile

Fix a couple errors in the ARM32 lst file.

7 years agoFix corefx break due to missing internal method
Stephen Toub [Thu, 20 Jul 2017 17:19:46 +0000 (13:19 -0400)]
Fix corefx break due to missing internal method

System.Runtime.WindowsRuntime uses CancellationTokenRegistration.TryDeregister instead of Dispose to avoid a potential deadlock due to blocking waiting for an in-progress cancellation to complete.  Putting back TryDeregister to unblock corefx until a corresponding public API is exposed for this.

7 years agoMerge pull request #12901 from jashook/arm64_ubuntu_changes
Jarret Shook [Thu, 20 Jul 2017 14:07:36 +0000 (07:07 -0700)]
Merge pull request #12901 from jashook/arm64_ubuntu_changes

Fix auto starting arm64 ubuntu jobs

7 years ago[RyuJIT/ARM32] Remove unnecessary isHfaRegArg check routine
Jiyoung Yun [Thu, 20 Jul 2017 09:01:09 +0000 (18:01 +0900)]
[RyuJIT/ARM32] Remove unnecessary isHfaRegArg check routine

7 years ago[RyuJIT/ARM32] Add a case wrapping GT_OBJ on struct arguments
Jiyoung Yun [Thu, 20 Jul 2017 07:13:24 +0000 (16:13 +0900)]
[RyuJIT/ARM32] Add a case wrapping GT_OBJ on struct arguments

If the struct arguments pass by value on the stack, it should be wrapped in GT_OBJ.

7 years ago[RyuJIT/ARM32] Rewrite the stack args to be passed by value on stack
Jiyoung Yun [Mon, 17 Jul 2017 06:48:56 +0000 (15:48 +0900)]
[RyuJIT/ARM32] Rewrite the stack args to be passed by value on stack

7 years agoFix auto starting arm64 ubuntu jobs
jashook [Wed, 19 Jul 2017 16:48:35 +0000 (09:48 -0700)]
Fix auto starting arm64 ubuntu jobs

7 years agoRemove section headers writing to createdump (#12887)
Mike McLaughlin [Thu, 20 Jul 2017 00:53:05 +0000 (17:53 -0700)]
Remove section headers writing to createdump (#12887)

Issue #12853

7 years agoFix a couple errors in the ARM32 lst file.
Pat Gavlin [Thu, 20 Jul 2017 00:42:10 +0000 (17:42 -0700)]
Fix a couple errors in the ARM32 lst file.

- Remove an entry for a test that has been deleted
- Disable ForeignThreadExceptions against its active bug

7 years agoFix Platform reporting parameters for build pipeline (#12900)
Karthik Rajasekaran [Wed, 19 Jul 2017 22:34:27 +0000 (15:34 -0700)]
Fix Platform reporting parameters for build pipeline (#12900)

7 years agoMerge pull request #12938 from pgavlin/TagGCTests
Pat Gavlin [Wed, 19 Jul 2017 22:04:33 +0000 (15:04 -0700)]
Merge pull request #12938 from pgavlin/TagGCTests

Disable some unreliable GC tests under JIT stress.

7 years agoDisable some unreliable GC tests under JIT stress.
Pat Gavlin [Wed, 19 Jul 2017 21:45:24 +0000 (14:45 -0700)]
Disable some unreliable GC tests under JIT stress.

These tests depend on the JIT not extending lifetimes. This dependency
is frequently unsatisfied when running under JIT stress modes (e.g.
JITStress=1/2 or JITStressRegs=1).

Contributes to #12920, #12923, #12922, and #12921.

7 years agoFix CultureInfo.Parent to avoid throwing and catching (#12916)
Tarek Mahmoud Sayed [Wed, 19 Jul 2017 20:30:36 +0000 (13:30 -0700)]
Fix CultureInfo.Parent to avoid throwing and catching (#12916)

7 years agoMerge pull request #12930 from pgavlin/TagGH11408_ARM32
Pat Gavlin [Wed, 19 Jul 2017 20:23:05 +0000 (13:23 -0700)]
Merge pull request #12930 from pgavlin/TagGH11408_ARM32

Tag the GitHub_11408 test with its bug number.

7 years agoMerge pull request #12928 from pgavlin/TagVerify01Small
Pat Gavlin [Wed, 19 Jul 2017 20:22:48 +0000 (13:22 -0700)]
Merge pull request #12928 from pgavlin/TagVerify01Small

Tag the verify01_small test with its bug number.

7 years agoMerge pull request #12925 from pgavlin/FixScenarioReturnCode
Pat Gavlin [Wed, 19 Jul 2017 20:22:26 +0000 (13:22 -0700)]
Merge pull request #12925 from pgavlin/FixScenarioReturnCode

Fix the SustainedLowLatency/scenario test.

7 years agoMerge pull request #12934 from pgavlin/TagVarargTests
Pat Gavlin [Wed, 19 Jul 2017 20:20:09 +0000 (13:20 -0700)]
Merge pull request #12934 from pgavlin/TagVarargTests

Tag two vararg-related tests with their bug number for ARM.

7 years agoMerge pull request #12931 from jashook/fix_machine_arm32_checked
Jarret Shook [Wed, 19 Jul 2017 20:14:57 +0000 (13:14 -0700)]
Merge pull request #12931 from jashook/fix_machine_arm32_checked

Use the correct machine for arm32 checked jobs

7 years agoTag two vararg-related tests with their bug number for ARM.
Pat Gavlin [Wed, 19 Jul 2017 19:58:49 +0000 (12:58 -0700)]
Tag two vararg-related tests with their bug number for ARM.

These tests are not supported.

Contributes to #12914.

7 years agoUse the correct machine for arm32 checked jobs
jashook [Wed, 19 Jul 2017 19:32:00 +0000 (12:32 -0700)]
Use the correct machine for arm32 checked jobs

7 years agoTag the GitHub_11408 test with its bug number.
Pat Gavlin [Wed, 19 Jul 2017 18:59:09 +0000 (11:59 -0700)]
Tag the GitHub_11408 test with its bug number.

This tests sets `COMPlus_TailCallStress` to `1` before running, which is
not compatible with the ARM32 legacy backend. Tag it with its bug number
for tracking.

Contributes to #12918.

7 years agoTag the verify01_small test with its bug number.
Pat Gavlin [Wed, 19 Jul 2017 18:25:51 +0000 (11:25 -0700)]
Tag the verify01_small test with its bug number.

This test is known to fail on .NET Core due to #4851.

Contributes to #12918.

7 years agoFix the SustainedLowLatency/scenario test.
Pat Gavlin [Wed, 19 Jul 2017 18:03:41 +0000 (11:03 -0700)]
Fix the SustainedLowLatency/scenario test.

This test needs to return 100 to indicate success.

Contributes to #12918 et. al.

7 years agoMerge pull request #12819 from stephentoub/cts_perf
Stephen Toub [Wed, 19 Jul 2017 17:24:47 +0000 (13:24 -0400)]
Merge pull request #12819 from stephentoub/cts_perf

Improve performance of CancellationToken.Register / CancellationTokenRegistration.Dispose

7 years agoMerge pull request #12755 from tannergooding/classify
Eric Mellino [Wed, 19 Jul 2017 17:17:04 +0000 (10:17 -0700)]
Merge pull request #12755 from tannergooding/classify

Floating-Point Classification APIs

7 years agoMerge pull request #12896 from YongseopKim/ryujit/arm32/block_copy_3bytes_struct
Bruce Forstall [Wed, 19 Jul 2017 16:23:15 +0000 (09:23 -0700)]
Merge pull request #12896 from YongseopKim/ryujit/arm32/block_copy_3bytes_struct

[RyuJIT/ARM32] Add block copy for 3bytes struct

7 years agoMerge pull request #12807 from jashook/add_arm32_windows_ci_testing
Jarret Shook [Wed, 19 Jul 2017 16:20:15 +0000 (09:20 -0700)]
Merge pull request #12807 from jashook/add_arm32_windows_ci_testing

Add arm32 ci testing.

7 years agoAdd arm32 ci testing.
jashook [Thu, 13 Jul 2017 22:41:31 +0000 (15:41 -0700)]
Add arm32 ci testing.

Note this will add a new lst file and leverage the old existing arm64
infrastructure.

7 years agoFix errors in MSBuild prperties initialization in System.Private.CoreLib.csproj ...
Jacek Blaszczynski [Wed, 19 Jul 2017 15:36:41 +0000 (17:36 +0200)]
Fix errors in MSBuild prperties initialization in System.Private.CoreLib.csproj (#12356)

Fixes issue #12355

Project System.Private.CoreLib.csproj imports directly Microsoft.Net.Compilers.props
at line# 4 before including dir.props from repo root. $(RepoRoot)/dir.props imports
Microsoft.Net.Compilers.props at line# 186. As a result of this sequence of duplicated
project imports and lack of safeguards against importing the same .props file twice
MSBuild reports that Microsoft.Net.Compilers.props file is included twice with warning
that second import will be ignored - in this case not evaluated. This results
in initialization of Microsoft.Net.Compilers.props values to defaults because MSBuild
evaluates Microsoft.Net.Compilers.props only once before $(RepoRoot)/dir.props are included.
Removing import of Microsoft.Net.Compilers.props from System.Private.CoreLib.csproj
and moving $(RepoRoot)/dir.props file import to top of System.Private.CoreLib.csproj
solves these problems by ensuring expected order of evaluation of Microsoft.Net.Compilers.props
file by MSBuild after all project wide values are initialized in $(RepoRoot)/dir.props.

7 years agoImprove the performance of CancellationToken.Register / CancellationTokenRegistration...
Stephen Toub [Mon, 10 Jul 2017 01:52:29 +0000 (21:52 -0400)]
Improve the performance of CancellationToken.Register / CancellationTokenRegistration.Dispose

CancellationToken.Register currently allocates an object per call.  This PR makes it allocation-free (amortized).

The current implementation was optimized for scalability, using a lock-free algorithm to minimize contention when lots of threads are registering with a token concurrently.  Each registration allocates an object which is then stored into a lock-free sparse array data structure.  But the level of scalability enabled is unnecessary for the vast majority of CancellationToken usage, adds non-trivial complexity to the implementation, and adds costs to the most common usage scenarios, e.g. a single CancellationToken that registered with and the unregistered with repeatedly.

The new implementation strikes a (IMO) better balance between performance and scalability, retaining most of the latter while doing much better for the former in the most interesting use cases.  CancellationTokenSource now maintains an array of partition objects, each of which is lazily-initialized, contains a lock that protects that partition, and contains a linked list of registration objects.  The striped locking helps maintain most of the scalability and also enables node reuse due to not suffering from ABA problems.

(All numbers that follow are 64-bit.)

The size of CancellationTokenSource itself doesn't change (64 bytes), so allocating a CancellationTokenSource and then never registering with its token remains the same in both speed and space.

The size overhead associated with the first registration on a CancellationTokenSource improves.  With the old implementation, the first registration would result in 272 bytes allocated, whereas with the new implementation that shrinks to 218.

Each additional registration at the same time in the CancellationToken is now larger than in the old implementation, 80 bytes instead of ~56 bytes (it varies in the old implementation due to the details of the lock-free algorithm and when new segments are created), but these new node allocations are reusable.  So if you register 100 registrations with the same CancellationToken and don't unregister any of them, you'll incur ~8000 bytes of allocation instead of ~5600, but if you instead register and unregister them 100 times, you'll only incur ~80 bytes of allocation instead of ~5600, with objects reused for the former case but not the latter case.

Speed is also significantly improved.  A single thread registering and unregistering repeatedly from a token is now ~2x the old implementation in throughput.  Similarly with eight threads on eight logical cores all registering/unregistering concurrently.

Finally, the size of CancellationTokenRegistration also shrinks.  This struct is often contained in other classes that have registered with the token, and so will end up shrinking the size of those allocations as well.

7 years agofix issue 12725 (#12728)
Xiangyang (Mark) Guo [Wed, 19 Jul 2017 09:25:54 +0000 (02:25 -0700)]
fix issue 12725 (#12728)

7 years ago[RyuJIT/ARM32] Add block copy for 3bytes struct
Yongseop Kim [Wed, 19 Jul 2017 07:47:29 +0000 (16:47 +0900)]
[RyuJIT/ARM32] Add block copy for 3bytes struct

- Block copy for 3bytes struct(byte,byte,byte)
- Similar to x64's one

7 years agoFix build break - delete unused local
Jan Kotas [Tue, 18 Jul 2017 05:15:39 +0000 (22:15 -0700)]
Fix build break - delete unused local

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
7 years agoMerge pull request #12888 from gsfreema/BotR-fixes
Aditya Mandaleeka [Tue, 18 Jul 2017 23:39:55 +0000 (16:39 -0700)]
Merge pull request #12888 from gsfreema/BotR-fixes

Fixing various typos and links in BotR chapters

7 years agoMerge pull request #12881 from pgavlin/IsUnusedValueHelpers
Pat Gavlin [Tue, 18 Jul 2017 23:03:04 +0000 (16:03 -0700)]
Merge pull request #12881 from pgavlin/IsUnusedValueHelpers

Add helpers to set, clear, and check IsUnusedValue.

7 years agoMissed one empty case in GetPathRoot (#12883)
Jeremy Kuhne [Tue, 18 Jul 2017 22:51:21 +0000 (15:51 -0700)]
Missed one empty case in GetPathRoot (#12883)

This matches our new behavior with whitespace paths

7 years agoFixing various typos and links in BotR chapters
Scott Freeman [Tue, 18 Jul 2017 22:49:02 +0000 (18:49 -0400)]
Fixing various typos and links in BotR chapters

- The fixes are for the Intro to CLR, Garbage Collection, and Threading chapters
- Many links were updated to use relative paths so that users in a different fork/branch are kept within the same fork/branch changes that would break a link will not affect the current branch

7 years agoMerge pull request #12878 from hseok-oh/ryujit/struct_promote1
Bruce Forstall [Tue, 18 Jul 2017 21:50:04 +0000 (14:50 -0700)]
Merge pull request #12878 from hseok-oh/ryujit/struct_promote1

[RyuJIT/ARM32] Block copy for promoted struct argument assign

7 years agoUpdate minidump and debugging doc (#12884)
Mike McLaughlin [Tue, 18 Jul 2017 21:33:53 +0000 (14:33 -0700)]
Update minidump and debugging doc (#12884)

Update debugging doc on loading sos on Windows.

7 years agoAdd helpers to set, clear, and check IsUnusedValue.
Pat Gavlin [Tue, 18 Jul 2017 16:24:26 +0000 (09:24 -0700)]
Add helpers to set, clear, and check IsUnusedValue.

Just what it says on the tin.

7 years agoEncoding code clean up (#12864)
Tarek Mahmoud Sayed [Tue, 18 Jul 2017 20:51:57 +0000 (13:51 -0700)]
Encoding code clean up (#12864)

* Encoding code clean up

This change to clean all the serialization code from the encoding and move the files to the shared folder

* delete DecoderNLS

* re-add DecoderNls with the right casing

* remove bIsMicrosoftBestFitFallback

* Misc fixes per review comments

7 years agoImplementing the floating-point classification APIs for System.Single and System...
Tanner Gooding [Tue, 11 Jul 2017 23:05:57 +0000 (16:05 -0700)]
Implementing the floating-point classification APIs for System.Single and System.Double.

7 years agoMerge pull request #12748 from helloguo/NUMASupportInitialize
Aditya Mandaleeka [Tue, 18 Jul 2017 20:09:07 +0000 (13:09 -0700)]
Merge pull request #12748 from helloguo/NUMASupportInitialize

Fix NUMASupportInitialize

7 years agoMerge pull request #12879 from dotnet-maestro-bot/master-UpdateDependencies
Wes Haggard [Tue, 18 Jul 2017 18:51:59 +0000 (11:51 -0700)]
Merge pull request #12879 from dotnet-maestro-bot/master-UpdateDependencies

Update CoreClr, CoreFx to preview2-25518-01, preview2-25518-02, respectively (master)

7 years agoMerge pull request #12843 from pgavlin/FixEarlyMultiRegCallDumps
Pat Gavlin [Tue, 18 Jul 2017 14:25:29 +0000 (07:25 -0700)]
Merge pull request #12843 from pgavlin/FixEarlyMultiRegCallDumps

Fix issues with early dumps of multi-reg-returning calls.

7 years agoMerge pull request #12635 from hseok-oh/ryujit/remove_split_nyi
Bruce Forstall [Tue, 18 Jul 2017 14:21:51 +0000 (07:21 -0700)]
Merge pull request #12635 from hseok-oh/ryujit/remove_split_nyi

[ARM32] Remove useless code: struct split using float registers

7 years agoPR feedback.
Pat Gavlin [Tue, 18 Jul 2017 13:59:53 +0000 (06:59 -0700)]
PR feedback.

7 years agoUpdate CoreClr, CoreFx to preview2-25518-01, preview2-25518-02, respectively
dotnet-maestro-bot [Tue, 18 Jul 2017 13:17:55 +0000 (13:17 +0000)]
Update CoreClr, CoreFx to preview2-25518-01, preview2-25518-02, respectively

7 years agoMove BitConverter to shared CoreLib partition (#12876)
Jan Kotas [Tue, 18 Jul 2017 12:45:23 +0000 (14:45 +0200)]
Move BitConverter to shared CoreLib partition (#12876)

7 years ago[RyuJIT/ARM32] Block copy for promoted struct argument assign
Hyeongseok Oh [Tue, 18 Jul 2017 11:38:02 +0000 (20:38 +0900)]
[RyuJIT/ARM32] Block copy for promoted struct argument assign

Block copy for promoted struct
Similar implementation as x64 with FEATURE_UNIX_AMD64_STRUCT_PASSING

7 years agoMerge pull request #12874 from wateret/fix-legacy-12869
Bruce Forstall [Tue, 18 Jul 2017 05:43:18 +0000 (22:43 -0700)]
Merge pull request #12874 from wateret/fix-legacy-12869

[LegacyJIT] Fix assert condition for CNS_DBL

7 years agoMerge pull request #12857 from CarolEidt/DumpFixes
Carol Eidt [Tue, 18 Jul 2017 05:03:31 +0000 (22:03 -0700)]
Merge pull request #12857 from CarolEidt/DumpFixes

LSRA & dump cleanup

7 years agoPath whitespace changes. (#12862)
Nina Chikanov [Tue, 18 Jul 2017 04:49:06 +0000 (21:49 -0700)]
Path whitespace changes. (#12862)

* Path whitespace changes.

Change IsNullOrWhitespace to IsNullOrEmpty to be more consistent with legacy desktop .NET code. Path.GetFullPath no longer trims trailing whitespace. (Windows will still eat trailing spaces)

* Fix compilation errors with searchPattern

7 years agoMerge pull request #12872 from hqueue/arm/ryujit/issue_12706
Bruce Forstall [Tue, 18 Jul 2017 04:01:45 +0000 (21:01 -0700)]
Merge pull request #12872 from hqueue/arm/ryujit/issue_12706

[RyuJIT/ARM32] Unassign registers properly at BB entry

7 years ago[LegacyJIT] Fix assert condition for CNS_DBL
Hanjoung Lee [Tue, 18 Jul 2017 03:55:49 +0000 (12:55 +0900)]
[LegacyJIT] Fix assert condition for CNS_DBL

Fix #12869

7 years agoMerge pull request #12870 from dotnet-maestro-bot/master-UpdateDependencies
Stephen Toub [Tue, 18 Jul 2017 03:35:13 +0000 (23:35 -0400)]
Merge pull request #12870 from dotnet-maestro-bot/master-UpdateDependencies

Update CoreClr to preview2-25517-02 (master)

7 years agoMerge pull request #12871 from BruceForstall/Revert12813
Bruce Forstall [Tue, 18 Jul 2017 03:09:29 +0000 (20:09 -0700)]
Merge pull request #12871 from BruceForstall/Revert12813

Revert #12813, which caused #12855

7 years ago[ARM32] Remove useless code: struct split using float registers
Hyeongseok Oh [Tue, 11 Jul 2017 03:12:13 +0000 (12:12 +0900)]
[ARM32] Remove useless code: struct split using float registers

On ARM32, the split struct is using only integer register.
If float registers remain but not enough to pass all HFA struct value,
the HFA struct is passed using stack only.
So we can remove useless code in morph.cpp that is split struct using float registers on ARM32.

7 years ago[RyuJIT/ARM32] Unassign registers properly at BB entry
Hyung-Kyu Choi [Mon, 17 Jul 2017 13:21:32 +0000 (22:21 +0900)]
[RyuJIT/ARM32] Unassign registers properly at BB entry

When unassigning registers that are no longer live
at processBlockStartLocations(), address TYP_DOUBLE intervals properly.

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
7 years agoMerge pull request #12861 from BruceForstall/AllowCnsIntTypeMismatch
Bruce Forstall [Tue, 18 Jul 2017 01:28:35 +0000 (18:28 -0700)]
Merge pull request #12861 from BruceForstall/AllowCnsIntTypeMismatch

Allow CNS_INT type mismatch for ARM

7 years agoRevert #12813, which caused #12855
Bruce Forstall [Tue, 18 Jul 2017 01:16:47 +0000 (18:16 -0700)]
Revert #12813, which caused #12855

7 years agoUpdate CoreClr to preview2-25517-02
dotnet-maestro-bot [Tue, 18 Jul 2017 00:31:51 +0000 (00:31 +0000)]
Update CoreClr to preview2-25517-02

7 years agoCoreCLR - Remove preemptive checks for path being too long (#12786)
Stephen Daudell [Tue, 18 Jul 2017 00:25:52 +0000 (19:25 -0500)]
CoreCLR - Remove preemptive checks for path being too long (#12786)

* Removed preemptive checks for path being too long.

Instead let the native interop handle it.

* Deleted unused constants.

7 years agoAdd regression tests for #12761. #12761 was fixed by #12735.
Eugene Rozenfeld [Mon, 17 Jul 2017 22:15:30 +0000 (15:15 -0700)]
Add regression tests for #12761. #12761 was fixed by #12735.

The bug was repro-ing on a dynamic method produced by Reflection::Emit.

It's not possible to repro the bug on normal C# code because of
C# definite assignment rules.

This change adds a simple il regression test.

7 years agoGet rid of duplicate dump of def RefPositions
Carol Eidt [Mon, 17 Jul 2017 22:42:22 +0000 (15:42 -0700)]
Get rid of duplicate dump of def RefPositions

7 years agoLSRA & dump cleanup
Carol Eidt [Mon, 17 Jul 2017 18:47:35 +0000 (11:47 -0700)]
LSRA & dump cleanup

Refine dumps and remove some vestigial code:
- Dump code size in a consistent way across architectures
- Eliminate the Lowering hash debugging code, since Lowering hasn't been optional for a long time now.
- Eliminate the IR dump before LSRA, since it's just after the post-Lowering dump
- When building RefPositions:
  - dump the node first
  - then its consume/produce count
  - then the map only if consume != 0
  - then the associated RefPositions
   - dump the src & dst candidates only if produce != 0
  - leave a space between nodes.
- Dump the maxSpill only for types for which it is non-zero
- Eliminate the dumps during write-back; they contain no useful information not available in the table dumps.
- Eliminate the ancient workaround code for `GT_IND` and `GT_ARR_ELEM` which was from the days when we were trying to get LSRA to work with the legacy code generator.
- Use `gtTreeID` consistently whenver using a `t` prefix for a tree temp.
- Use varNum consistently when referring to a lclVar interval.
- Don't dump each node as it is handled by `TreeNodeInfoInit()` since it's redundant with the after dump. (Note that this wasn't being done for arm or arm64).

7 years agoFix a build break when compiling with Standalone GC on non-Windows platforms (#12858)
Sean Gillespie [Mon, 17 Jul 2017 22:13:40 +0000 (15:13 -0700)]
Fix a build break when compiling with Standalone GC on non-Windows platforms (#12858)

7 years agoAllow CNS_INT type mismatch for ARM
Bruce Forstall [Mon, 17 Jul 2017 20:26:07 +0000 (13:26 -0700)]
Allow CNS_INT type mismatch for ARM

Fixes #12757

X86 allows a long/int assignment type mismatch with a CNS_INT RHS, by inserting a cast.
Accept this for ARM as well. This allows a test (with arguably bad IL) to pass, and
also seems harmless and reasonable to accept.

7 years agoCreate crash dump on unhandled SIGILL, SIGFPE, SIGSEGV, SIGTRAP, SIGBUS (#12842)
Igor Kulaychuk [Mon, 17 Jul 2017 19:47:26 +0000 (22:47 +0300)]
Create crash dump on unhandled SIGILL, SIGFPE, SIGSEGV, SIGTRAP, SIGBUS (#12842)

7 years agoMake createdump build and work on ARM (#12798)
Konstantin Baladurin [Mon, 17 Jul 2017 19:46:50 +0000 (22:46 +0300)]
Make createdump build and work on ARM (#12798)

7 years agoMerge pull request #12838 from pgavlin/PInvokeKills
Pat Gavlin [Mon, 17 Jul 2017 18:06:57 +0000 (11:06 -0700)]
Merge pull request #12838 from pgavlin/PInvokeKills

Do not mark GC vars live across an unmanged call as DNER in liveness for RyuJIT.

7 years agoMerge pull request #12806 from jashook/fix_2017_arm_build
Jarret Shook [Mon, 17 Jul 2017 16:34:42 +0000 (09:34 -0700)]
Merge pull request #12806 from jashook/fix_2017_arm_build

Updates the explicit location for armasm

7 years agoUpdates the explicit location for armasm
jashoo [Thu, 13 Jul 2017 22:19:33 +0000 (15:19 -0700)]
Updates the explicit location for armasm

7 years agoMerge pull request #12840 from dotnet-maestro-bot/master-UpdateDependencies
Wes Haggard [Mon, 17 Jul 2017 16:08:33 +0000 (09:08 -0700)]
Merge pull request #12840 from dotnet-maestro-bot/master-UpdateDependencies

Update CoreClr, CoreFx to preview2-25517-01, preview2-25517-02, respectively (master)

7 years agoFix alignment of reads in MD5Transform. (#12800)
Ruben Ayrapetyan [Mon, 17 Jul 2017 14:10:42 +0000 (17:10 +0300)]
Fix alignment of reads in MD5Transform. (#12800)

7 years agoUpdate CoreClr, CoreFx to preview2-25517-01, preview2-25517-02, respectively
dotnet-maestro-bot [Mon, 17 Jul 2017 13:16:34 +0000 (13:16 +0000)]
Update CoreClr, CoreFx to preview2-25517-01, preview2-25517-02, respectively

7 years agoFormat code.
Pat Gavlin [Sun, 16 Jul 2017 16:52:55 +0000 (09:52 -0700)]
Format code.

7 years agoUpdate init-tools.sh to match corefx (#12839)
Jan Kotas [Sun, 16 Jul 2017 04:03:29 +0000 (06:03 +0200)]
Update init-tools.sh to match corefx (#12839)

7 years agoRevert PR: https://github.com/dotnet/coreclr/pull/12830 (#12844)
Santiago Fernandez Madero [Sun, 16 Jul 2017 04:01:14 +0000 (21:01 -0700)]
Revert PR: https://github.com/dotnet/coreclr/pull/12830 (#12844)

Reverting this PR to unblock coreclr ingestion in corefx. I will open another PR to bring this change back once the infrastructure changes are merged into buildtools and consumed by corefx.

See: https://github.com/dotnet/corefx/pull/22295#issuecomment-315574780

cc: @stephentoub

7 years agoFix issues with early dumps of multi-reg-returning calls.
Pat Gavlin [Sat, 15 Jul 2017 20:25:49 +0000 (13:25 -0700)]
Fix issues with early dumps of multi-reg-returning calls.

The tree dump code was calling `GetReturnRegCount` before the return type
descriptor was initialized, which lead to an assert. This change introduces
a new debug-only method that simply returns `0` if the return type desc
has not been initialized.

7 years agoMinor cleanups in reg candidate lclVar node processing. (#12828)
Pat Gavlin [Sat, 15 Jul 2017 21:24:08 +0000 (14:24 -0700)]
Minor cleanups in reg candidate lclVar node processing. (#12828)

In particular, ignore reg candidate lclVar nodes that are not used (i.e.
`gtLsraInfo.isLocalDefUse` is `true`). These nodes are side-effect-free
and can therefore be eliminated if they are not used (indeed, the code
generator already ignores such uses).

7 years agoFix usage of GetThreadContext (#12825)
Sergiy Kuryata [Sat, 15 Jul 2017 05:50:49 +0000 (22:50 -0700)]
Fix usage of GetThreadContext (#12825)

7 years agoMerge pull request #12832 from pgavlin/FgMarkIntf
Pat Gavlin [Sat, 15 Jul 2017 05:37:54 +0000 (22:37 -0700)]
Merge pull request #12832 from pgavlin/FgMarkIntf

Add an overload of `fgMarkIntf` that takes a var index.

7 years agoDo not mark GC vars live across an unmanged call as DNER in liveness for RyuJIT.
Pat Gavlin [Sat, 15 Jul 2017 05:33:11 +0000 (22:33 -0700)]
Do not mark GC vars live across an unmanged call as DNER in liveness for RyuJIT.

The RA inserts kills that ensure that live variables are not enregistered across
unmanaged calls, so this is not necessary.