platform/upstream/coreclr.git
8 years agoMerge pull request #4060 from jkotas/remove-r2r-workaround
Jan Kotas [Sun, 3 Apr 2016 17:58:31 +0000 (10:58 -0700)]
Merge pull request #4060 from jkotas/remove-r2r-workaround

Remove ReadyToRun workaround

8 years agoRemove ReadyToRun workaround
Jan Kotas [Sun, 3 Apr 2016 15:23:59 +0000 (08:23 -0700)]
Remove ReadyToRun workaround

8 years agoMerge pull request #4051 from sejongoh/fix_singlinkgen_test
Sejong Oh [Sun, 3 Apr 2016 04:37:19 +0000 (21:37 -0700)]
Merge pull request #4051 from sejongoh/fix_singlinkgen_test

Fix singlinkgen test.

8 years agoEnabling Helix perf test runs for CoreCLR
Deepak Shankargouda [Sat, 2 Apr 2016 03:52:45 +0000 (20:52 -0700)]
Enabling Helix perf test runs for CoreCLR

Enabling Helix perf test runs for CoreCLR

8 years agoMerge pull request #4052 from yizhang82/master
Yi Zhang (CLR) [Sat, 2 Apr 2016 03:38:51 +0000 (20:38 -0700)]
Merge pull request #4052 from yizhang82/master

Add mac ulimit -n 2048 workaround and more debug spew in CLI installation into init-tools.sh

8 years agoAdd mac ulimit -n 2048 workaround and more debug spew in CLI installation into init...
Yi Zhang (CLR) [Sat, 2 Apr 2016 02:52:43 +0000 (19:52 -0700)]
Add mac ulimit -n 2048 workaround and more debug spew in CLI installation into init-tools.sh

8 years agoFix singlinkgen test.
Sejong Oh [Fri, 1 Apr 2016 23:09:00 +0000 (16:09 -0700)]
Fix singlinkgen test.

If the address of SingLink is stored at stack, GC.Collect() cannot collect
the object since the address variable is still alive at stack.

8 years agoMerge pull request #4004 from sejongoh/use_corefx_outerloop_test
Sejong Oh [Fri, 1 Apr 2016 22:38:29 +0000 (15:38 -0700)]
Merge pull request #4004 from sejongoh/use_corefx_outerloop_test

Use corefx outerloop tests

8 years agoMerge pull request #4047 from kyulee1/fixclean
Kyungwoo Lee [Fri, 1 Apr 2016 19:44:33 +0000 (12:44 -0700)]
Merge pull request #4047 from kyulee1/fixclean

Fix clean build that deletes Tools

8 years agoFix clean build that deletes Tools
Kyungwoo Lee [Thu, 31 Mar 2016 17:59:43 +0000 (10:59 -0700)]
Fix clean build that deletes Tools

8 years agoMerge pull request #3961 from natgla/adams
Andy Ayers [Fri, 1 Apr 2016 15:54:10 +0000 (08:54 -0700)]
Merge pull request #3961 from natgla/adams

Changing adams benchmark

8 years agoMerge pull request #4038 from adityamandaleeka/extest
Kyungwoo Lee [Fri, 1 Apr 2016 14:59:41 +0000 (07:59 -0700)]
Merge pull request #4038 from adityamandaleeka/extest

Disable ForeignThreadExceptions test on ARM64

8 years agoMerge pull request #4031 from dagood/upgrade-cli
Jan Kotas [Fri, 1 Apr 2016 05:51:29 +0000 (22:51 -0700)]
Merge pull request #4031 from dagood/upgrade-cli

Upgrade dotnet cli to 1.0.0-beta-002173

8 years agoMerge pull request #4041 from erozenfeld/gtTreeHasSideEffectsFix
Eugene Rozenfeld [Fri, 1 Apr 2016 04:54:58 +0000 (21:54 -0700)]
Merge pull request #4041 from erozenfeld/gtTreeHasSideEffectsFix

Fix exponential explosion in gtTreeHasSideEffects.

8 years agoMerge pull request #4039 from manu-silicon/open_delegates
Jan Kotas [Fri, 1 Apr 2016 04:31:18 +0000 (21:31 -0700)]
Merge pull request #4039 from manu-silicon/open_delegates

Disable FEATURE_STUBS_AS_IL on ARM 32-bit

8 years agoMerge pull request #4034 from gkhanna79/PortFix
Gaurav Khanna [Fri, 1 Apr 2016 04:28:33 +0000 (21:28 -0700)]
Merge pull request #4034 from gkhanna79/PortFix

Port workaround for AOT packaging

8 years agoDisable FEATURE_STUBS_AS_IL on ARM 32-bit
Manu [Tue, 29 Mar 2016 00:56:39 +0000 (09:56 +0900)]
Disable FEATURE_STUBS_AS_IL on ARM 32-bit

This enables open delegates on ARM (an additional 43 tests are now passing)

8 years agoDisable ForeignThreadExceptions test on ARM64.
Aditya Mandaleeka [Fri, 1 Apr 2016 00:44:24 +0000 (17:44 -0700)]
Disable ForeignThreadExceptions test on ARM64.

8 years agoFix exponential explosion in gtTreeHasSideEffects.
Eugene Rozenfeld [Thu, 31 Mar 2016 22:35:34 +0000 (15:35 -0700)]
Fix exponential explosion in gtTreeHasSideEffects.

gtTreeHasSideEffects has special code to deal with helper calls.
If the helper satisfies certain properties and its arguments don't have relevant
side effects, than the tree corresponding to the helper call is considered not to have
side effects. The bug was that both gtTreeHasSideEffects and gtNodeHasSideEffects
(called by gtTreeHasSideEffects and calling gtTreeHasSideEffects) had code to check
the helper arguments for side effects. That made the algorithm exponential (2^n)
for a tree like the one below.
Because of that ngen would take days to compile the method with such trees.
The fix is to remove the argument checking code from gtTreeHasSideEffects since it always
calls gtNodeHasSideEffects. Compilation time goes back to milliseconds or seconds.

I ran full desktop testing and verified no SuperPMI diffs.

No measurable impact on cqNGenTP.

Fixes #3768.

N139 (255,169)              [000064] --CXG-------             *  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $179
N137 (255,163)              [000062] --CXG------- arg0 in rcx \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $177
N135 (255,157)              [000060] --CXG------- arg0 in rcx    \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $175
N133 (255,151)              [000058] --CXG------- arg0 in rcx       \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $173
N131 (255,145)              [000056] --CXG------- arg0 in rcx          \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $171
N129 (255,139)              [000054] --CXG------- arg0 in rcx             \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $16f
N127 (255,133)              [000052] --CXG------- arg0 in rcx                \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $16d
N125 (255,127)              [000050] --CXG------- arg0 in rcx                   \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $16b
N123 (255,121)              [000048] --CXG------- arg0 in rcx                      \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $169
N121 (255,115)              [000046] --CXG------- arg0 in rcx                         \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $167
N119 (253,109)              [000044] --CXG------- arg0 in rcx                            \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $165
N117 (239,103)              [000042] --CXG------- arg0 in rcx                               \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $163
N115 (225, 97)              [000040] --CXG------- arg0 in rcx                                  \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $161
N113 (211, 91)              [000038] --CXG------- arg0 in rcx                                     \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $15f
N111 (197, 85)              [000036] --CXG------- arg0 in rcx                                        \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $15d
N109 (183, 79)              [000034] --CXG------- arg0 in rcx                                           \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $15b
N107 (169, 73)              [000032] --CXG------- arg0 in rcx                                              \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $159
N105 (155, 67)              [000030] --CXG------- arg0 in rcx                                                 \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $157
N103 (141, 61)              [000028] --CXG------- arg0 in rcx                                                    \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $155
N101 (127, 55)              [000026] --CXG------- arg0 in rcx                                                       \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $153
N099 (113, 49)              [000024] --CXG------- arg0 in rcx                                                          \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $151
N097 ( 99, 43)              [000022] --CXG------- arg0 in rcx                                                             \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $14f
N095 ( 85, 37)              [000020] --CXG------- arg0 in rcx                                                                \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $14d
N093 ( 71, 31)              [000018] --CXG------- arg0 in rcx                                                                   \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $14b
N091 ( 57, 25)              [000016] --CXG------- arg0 in rcx                                                                      \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $149
N089 ( 43, 19)              [000014] --CXG------- arg0 in rcx                                                                         \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $147
N087 ( 29, 13)              [000012] --CXG------- arg0 in rcx                                                                            \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $145
N085 ( 15,  7)              [000010] --CXG------- arg0 in rcx                                                                               \--*  call help ref    HELPER.CORINFO_HELP_READYTORUN_CHKCAST $143
N083 (  1,  1)              [000008] ------------ arg0 in rcx                                                                                  \--*  lclVar    ref    V00 tmp0         u:2 (last use) $140

8 years agoMerge pull request #4035 from kyulee1/common
Kyungwoo Lee [Thu, 31 Mar 2016 21:57:01 +0000 (14:57 -0700)]
Merge pull request #4035 from kyulee1/common

Update build script for arm64

8 years agoUpdate build script for arm64
Kyungwoo Lee [Thu, 31 Mar 2016 21:51:52 +0000 (14:51 -0700)]
Update build script for arm64

8 years agoPort workaround for AOT packaging
Gaurav Khanna [Thu, 31 Mar 2016 21:51:26 +0000 (14:51 -0700)]
Port workaround for AOT packaging

8 years agoMerge pull request #4007 from adityamandaleeka/extest
Aditya Mandaleeka [Thu, 31 Mar 2016 21:29:35 +0000 (14:29 -0700)]
Merge pull request #4007 from adityamandaleeka/extest

Add test for exception handling on foreign threads.

8 years agoMerge pull request #3295 from chuck-mitchell/feature
Chuck Mitchell [Thu, 31 Mar 2016 20:51:52 +0000 (13:51 -0700)]
Merge pull request #3295 from chuck-mitchell/feature

Initial version of CoreCLR JIT Performance Harness

8 years agoMerge pull request #4015 from sejongoh/update_dotnet_cli_path
Sejong Oh [Thu, 31 Mar 2016 20:47:02 +0000 (13:47 -0700)]
Merge pull request #4015 from sejongoh/update_dotnet_cli_path

Fix tests/setup-runtime-dependencies.sh as per dotnet cli changes

8 years agoMerge pull request #4006 from jashook/arm32_ci_pr
Jarret Shook [Thu, 31 Mar 2016 20:35:07 +0000 (13:35 -0700)]
Merge pull request #4006 from jashook/arm32_ci_pr

Add arm32 build per pr.

8 years agoUpgrade dotnet cli to 1.0.0-beta-002173.
Davis Goodin [Thu, 31 Mar 2016 19:55:46 +0000 (14:55 -0500)]
Upgrade dotnet cli to 1.0.0-beta-002173.

8 years agoMerge pull request #4024 from AlexGhiondea/mscorlibBuild
AlexGhiondea [Thu, 31 Mar 2016 19:48:06 +0000 (12:48 -0700)]
Merge pull request #4024 from AlexGhiondea/mscorlibBuild

Fix issues with building mscorlib inside VS

8 years agoMoving validation out of measured code
Natalia Glagoleva [Thu, 31 Mar 2016 19:14:44 +0000 (12:14 -0700)]
Moving validation out of measured code

8 years agoMerge pull request #3953 from LLITCHEV/Issue3604
Lubomir Litchev [Thu, 31 Mar 2016 18:52:33 +0000 (11:52 -0700)]
Merge pull request #3953 from LLITCHEV/Issue3604

Make sure 4 outgoing arg slots are generated for methods that call

8 years agoMerge pull request #4029 from pgavlin/Host64Bit
Pat Gavlin [Thu, 31 Mar 2016 18:26:16 +0000 (11:26 -0700)]
Merge pull request #4029 from pgavlin/Host64Bit

Replace uses of _WIN64 with _HOST_64BIT_.

8 years agoReplace uses of _WIN64 with _HOST_64BIT_.
Pat Gavlin [Thu, 31 Mar 2016 17:02:12 +0000 (10:02 -0700)]
Replace uses of _WIN64 with _HOST_64BIT_.

This terminology is more accurate. This change also corrects
a few bits of code that were making target-related decisions
based on the host's bitness.

8 years agoMerge pull request #3914 from cmckinsey/GitHub_3600
Chris McKinsey [Thu, 31 Mar 2016 17:57:03 +0000 (10:57 -0700)]
Merge pull request #3914 from cmckinsey/GitHub_3600

Fix for stack overflow in CFG/DOM analysis GH#3600

8 years agoMerge pull request #4030 from kyulee1/updateryujit
Kyungwoo Lee [Thu, 31 Mar 2016 17:52:16 +0000 (10:52 -0700)]
Merge pull request #4030 from kyulee1/updateryujit

Update RyuJit version

8 years agoUpdate RyuJit version
Kyungwoo Lee [Thu, 31 Mar 2016 17:51:04 +0000 (10:51 -0700)]
Update RyuJit version

8 years agoAdd arm32 build per pr.
jashook [Thu, 31 Mar 2016 17:24:44 +0000 (17:24 +0000)]
Add arm32 build per pr.

8 years agoMerge pull request #4018 from mikem8361/sosplugfix
Mike McLaughlin [Thu, 31 Mar 2016 16:56:46 +0000 (09:56 -0700)]
Merge pull request #4018 from mikem8361/sosplugfix

sos fails to load if binaries are copied to different location than built

8 years agoMerge pull request #4009 from pgavlin/EmitXarchClarify
Pat Gavlin [Thu, 31 Mar 2016 15:53:12 +0000 (08:53 -0700)]
Merge pull request #4009 from pgavlin/EmitXarchClarify

Clarify register aliasing in the X86 encoder.

8 years agoMerge pull request #4014 from dagood/upgrade-cli
Stephen Toub [Thu, 31 Mar 2016 13:26:08 +0000 (09:26 -0400)]
Merge pull request #4014 from dagood/upgrade-cli

Upgrade dotnet cli to take win7 fix

8 years agoMerge pull request #3967 from stephentoub/empty_memorystream
Stephen Toub [Thu, 31 Mar 2016 13:25:23 +0000 (09:25 -0400)]
Merge pull request #3967 from stephentoub/empty_memorystream

Avoid array allocation in "new MemoryStream()"

8 years agoFix tests/setup-runtime-dependencies.sh as per dotnet cli changes
Sejong OH [Thu, 31 Mar 2016 01:23:15 +0000 (18:23 -0700)]
Fix tests/setup-runtime-dependencies.sh as per dotnet cli changes

8 years agoMerge pull request #4021 from dotnet-bot/from-tfs
Jan Kotas [Thu, 31 Mar 2016 07:44:55 +0000 (00:44 -0700)]
Merge pull request #4021 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoWe should no longer need to use the '/test:moduleName=CommonLanguageRuntimeLibrary...
Alex Ghiondea [Thu, 31 Mar 2016 06:49:20 +0000 (23:49 -0700)]
We should no longer need to use the '/test:moduleName=CommonLanguageRuntimeLibrary' flag when building mscorlib.

8 years agoDo not use the 'Visible' metadata on the items in the ItemGroup 'MscorlibSources'
Alex Ghiondea [Thu, 31 Mar 2016 06:44:54 +0000 (23:44 -0700)]
Do not use the 'Visible' metadata on the items in the ItemGroup 'MscorlibSources'

We are going to import that itemgroup into the 'Compile' ItemGroup which will
make them show up in VS. Having the 'Visible' metadata on the items means we end
up with duplicated items in Solution Explorer.

8 years agoMerge pull request #4008 from leemgs/upstream-typo-build-mode
Jan Kotas [Thu, 31 Mar 2016 06:29:23 +0000 (23:29 -0700)]
Merge pull request #4008 from leemgs/upstream-typo-build-mode

Improve description of build type spelling for consistency

8 years agoMerge pull request #4020 from JohnChen0/master
Jan Kotas [Thu, 31 Mar 2016 06:28:38 +0000 (23:28 -0700)]
Merge pull request #4020 from JohnChen0/master

Fix CrossGen documentation error

8 years agoMerge pull request #3944 from leemgs/upstream-cross-arm-stripping-symbols
Jan Kotas [Thu, 31 Mar 2016 06:25:21 +0000 (23:25 -0700)]
Merge pull request #3944 from leemgs/upstream-cross-arm-stripping-symbols

[Linux/ARM32] objcopy: Support cross-build  for stripping symbols.

8 years agoMerge pull request #3989 from bbowyersmyth/StringEquals
Jan Kotas [Thu, 31 Mar 2016 06:24:29 +0000 (23:24 -0700)]
Merge pull request #3989 from bbowyersmyth/StringEquals

Port String.Equals from CoreRT

8 years agoMerge pull request #3981 from manu-silicon/context
Jan Kotas [Thu, 31 Mar 2016 06:22:44 +0000 (23:22 -0700)]
Merge pull request #3981 from manu-silicon/context

Fix RtlRestoreContext

8 years agoFix CrossGen documentation error
John Chen [Thu, 31 Mar 2016 05:35:03 +0000 (22:35 -0700)]
Fix CrossGen documentation error

8 years agoFix RtlRestoreContext
Manu [Wed, 30 Mar 2016 01:56:40 +0000 (10:56 +0900)]
Fix RtlRestoreContext

Due to macro expansion, the previous computed offsets to restore Lr and Pc
were incorrect, causing a memory corruption (see Issue #3856 for C# code
reproducing that problem).
Made assembly more obvious when just restoring Sp, Lr and Pc.

8 years agoMerge pull request #4016 from dotnet/revert-3960-check_runtime_to_pull_coredistools
Jan Kotas [Thu, 31 Mar 2016 04:31:02 +0000 (21:31 -0700)]
Merge pull request #4016 from dotnet/revert-3960-check_runtime_to_pull_coredistools

Revert "Add architeture information to a script downloading coredistools"

8 years agoFix R2R fixups for delegate ctors
Jan Kotas [Thu, 31 Mar 2016 03:49:26 +0000 (20:49 -0700)]
Fix R2R fixups for delegate ctors

- Add getReadyToRunDelegateHelper to JIT-EE interface. This method has an extra argument describing the type of the delegate. This argument is required to emit correct fixups.
- Call the new method in both JIT and JIT32
- Add the new method to superpmi
- Bump minor version of R2R file format
- Add regression test for #3975 to R2R unit test

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

[tfs-changeset: 1591698]

8 years agoMerge pull request #4017 from mikem8361/issue3987
Mike McLaughlin [Thu, 31 Mar 2016 03:34:15 +0000 (20:34 -0700)]
Merge pull request #4017 from mikem8361/issue3987

Fixed issue #3987 "Debugger fails to stop on entry due to stack walk failure"

8 years agoFixed issue #3987 "Debugger fails to stop on entry due to stack walk failure"
Mike McLaughlin [Thu, 31 Mar 2016 03:30:13 +0000 (20:30 -0700)]
Fixed issue #3987 "Debugger fails to stop on entry due to stack walk failure"

By initializing m_rgHijackFunction to NULL.

8 years agoAdd back explicitly loading mscordaccore so libsos will properly load when installed...
Mike McLaughlin [Wed, 30 Mar 2016 01:03:01 +0000 (18:03 -0700)]
Add back explicitly loading mscordaccore so libsos will properly load when installed at a different location than it was built.

8 years agoMerge pull request #3982 from mikem8361/readmemoryav2
Mike McLaughlin [Thu, 31 Mar 2016 03:24:31 +0000 (20:24 -0700)]
Merge pull request #3982 from mikem8361/readmemoryav2

Fix ReadMemory AV.

8 years agoRevert "Add architeture information to a script downloading coredistools"
Jan Kotas [Thu, 31 Mar 2016 03:20:42 +0000 (20:20 -0700)]
Revert "Add architeture information to a script downloading coredistools"

8 years agoMerge pull request #4002 from kyulee1/fixcmd
Kyungwoo Lee [Thu, 31 Mar 2016 03:06:01 +0000 (20:06 -0700)]
Merge pull request #4002 from kyulee1/fixcmd

ARM64: Running cmd instead of exe

8 years agoGetting SOS to work on ARm64:
Rama Krishnan Raghupathy [Thu, 31 Mar 2016 03:00:57 +0000 (20:00 -0700)]
Getting SOS to work on ARm64:

     This mainly involved DACizing the VM code.
      A bulk edit for changing RUNTIME_FUNCTION to T_RUNTIME_FUNCTION

[tfs-changeset: 1591667]

8 years agoARM64: Running cmd instead of exe
Kyungwoo Lee [Wed, 30 Mar 2016 22:02:21 +0000 (15:02 -0700)]
ARM64: Running cmd instead of exe

Our test framework (smarty) directly runs test executable on corerun.exe.
But some of tests expect arguments via environment variable specified in .cmd.
The fix is to change the test list file to run .cmd. So the expected pass
value is also updated to 0 instead of 100. Now we don't need to pass /host
that specifies corerun.exe.
3 additional tests are now passed:
 InterlockedAddLongWithSubtract/CompareExchangeTString/Polyrec

8 years agoChanges from code review
Natalia Glagoleva [Thu, 31 Mar 2016 01:57:19 +0000 (18:57 -0700)]
Changes from code review

Added verification to the benchmark,
put most of output under #if VERBOSE.
Also fixed number of iterations for xunit.perf runs.

8 years agoUpgrade dotnet cli to take win7 fix.
Davis Goodin [Wed, 30 Mar 2016 22:23:43 +0000 (17:23 -0500)]
Upgrade dotnet cli to take win7 fix.

8 years agoChange spelling of build type for consistenty
Geunsik Lim [Wed, 30 Mar 2016 22:47:42 +0000 (07:47 +0900)]
Change spelling of build type for consistenty

This is trivial patch.
Let's display a help manual with lower case for better consistency
when the developers run "./build.sh --help".

Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
8 years agoMove dllexport to platformdefines.h.
Aditya Mandaleeka [Thu, 31 Mar 2016 00:04:53 +0000 (17:04 -0700)]
Move dllexport to platformdefines.h.

8 years agoClarify register aliasing in the X86 encoder.
Pat Gavlin [Wed, 30 Mar 2016 22:34:51 +0000 (15:34 -0700)]
Clarify register aliasing in the X86 encoder.

Certain registers are aliased with control bits in the ModRM byte
of an X86 instruction. Encapsulate the checks that accommodate this
aliasing into a pair of functions.

8 years agoAdd test for exception handling on foreign threads.
Aditya Mandaleeka [Wed, 30 Mar 2016 03:11:55 +0000 (20:11 -0700)]
Add test for exception handling on foreign threads.

8 years agoMerge pull request #4003 from briansull/update-tests-lst
Brian Sullivan [Wed, 30 Mar 2016 21:54:40 +0000 (14:54 -0700)]
Merge pull request #4003 from briansull/update-tests-lst

Update with 10 additional passing tests, and two moved to unstable

8 years agoMerge pull request #4005 from dotnet/revert-3943-upstream-gawk-char-class
Jan Kotas [Wed, 30 Mar 2016 21:34:59 +0000 (14:34 -0700)]
Merge pull request #4005 from dotnet/revert-3943-upstream-gawk-char-class

Revert "Fix bracket expression matches a character at gawk"

8 years agoRevert "Fix bracket expression matches a character at gawk"
Jan Kotas [Wed, 30 Mar 2016 21:32:52 +0000 (14:32 -0700)]
Revert "Fix bracket expression matches a character at gawk"

8 years agoUpdate with 10 additional pasing tests, and two moved to unstable
Brian Sullivan [Wed, 30 Mar 2016 18:31:00 +0000 (11:31 -0700)]
Update with 10 additional pasing tests, and two moved to unstable

8 years agoUse cirefx outerloop tests
Sejong Oh [Wed, 30 Mar 2016 21:16:13 +0000 (14:16 -0700)]
Use cirefx outerloop tests

8 years agoMerge pull request #3955 from davmason/master
David Mason [Wed, 30 Mar 2016 20:15:29 +0000 (13:15 -0700)]
Merge pull request #3955 from davmason/master

Fixing tracelogging on linux

8 years agoMake sure 4 outgoing arg slots are generated for methods that call
Lubomir Litchev [Sun, 27 Mar 2016 21:31:09 +0000 (14:31 -0700)]
Make sure 4 outgoing arg slots are generated for methods that call
THROW_HELPERS for Windows x64.

This is a long standing bug in RyuJit.
When compiling a method for debug mode if there is a call to THROW_HELPER
(and it is the only call) the frame for the method that calls the
THROW_HELPER is not properly set - it is missing the 4 ougoing arg slots.

This was discovered by R2R codegen. In normal jitting of such method in
debug mode the jit always adds a call to CORINFO_HELP_DBG_IS_JUST_MY_CODE
early enough, so the frame size will be properly calculated. This call is
not generated for R2R.

If the method generated for R2R has only a call to a throw helper
and it is compiled for debug mode, the call is not generated in the IR.
The CodeGen generates the call directly instead. The call is generated
after the stack frame is calculated. This leads to improperly generated
stack frame that doen't have the 4 outgoing arg slots that the Windows x64
ABI requires.

Compiling such method for release mode is never a problem since in
FlowGraph we always generate IR for a block that contains the
THROW_HELPER. This happens before the stack frame is calculated, so the 4
outgoing stack slots are always calculated.

8 years agoMerge pull request #3996 from kyulee1/fixconv
Kyungwoo Lee [Wed, 30 Mar 2016 18:01:52 +0000 (11:01 -0700)]
Merge pull request #3996 from kyulee1/fixconv

ARM64: Fix conversion double to unsigned int

8 years agoARM64: Fix conversion double to unsigned int
Kyungwoo Lee [Wed, 30 Mar 2016 16:16:26 +0000 (09:16 -0700)]
ARM64: Fix conversion double to unsigned int

For ARM/ARM64, converting negative double to unsigned int is 0, which aligns with all native compilers.
I also removed the part of tests that depends on architecture specific values.
Since ARM64 tests were prepopulated, I just updated the tag so that we can update the tests later.

8 years agoMerge pull request #3960 from sejongoh/check_runtime_to_pull_coredistools
Sejong Oh [Wed, 30 Mar 2016 17:33:31 +0000 (10:33 -0700)]
Merge pull request #3960 from sejongoh/check_runtime_to_pull_coredistools

Add architeture information to a script downloading coredistools

8 years agoMerge pull request #3983 from svick/getresourcestring-culture
Jan Kotas [Wed, 30 Mar 2016 17:26:28 +0000 (10:26 -0700)]
Merge pull request #3983 from svick/getresourcestring-culture

Remove unused CultureInfo from GetResourceString

8 years agoFixing contracts violations, and adding missing contracts to some APIs.
Fadi Hanna [Wed, 30 Mar 2016 16:27:04 +0000 (09:27 -0700)]
Fixing contracts violations, and adding missing contracts to some APIs.
Changing native format reader failure mode to fail fast instead of throwing and exception.

[tfs-changeset: 1591477]

8 years agoMerge pull request #3994 from dagood/upgrade-cli
Davis Goodin [Wed, 30 Mar 2016 16:10:54 +0000 (11:10 -0500)]
Merge pull request #3994 from dagood/upgrade-cli

Apply dotnet cli upgrade also to tests\dir.props

8 years agoApply dotnet cli upgrade also to tests\dir.props.
Davis Goodin [Wed, 30 Mar 2016 16:07:30 +0000 (11:07 -0500)]
Apply dotnet cli upgrade also to tests\dir.props.

8 years agoMerge pull request #3993 from dagood/upgrade-cli
Stephen Toub [Wed, 30 Mar 2016 16:02:24 +0000 (12:02 -0400)]
Merge pull request #3993 from dagood/upgrade-cli

Upgrade dotnet cli version

8 years agoUpgrade dotnet cli version.
Davis Goodin [Wed, 30 Mar 2016 15:03:53 +0000 (10:03 -0500)]
Upgrade dotnet cli version.

8 years agoMerge pull request #3943 from leemgs/upstream-gawk-char-class
Jan Kotas [Wed, 30 Mar 2016 07:10:26 +0000 (00:10 -0700)]
Merge pull request #3943 from leemgs/upstream-gawk-char-class

Fix bracket expression matches a character at gawk

8 years agoMerge pull request #3984 from svick/patch-1
Jan Kotas [Wed, 30 Mar 2016 07:08:35 +0000 (00:08 -0700)]
Merge pull request #3984 from svick/patch-1

Removed obsolete comment from Environment.GetResourceString

8 years agoPort String.Equals from CoreRT
Bruce Bowyer-Smyth [Wed, 30 Mar 2016 06:58:51 +0000 (16:58 +1000)]
Port String.Equals from CoreRT

8 years agoMerge pull request #3985 from myungjoo/trivialfix/macro1
Jan Kotas [Wed, 30 Mar 2016 03:27:37 +0000 (20:27 -0700)]
Merge pull request #3985 from myungjoo/trivialfix/macro1

Trivial fix: dangerous macro usage

8 years agoTrivial fix: dangerous macro usage
MyungJoo Ham [Wed, 30 Mar 2016 02:43:48 +0000 (11:43 +0900)]
Trivial fix: dangerous macro usage

Add parenthesis to make the macro safe.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agoRemoved obsolete comment from Environment.GetResourceString
Petr Onderka [Wed, 30 Mar 2016 02:24:23 +0000 (04:24 +0200)]
Removed obsolete comment from Environment.GetResourceString

Fixes #3979

8 years agoremove unused CultureInfo from GetResourceString
Petr Onderka [Wed, 30 Mar 2016 02:08:50 +0000 (04:08 +0200)]
remove unused CultureInfo from GetResourceString

8 years agoFix ReadMemory AV.
Mike McLaughlin [Wed, 30 Mar 2016 01:06:25 +0000 (18:06 -0700)]
Fix ReadMemory AV.

Use simple probing to validate read/write memory with a try/catch and explicit h/w exception holder.

Put probing in separate noinline and optnone function for optimized builds.

Fix assert in exception code mapping in context.cpp by handling SIGSEGV subcode SI_KERNEL.

8 years agoMerge pull request #3974 from briansull/update-tests-lst
Brian Sullivan [Wed, 30 Mar 2016 00:31:30 +0000 (17:31 -0700)]
Merge pull request #3974 from briansull/update-tests-lst

Disabled 8 failing tests

8 years agoDisabled 8 failing tests
Brian Sullivan [Tue, 29 Mar 2016 21:50:53 +0000 (14:50 -0700)]
Disabled 8 failing tests

Issues filed: 3968, 3969, 3970, 3971 and 3973

8 years agoMerge pull request #3966 from kyulee1/fixframe2
Kyungwoo Lee [Tue, 29 Mar 2016 21:14:42 +0000 (14:14 -0700)]
Merge pull request #3966 from kyulee1/fixframe2

ARM64: Fix Frame with compLocallocUsed

8 years agoARM64: Fix Frame with compLocallocUsed
Kyungwoo Lee [Fri, 25 Mar 2016 18:19:25 +0000 (11:19 -0700)]
ARM64: Fix Frame with compLocallocUsed

When compLocallocUsed is true, stack pointer is changed during the run.
So, JIT should restore stack pointer from frame pointer in the epilog.
Previously, we simpliy copied fp to sp, which is only valid for frameType
= 1.
This implements a right restoring process for other frameTypes (2 and 3).
For frameType = 3, I also simplified creating prolog sequence to support
this feature consistently.

8 years agoMerge pull request #3963 from adityamandaleeka/statFileParse
Aditya Mandaleeka [Tue, 29 Mar 2016 18:59:33 +0000 (11:59 -0700)]
Merge pull request #3963 from adityamandaleeka/statFileParse

Fix stat file parsing to handle executable names with spaces

8 years agoMerge pull request #3959 from briansull/safe-refactor
Brian Sullivan [Tue, 29 Mar 2016 18:07:42 +0000 (11:07 -0700)]
Merge pull request #3959 from briansull/safe-refactor

Safe Refactor - Remove conditional definition and references to lvIsMultiRegArgOrRet

8 years agoAvoid array allocation in "new MemoryStream()"
stephentoub [Tue, 29 Mar 2016 17:46:32 +0000 (13:46 -0400)]
Avoid array allocation in "new MemoryStream()"

The default MemoryStream ctor is unnecessarily allocating a 0-length array.

8 years agoMerge pull request #2182 from justinvp/keyedcollection_enumallocs
Stephen Toub [Tue, 29 Mar 2016 16:38:00 +0000 (12:38 -0400)]
Merge pull request #2182 from justinvp/keyedcollection_enumallocs

Avoid enumerator allocations inside KeyedCollection<TKey, TItem>

8 years agoChanged default number of iterations back to a smaller number for Release.
Natalia Glagoleva [Tue, 29 Mar 2016 16:14:30 +0000 (09:14 -0700)]
Changed default number of iterations back to a smaller number for Release.