platform/upstream/coreclr.git
8 years agoFix security annotation
Jan Kotas [Thu, 25 Aug 2016 05:38:28 +0000 (22:38 -0700)]
Fix security annotation

[tfs-changeset: 1624088]

8 years agoCleanup/optimize many string.Compare overloads, part 1 (#6603)
James Ko [Thu, 25 Aug 2016 05:10:46 +0000 (01:10 -0400)]
Cleanup/optimize many string.Compare overloads, part 1 (#6603)

Cleanup, optimize some String.Compare overloads

8 years agoRemove idiv from ThreadPoolWorkQueue:Dequeue loop (#6781)
Ben Adams [Thu, 25 Aug 2016 05:08:53 +0000 (06:08 +0100)]
Remove idiv from ThreadPoolWorkQueue:Dequeue loop (#6781)

8 years agoMerge pull request #6883 from gkhanna79/WinArm32
Gaurav Khanna [Thu, 25 Aug 2016 00:58:42 +0000 (17:58 -0700)]
Merge pull request #6883 from gkhanna79/WinArm32

Enable Windows Arm32 build

8 years agoBetter lazy initialization for Encoding static properties (#6890)
James Ko [Wed, 24 Aug 2016 23:18:39 +0000 (19:18 -0400)]
Better lazy initialization for Encoding static properties (#6890)

Better lazy initialization for Encoding static properties

8 years agoRemove extra TypeForward from facade to fix ConfiguredTaskAwaiter (#6899)
Jose Perez Rodriguez [Wed, 24 Aug 2016 23:10:23 +0000 (16:10 -0700)]
Remove extra TypeForward from facade to fix ConfiguredTaskAwaiter (#6899)

8 years agoFix #3554. (#6880)
Pat Gavlin [Wed, 24 Aug 2016 22:50:04 +0000 (15:50 -0700)]
Fix #3554. (#6880)

On x86, `emitter::emitInsBinary` was calling `genProduceReg` on the
`dst` tree if the source was a contained class field load and the
destination was a register. As per the comment on the offending
function, it is the caller's responsibility to call `genProduceReg`
for the destination register, if any. This was causing errors in
GC ref reporting on x86. This issue did not appear on x64 because
AFAICT we very nearly always morph class field loads into loads of
a `CNS_INT` handle (see morph.cpp:6344 in `fgMorphField` for
details).

8 years agoAdd single separator String.Split overloads (#895)
Justin Van Patten [Wed, 24 Aug 2016 22:34:20 +0000 (15:34 -0700)]
Add single separator String.Split overloads (#895)

8 years agoMerge pull request #6859 from adiaaida/addNMakeOption
Michelle McDaniel [Wed, 24 Aug 2016 22:12:17 +0000 (15:12 -0700)]
Merge pull request #6859 from adiaaida/addNMakeOption

Update build to optionally configure with nmake

8 years agoUpdate build to optionally configure with nmake
Michelle McDaniel [Fri, 19 Aug 2016 22:35:25 +0000 (15:35 -0700)]
Update build to optionally configure with nmake

For formatting, we want to be able to obtain the compile_commands.json
file so that we do not have to 1) do a full build of coreclr and 2)
generate it ourselves from the build log. This change modifies build.cmd
to take an option "usenmakemakefiles." This option will set
__NMakeMakefiles to 1, which is used by the gen-buildsys-win.bat script.
This option also sets all the same options as configureonly, as we cannot
do a full build using NMake Makefiles, and we only want to use this to
force CMake to generate a compile_commands.json file for the jit
directory, which it can do using NMake Makefiles, but not Visual Studio.
The update to gen-buildsys-win.bat checks the value of __NMakeMakefiles,
and if it is set to 1, it sets the CMake Generator to NMake Makefiles.

8 years agoMerge pull request #6896 from dotnet-bot/from-tfs
Jan Kotas [Wed, 24 Aug 2016 20:15:05 +0000 (13:15 -0700)]
Merge pull request #6896 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoDisabling test against issue 6553 (#6895)
Jan Kotas [Wed, 24 Aug 2016 20:14:05 +0000 (13:14 -0700)]
Disabling test against issue 6553 (#6895)

8 years agoAllow Ubuntu 16.10 to use MSBuild (#6897)
Eric Mellino [Wed, 24 Aug 2016 20:13:06 +0000 (13:13 -0700)]
Allow Ubuntu 16.10 to use MSBuild (#6897)

8 years agoHandle multi-reg PUTARG_STK nodes. (#6870)
Pat Gavlin [Wed, 24 Aug 2016 19:58:25 +0000 (12:58 -0700)]
Handle multi-reg PUTARG_STK nodes. (#6870)

* Handle multi-reg PUTARG_STK nodes.

When FEATURE_MULTIREG_ARGS is true, a GT_PUTARG_STK node may have a
GT_LIST as a child if the child was originally a multi-reg argument.
Handle this case in `GenTreeUseEdgeIterator`.

Fixes #6583.

* Update the bug number for some ARM64 failures.

These tests are now failing due to a differnt bug.

8 years agoMerge pull request #6894 from adiaaida/morphingLongCall
Michelle McDaniel [Wed, 24 Aug 2016 19:54:59 +0000 (12:54 -0700)]
Merge pull request #6894 from adiaaida/morphingLongCall

Remove NYI for helper calls with long return types

8 years agoSome minor changes.
Gaurav Khanna [Wed, 24 Aug 2016 19:33:27 +0000 (12:33 -0700)]
Some minor changes.

8 years agoMerge pull request #6887 from BruceForstall/Fix6588a
Bruce Forstall [Wed, 24 Aug 2016 18:01:19 +0000 (11:01 -0700)]
Merge pull request #6887 from BruceForstall/Fix6588a

Fix local var ref counts in IND/STOREIND decomposition

8 years agoMerge pull request #6866 from tarekgh/GlobalizationPorting1
Tarek Mahmoud Sayed [Wed, 24 Aug 2016 17:54:28 +0000 (10:54 -0700)]
Merge pull request #6866 from tarekgh/GlobalizationPorting1

Enable more code under globalization for netcore

8 years agoFix full framework build
Jan Kotas [Wed, 24 Aug 2016 17:44:37 +0000 (10:44 -0700)]
Fix full framework build

[tfs-changeset: 1623920]

8 years agoRemove NYI for helper calls with long return types
Michelle McDaniel [Wed, 24 Aug 2016 15:38:48 +0000 (08:38 -0700)]
Remove NYI for helper calls with long return types

The LIR changes fixed the bug in the decomp and the dumper for morphing
nodes into helper calls with long return types, so this NYI can be
removed.

8 years agoMerge pull request #6882 from rahku/arm64tests
Rahul Kumar [Wed, 24 Aug 2016 06:32:05 +0000 (23:32 -0700)]
Merge pull request #6882 from rahku/arm64tests

ARM64: update tests.lst

8 years agoInitial commit to build Win32 Arm CoreCLR
Gaurav Khanna [Mon, 22 Aug 2016 16:45:43 +0000 (09:45 -0700)]
Initial commit to build Win32 Arm CoreCLR

8 years agoMerge pull request #6851 from ramarag/unifytestbuild
Rama krishnan Raghupathy [Wed, 24 Aug 2016 05:18:47 +0000 (22:18 -0700)]
Merge pull request #6851 from ramarag/unifytestbuild

Changing The way Coreclr Test Builds

8 years agoMerge pull request #6885 from BruceForstall/FixLIRComments
Bruce Forstall [Wed, 24 Aug 2016 04:37:42 +0000 (21:37 -0700)]
Merge pull request #6885 from BruceForstall/FixLIRComments

Fix DecomposeStoreInd comments

8 years agoMerge pull request #6869 from joperezr/AddingTimeZone
Jose Perez Rodriguez [Wed, 24 Aug 2016 03:59:36 +0000 (20:59 -0700)]
Merge pull request #6869 from joperezr/AddingTimeZone

Adding System.TimeZone

8 years agoModule.Name: Avoid unnecessary char[] allocation (#6865)
Justin Van Patten [Wed, 24 Aug 2016 03:21:45 +0000 (20:21 -0700)]
Module.Name: Avoid unnecessary char[] allocation (#6865)

Instead of `new string(s.ToCharArray(), i + 1, s.Length - i - 1)`, use
the simpler `string.Substring(i + 1)` to avoid the unnecessary
intermediate char[] allocation.

8 years agoDateTimeFormat: Avoid intermediate char[] allocation (#6863)
Justin Van Patten [Wed, 24 Aug 2016 03:16:22 +0000 (20:16 -0700)]
DateTimeFormat: Avoid intermediate char[] allocation (#6863)

An unnecessary intermediate char[] allocation can be avoided by calling
`new string(c, 1)` instead of `new string(new char[] { c })`.

8 years agoAllow to use clang 3.9 in build.sh (#6888)
Łukasz Domeradzki [Wed, 24 Aug 2016 02:42:55 +0000 (04:42 +0200)]
Allow to use clang 3.9 in build.sh (#6888)

Can be found e.g. in Debian Sid.

8 years ago Infra changes to unify the tests to be built against a common project.json.
Rama Krishnan Raghupathy [Wed, 24 Aug 2016 01:31:26 +0000 (18:31 -0700)]
  Infra changes to unify the  tests to be built against a common project.json.
   1. tests\src\Common\test_dependencies\project.json - To consume corefx and other nuget feeds

   2. tests\src\Common\empty\project.json - To build against the mscorlib facade,to use this just Add
            <ReferenceLocalMscorlib>true</ReferenceLocalMscorlib> to your project

8 years agoCosmetic changes, removing unnceseary files and entries in project files.
Rama Krishnan Raghupathy [Wed, 24 Aug 2016 01:29:55 +0000 (18:29 -0700)]
Cosmetic changes, removing unnceseary files and entries in project files.
    Unifying the way project referring mscorlib facade builds

8 years agoDisable downloading xplat binaries as we no longer need to build these packages in...
dotnet bot [Wed, 24 Aug 2016 00:53:29 +0000 (17:53 -0700)]
Disable downloading xplat binaries as we no longer need to build these packages in razzle. (#6871)

[tfs-changeset: 1623740]

8 years agoFix local var ref counts in IND/STOREIND decomposition
Bruce Forstall [Wed, 24 Aug 2016 00:38:30 +0000 (17:38 -0700)]
Fix local var ref counts in IND/STOREIND decomposition

When creating new references to a local variable in long decomposition,
the variable reference count must be incremented.

Fixes #6588

8 years agoFix DecomposeStoreInd comments
Bruce Forstall [Wed, 24 Aug 2016 00:10:31 +0000 (17:10 -0700)]
Fix DecomposeStoreInd comments

8 years agoupdate tests.lst
Rahul Kumar [Tue, 23 Aug 2016 23:58:22 +0000 (16:58 -0700)]
update tests.lst

8 years agoMoving baseservices tests to use uber project.json
Rama Krishnan Raghupathy [Sat, 20 Aug 2016 02:08:01 +0000 (19:08 -0700)]
Moving baseservices tests to use uber project.json

8 years agoBulk moving Tests to use uber project.json
Rama Krishnan Raghupathy [Sat, 20 Aug 2016 02:03:28 +0000 (19:03 -0700)]
Bulk moving Tests to use uber project.json

8 years agoMoving GC tests to use uber project.json
Rama Krishnan Raghupathy [Sat, 20 Aug 2016 02:01:27 +0000 (19:01 -0700)]
Moving GC tests to use uber project.json

8 years agoMerge pull request #6873 from BruceForstall/Fix6180
Bruce Forstall [Tue, 23 Aug 2016 23:15:44 +0000 (16:15 -0700)]
Merge pull request #6873 from BruceForstall/Fix6180

Reenable tests

8 years agoMerge pull request #6878 from terrajobst/master
Immo Landwerth [Tue, 23 Aug 2016 23:10:48 +0000 (16:10 -0700)]
Merge pull request #6878 from terrajobst/master

Add section on how to file security bugs

8 years agoEnable more code under globalization for netcore
Tarek Mahmoud Sayed [Tue, 23 Aug 2016 18:23:19 +0000 (11:23 -0700)]
Enable more code under globalization for netcore
This fix is to enable the code handling LCID for Windows in globalization namespace

8 years agoAdd section on how to file security bugs
Barry Dorrans [Tue, 23 Aug 2016 22:58:44 +0000 (15:58 -0700)]
Add section on how to file security bugs

8 years agoStop maintaining costs in fgSimpleLowering. (#6872)
Pat Gavlin [Tue, 23 Aug 2016 22:41:09 +0000 (15:41 -0700)]
Stop maintaining costs in fgSimpleLowering. (#6872)

This was causing a few asserts on x86.

8 years agoMerge pull request #6868 from mmitche/disable-node-reuse
Matt Mitchell [Tue, 23 Aug 2016 22:34:40 +0000 (15:34 -0700)]
Merge pull request #6868 from mmitche/disable-node-reuse

Disable node reuse

8 years agoMerge pull request #6858 from adiaaida/fixBuildsh
Michelle McDaniel [Tue, 23 Aug 2016 21:34:47 +0000 (14:34 -0700)]
Merge pull request #6858 from adiaaida/fixBuildsh

Fix ConfigureOnly option in build.sh

8 years agoReenable tests
Bruce Forstall [Tue, 23 Aug 2016 21:22:48 +0000 (14:22 -0700)]
Reenable tests

The tests disabled due to the assert in #6180 no longer fail
(possibly as a side-effect of the LIR backend changes?), so
reenable them.

8 years agoDisable node reuse
Matt Mitchell [Tue, 23 Aug 2016 19:03:41 +0000 (12:03 -0700)]
Disable node reuse

8 years agoMerge pull request #6815 from rahku/apicompat
Rahul Kumar [Tue, 23 Aug 2016 20:34:30 +0000 (13:34 -0700)]
Merge pull request #6815 from rahku/apicompat

Expose MulticastDelegate.GetObjectData method

8 years agoAdd missing .gitmirror file. (#6864)
dotnet bot [Tue, 23 Aug 2016 19:58:41 +0000 (12:58 -0700)]
Add missing .gitmirror file. (#6864)

[tfs-changeset: 1623730]

8 years agoAdding System.TimeZone
Jose Perez Rodriguez [Tue, 23 Aug 2016 16:31:05 +0000 (09:31 -0700)]
Adding System.TimeZone

8 years agoFix the ninja build for FC23. (#6861)
Pat Gavlin [Tue, 23 Aug 2016 17:18:54 +0000 (10:18 -0700)]
Fix the ninja build for FC23. (#6861)

Fedora installs ninja under the name `ninja-build` rather than `ninja`.

8 years agoStop maintaining cost estimates in the RyuJIT backend. (#6849)
Pat Gavlin [Tue, 23 Aug 2016 16:36:27 +0000 (09:36 -0700)]
Stop maintaining cost estimates in the RyuJIT backend. (#6849)

* Summarize HIR cost estimates on Compiler.

These cost estimates are made on HIR and are not used by the backend.
Stash them before converting the function to LIR and report them at the
end of compilation.

* Stop maintaining costs in the backend.

The backend does not use the tree cost estimates.

* Remove a bit more cost maintenance.

* Address PR feedback.

8 years agoMerge pull request #6852 from BruceForstall/Disable4702
Bruce Forstall [Tue, 23 Aug 2016 16:32:42 +0000 (09:32 -0700)]
Merge pull request #6852 from BruceForstall/Disable4702

Conditionally disable C4702 "unreachable code" warnings

8 years agoFix ConfigureOnly option in build.sh
Michelle McDaniel [Mon, 22 Aug 2016 18:01:41 +0000 (11:01 -0700)]
Fix ConfigureOnly option in build.sh

ConfigureOnly is intended to run the CMake to configure the build, but
nothing else. However, when you passed configureonly to build.sh, it set
__SkipConfigure=1, which made it skip the configure step of the build.
This change fixes that by removing that option from the options set my
configureonly, and adds a check right after configure and right before
running the build to exit if we are only configuring.

8 years agoAdding missing members on System Namespace (#6818)
Jose Perez Rodriguez [Tue, 23 Aug 2016 15:40:23 +0000 (08:40 -0700)]
Adding missing members on System Namespace (#6818)

Adding missing members on System Namespace

8 years agoMerge pull request #6664 from dagood/update-existing-pr
Davis Goodin [Tue, 23 Aug 2016 15:28:31 +0000 (10:28 -0500)]
Merge pull request #6664 from dagood/update-existing-pr

Use versions repo tooling from BuildTools

8 years agoMerge pull request #6848 from BruceForstall/FixArm64SuperPmi2
Bruce Forstall [Tue, 23 Aug 2016 04:52:16 +0000 (21:52 -0700)]
Merge pull request #6848 from BruceForstall/FixArm64SuperPmi2

Fix superpmi arm64 build

8 years agoMerge pull request #6846 from BruceForstall/FixSuperPmiX86
Bruce Forstall [Tue, 23 Aug 2016 04:44:29 +0000 (21:44 -0700)]
Merge pull request #6846 from BruceForstall/FixSuperPmiX86

Reenable superpmi test for x86

8 years agoConditionally disable C4702 "unreachable code" warnings
Bruce Forstall [Tue, 23 Aug 2016 00:34:44 +0000 (17:34 -0700)]
Conditionally disable C4702 "unreachable code" warnings

The CLR header file check.h, macro CHECK_MSG_EX, can create unreachable code if the LEAVE_DEBUG_ONLY_CODE
macro is not empty (such as it is defined in contract.h) and the _RESULT macro expands to "return".
Checked-in compilers used by the TFS-based desktop build (e.g., version 18.10.40116.8) started reporting
unreachable code warnings when debugholder.h was changed to no longer #define "return" to something relatively
complex. However, newer compilers, such as Visual Studio 2015, used to build the CLR from the open source
GitHub repo, still do not report this warning. We don't want to disable this warning for the open source build,
which will use a newer compiler. Hence, only disable it for older compilers.

8 years agoFix SOS build break from PR #6838. (#6845)
dotnet bot [Tue, 23 Aug 2016 00:02:16 +0000 (17:02 -0700)]
Fix SOS build break from PR #6838. (#6845)

[tfs-changeset: 1623588]

8 years agoMerge pull request #6847 from jhendrixMSFT/master
Joel Hendrix [Mon, 22 Aug 2016 23:25:43 +0000 (16:25 -0700)]
Merge pull request #6847 from jhendrixMSFT/master

Use the "open" key for strong-name signing SOS.NETCore.dll.

8 years agoAdding the missing string function to model.xml (#6694)
Jonathan Miller [Mon, 22 Aug 2016 23:17:09 +0000 (16:17 -0700)]
Adding the missing string function to model.xml (#6694)

* Adding + stubbing out the missing Globalization functions
* Doing the correct native implementation now...

8 years agoMerge pull request #6850 from mmitche/fix-regex
Matt Mitchell [Mon, 22 Aug 2016 23:16:15 +0000 (16:16 -0700)]
Merge pull request #6850 from mmitche/fix-regex

Fix regex

8 years agoFix regex
Matt Mitchell [Mon, 22 Aug 2016 23:14:43 +0000 (16:14 -0700)]
Fix regex

8 years agoMerge pull request #6822 from smile21prc/coreclr-perf
smile21prc [Mon, 22 Aug 2016 22:54:07 +0000 (15:54 -0700)]
Merge pull request #6822 from smile21prc/coreclr-perf

Automate enhancement on the perf data collection for JIT CodeQuality benchmarks on Windows.

8 years agoFix superpmi arm64 build
Bruce Forstall [Mon, 22 Aug 2016 22:08:25 +0000 (15:08 -0700)]
Fix superpmi arm64 build

8 years agoUse the "open" key for strong-name signing SOS.NETCore.dll.
Joel Hendrix [Mon, 22 Aug 2016 21:51:48 +0000 (14:51 -0700)]
Use the "open" key for strong-name signing SOS.NETCore.dll.

Switch to using the OSS strong name instead of the default MSFT one.

8 years agoReenable superpmi test for x86
Bruce Forstall [Mon, 22 Aug 2016 21:10:50 +0000 (14:10 -0700)]
Reenable superpmi test for x86

Replace Roslyn CscBench with Bytemark, since CscBench fails with
an inlining assert (opened as issue #6844) on x86.

8 years agoRemove fgDebugCheckLinear{Tree,NodeLinks}. (#6842)
Pat Gavlin [Mon, 22 Aug 2016 21:01:31 +0000 (14:01 -0700)]
Remove fgDebugCheckLinear{Tree,NodeLinks}. (#6842)

These functions are not necessary for LIR.

8 years agoUse versions repo tooling from BuildTools.
Davis Goodin [Mon, 8 Aug 2016 23:45:59 +0000 (18:45 -0500)]
Use versions repo tooling from BuildTools.

Sets up dependencies.props config. Removes UpdateDependencies powershell script, to be replaced by a call into VersionTools in Maestro automation. Changes UpdatePublishedVersions to pass through to VersionTools for backward compatibility.

8 years agoMerge pull request #6840 from hann013/t-hazhan/SuppressIldasmAttribute
Hannah Zhang [Mon, 22 Aug 2016 20:12:48 +0000 (13:12 -0700)]
Merge pull request #6840 from hann013/t-hazhan/SuppressIldasmAttribute

Added SuppressIldasmAttribute

8 years agoMerge pull request #6821 from mellinoe/opensuse421
Eric Mellino [Mon, 22 Aug 2016 17:29:35 +0000 (10:29 -0700)]
Merge pull request #6821 from mellinoe/opensuse421

Add a CI job for openSUSE 42.1

8 years agoAdded SuppressIldasmAttribute to mscorlib and model.xml
Hannah Zhang [Mon, 22 Aug 2016 17:24:29 +0000 (10:24 -0700)]
Added SuppressIldasmAttribute to mscorlib and model.xml

8 years agoMerge pull request #6806 from wateret/fix-hfa
Brian Sullivan [Mon, 22 Aug 2016 14:05:34 +0000 (07:05 -0700)]
Merge pull request #6806 from wateret/fix-hfa

[ARM/Linux] Fix HFA structs

8 years agoFurther optimizations for String.Join, String.Concat (#6800)
James Ko [Mon, 22 Aug 2016 02:00:19 +0000 (22:00 -0400)]
Further optimizations for String.Join, String.Concat (#6800)

* Apply length-1 optimization to Join(string, object[])
* Apply length-1 optimization to Concat(IEnumerable<string>)
* Apply length-1 optimization to Concat(IEnumerable<T>)
* Apply lengths 0/1 optimizations to Concat(object[]), Concat(string[])

8 years ago[ARM/Linux] Fix HFA structs
Hanjoung Lee [Fri, 19 Aug 2016 07:32:00 +0000 (16:32 +0900)]
[ARM/Linux] Fix HFA structs

Re-enable FEATURE_MULTIREG_RET for ARM32 which was disabled by #6467.

Fix #6677

8 years agoMerge pull request #6832 from dotnet-bot/from-tfs
Bruce Forstall [Sun, 21 Aug 2016 03:51:31 +0000 (20:51 -0700)]
Merge pull request #6832 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoMerge remote-tracking branch 'upstream/master' into from-tfs
Matt Ellis [Sun, 21 Aug 2016 01:29:38 +0000 (18:29 -0700)]
Merge remote-tracking branch 'upstream/master' into from-tfs

8 years agoDisable SuperPMI unit test for x86 legacy backend
Bruce Forstall [Sat, 20 Aug 2016 20:27:20 +0000 (13:27 -0700)]
Disable SuperPMI unit test for x86 legacy backend

[tfs-changeset: 1623421]

8 years agoSuperPMI: fix ARM build break
Bruce Forstall [Sat, 20 Aug 2016 20:15:09 +0000 (13:15 -0700)]
SuperPMI: fix ARM build break

[tfs-changeset: 1623419]

8 years agoAssert that any node with a non-zero dstCount produces a value. (#6827)
Pat Gavlin [Sat, 20 Aug 2016 17:41:28 +0000 (10:41 -0700)]
Assert that any node with a non-zero dstCount produces a value. (#6827)

* Assert that any node with a non-zero dstCount produces a value.

The register allocator will otherwise misallocate, as such nodes will
produce an unconsumed value.

* Fix the dstCount for GT_RETFILT.

8 years agoDisable superpmi test for RyuJIT/x86
Bruce Forstall [Sat, 20 Aug 2016 17:15:38 +0000 (10:15 -0700)]
Disable superpmi test for RyuJIT/x86

[tfs-changeset: 1623413]

8 years agoFix build break related to LogException requiring non-empty varargs arguments
Bruce Forstall [Sat, 20 Aug 2016 17:07:50 +0000 (10:07 -0700)]
Fix build break related to LogException requiring non-empty varargs arguments

[tfs-changeset: 1623412]

8 years agoFix ARM64 build breakage (#6819)
Peter Jas [Sat, 20 Aug 2016 07:05:50 +0000 (10:05 +0300)]
Fix ARM64 build breakage (#6819)

8 years agoDelete CanChangeType from model.xml
Jan Kotas [Sat, 20 Aug 2016 06:51:25 +0000 (23:51 -0700)]
Delete CanChangeType from model.xml

[tfs-changeset: 1623392]

8 years agoFix build breaks and warnings in internal build
Jan Kotas [Sat, 20 Aug 2016 03:28:13 +0000 (20:28 -0700)]
Fix build breaks and warnings in internal build

[tfs-changeset: 1623382]

8 years agoMerge pull request #6793 from erozenfeld/TailCallInCalleeInlining
Eugene Rozenfeld [Sat, 20 Aug 2016 01:47:13 +0000 (18:47 -0700)]
Merge pull request #6793 from erozenfeld/TailCallInCalleeInlining

Don't inline methods that have tail-prefixed calls.

8 years agoFix casing of DaylightTime.cs
Jose Perez Rodriguez [Sat, 20 Aug 2016 00:41:31 +0000 (17:41 -0700)]
Fix casing of DaylightTime.cs

[tfs-changeset: 1623368]

8 years agoMerge pull request #6799 from adityamandaleeka/osx_ci_dumps
Aditya Mandaleeka [Sat, 20 Aug 2016 00:29:09 +0000 (17:29 -0700)]
Merge pull request #6799 from adityamandaleeka/osx_ci_dumps

Enable additional functionality for OS X CI dumps.

8 years agoMerge pull request #6816 from CarolEidt/FixArmCrossgen2
Carol Eidt [Fri, 19 Aug 2016 23:39:19 +0000 (16:39 -0700)]
Merge pull request #6816 from CarolEidt/FixArmCrossgen2

Fix dstCount of GT_RETURNTRAP for Arm64

8 years agoInstead of checking in these python tools, pull them from Nuget package instead.
Smile Wei [Fri, 19 Aug 2016 23:37:12 +0000 (16:37 -0700)]
Instead of checking in these python tools, pull them from Nuget package instead.

8 years agoCreate SOS SymbolReader managed project and change SOS to use it. (#6783)
Mike McLaughlin [Fri, 19 Aug 2016 23:06:56 +0000 (16:06 -0700)]
Create SOS SymbolReader managed project and change SOS to use it. (#6783)

* Change SOS to use wrapper class that is now in System.Diagnostics.StackTrace.

The portable PDB helper code for SOS source/line support has been moved from
System.Diagnostics.Debug.SymbolReader to a new managed SOS project in the coreclr
repo called SOS.NETCore.

The public APIs have now been made internal.

Plumb through the loaded PE address to the managed SymbolReader functions so it can be used as a key.

Fixed a stack trashing/overflow when a unresolved managed breakpoint is resolved because one of the
module name buffers was too small (MAX_PATH_FNAME). Changed it (and others) to MAXLONGPATH.

SOS now works with Portable PDBs on Windows.

New dac private get module data request. Used to get the necessary info for portable PDBs.

SOS now supports in-memory PE's on xplat and Windows. Needed to get and plumb though the in-memory
PE layout where it is file based or loaded.

Better Windows GetLineByILOffset support. Uses the SymbolReader and now works with in-memory PEs.

Misc code formatting and general cleanup.

* Code review feedback.

8 years agoOpen source SuperPMI
Bruce Forstall [Fri, 19 Aug 2016 22:56:04 +0000 (15:56 -0700)]
Open source SuperPMI

OVERVIEW
========

This directory contains the SuperPMI tool used for testing the .NET
just-in-time (JIT) compiler.

SuperPMI has two uses:
1. Verification that a JIT code change doesn't cause any asserts.
2. Finding test code where two JIT compilers generate different code, or verifying
that the two compilers generate the same code.

Case #1 is useful for doing quick regression checking when making a source
code change to the JIT compiler. The process is: (a) make a JIT source code
change, (b) run that newly built JIT through a SuperPMI run to verify no
asserts have been introduced.

Case #2 is useful for generating assembly language diffs, to help analyze the
impact of a JIT code change.

SuperPMI works in two phases: collection and playback. In the collection phase,
the system is configured to collect SuperPMI data. Then, run any set of .NET managed
programs. When these managed programs invoke the JIT compiler, SuperPMI gathers and
captures all information passed between the JIT and its .NET host. In the
playback phase, SuperPMI loads the JIT directly, and causes it to compile all
the functions that it previously compiled, but using the collected data to
provide answers to various questions that the JIT needs to ask. The .NET
execution engine (EE) is not invoked at all.

TOOLS
==========

There are two native executable tools: superpmi and mcs. There is a .NET Core
C# program that is built as part of the coreclr repo tests build called
superpmicollect.exe.

All will show a help screen if passed -?.

COLLECTION
==========

Set the following environment variables:

SuperPMIShimLogPath=<full path to an empty temporary directory>
SuperPMIShimPath=<full path to clrjit.dll, the "standalone" JIT>
COMPlus_AltJit=*
COMPlus_AltJitName=superpmi-shim-collector.dll

(On Linux, use libclrjit.so and libsuperpmi-shim-collector.so. On Mac,
use libclrjit.dylib and libsuperpmi-shim-collector.dylib.)

Then, run some managed programs. When done running programs, un-set these variables.

Now, you will have a large number of .mc files. Merge these using the mcs
tool:

mcs -merge base.mch *.mc

One benefit of SuperPMI is the ability to remove duplicated compilations, so
on replay only unique functions are compiled. Use the following to create a
"unique" set of functions:

mcs -removeDup -thin base.mch unique.mch

Note that -thin is not required. However, it will delete all the compilation
result collected during the collection phase, which makes the resulting MCH
file smaller. Those compilation results are not required for playback.

Use the superpmicollect.exe tool to automate and simplify this process.

PLAYBACK
========

Once you have a merged, de-duplicated MCH collection, you can play it back
using:

superpmi unique.mch clrjit.dll

You can do this much faster by utilizing all the processors on your machine,
and replaying in parallel, using:

superpmi -p unique.mch clrjit.dll

REMAINING WORK
=============

The basic of assembly diffing are there, using the "coredistools"
package. The open source build needs to be altered to use this package
to wire up the correct build steps.

[tfs-changeset: 1623347]

8 years agoDon't inline methods that have tail-prefixed calls.
Eugene Rozenfeld [Thu, 18 Aug 2016 17:28:37 +0000 (10:28 -0700)]
Don't inline methods that have tail-prefixed calls.

This commit changes the inlining behavior when the callee has tail-prefixed calls.
The jit was turning tail-prefixed calls in inlinees into normal calls. That means that
in some cases tail prefix wasn't honored. I changed the code to not inline such callees.
This matches the behavior of the legacy x64 jit. A possible improvement would be to allow
inlining when the tail-prefixed calls in the inlinee could still be dispatched as tail calls from the caller.

I enabled TailcallVerifyWithPrefix set of tests. They were disabled because Condition8.Test1, Condition8.Test2,
and Condition8.Test3 used varargs calling convention. I commented out code that was calling those tests.
I didn't delete them in case CoreCLR will support varargs in the future.

I also turned on Condition21.Test1, Condition21.Test2, Condition21.Test3, Condition21.Test6, and Condition21.Test7.
Condition21.Test3 is the test that was failing because the jit was inlining calees with tail-prefixed calls.
The other Condition21 tests above were passing and just weren't called.

8 years agoUse getBootstrapPublishRid function to override __PUBLISH_RID while bringing up new...
Eric Mellino [Fri, 19 Aug 2016 17:15:12 +0000 (10:15 -0700)]
Use getBootstrapPublishRid function to override __PUBLISH_RID while bringing up new platforms

8 years ago1. Enable machine data collection.
Smile Wei [Fri, 19 Aug 2016 22:34:51 +0000 (15:34 -0700)]
1. Enable machine data collection.
2. Upload generated machinedata.json and all perf-*.xml files to /artifact/ Jenkins dir.
3. Enable InstRetired.
4. Force the perf runs to use physical machines.
5. Add test name, and benchmark InstRetired to the console output per Eugene's request.

8 years agoSupport MSBuild on opensuse.42.1-x64
Eric Mellino [Thu, 18 Aug 2016 17:53:01 +0000 (10:53 -0700)]
Support MSBuild on opensuse.42.1-x64

8 years agoAdd a run for opensuse 42.1
Eric Mellino [Wed, 17 Aug 2016 22:49:15 +0000 (15:49 -0700)]
Add a run for opensuse 42.1

8 years agoMerge pull request #6813 from CarolEidt/FixArmCrossgen
Carol Eidt [Fri, 19 Aug 2016 22:28:23 +0000 (15:28 -0700)]
Merge pull request #6813 from CarolEidt/FixArmCrossgen

Fix One Arm64 crossgen failure

8 years agoMerge pull request #6811 from mellinoe/update-buildtools
Eric Mellino [Fri, 19 Aug 2016 22:17:04 +0000 (15:17 -0700)]
Merge pull request #6811 from mellinoe/update-buildtools

Update buildtools to 1.0.26-prerelease-00718-04, remove duplicate props

8 years agoAutomate the perf data collection for JIT CodeQuality benchmarks on Windows.
Smile Wei [Wed, 3 Aug 2016 22:20:15 +0000 (15:20 -0700)]
Automate the perf data collection for JIT CodeQuality benchmarks on Windows.

Fix a quote.