platform/upstream/coreclr.git
7 years agoMerge pull request #7530 from ramarag/StrongNameKeyPair
Rama krishnan Raghupathy [Mon, 10 Oct 2016 21:18:26 +0000 (14:18 -0700)]
Merge pull request #7530 from ramarag/StrongNameKeyPair

Strong name key pair

7 years agoExposing StrongNameKeyPair
Rama Krishnan Raghupathy [Fri, 7 Oct 2016 23:36:46 +0000 (16:36 -0700)]
Exposing StrongNameKeyPair

7 years agoMerge pull request #7543 from JosephTremoulet/NoRngChecks_Rel
Joseph Tremoulet [Mon, 10 Oct 2016 19:01:43 +0000 (15:01 -0400)]
Merge pull request #7543 from JosephTremoulet/NoRngChecks_Rel

Stop making JitNoRngChecks debug-only

7 years agoFix buffer length usage in UTF-8 to Unicode conversion (#7540)
John Chen [Mon, 10 Oct 2016 16:39:08 +0000 (09:39 -0700)]
Fix buffer length usage in UTF-8 to Unicode conversion (#7540)

These changes are ported from desktop CLR.

7 years agoFix various CustomAttributeBuilder bugs (#7206)
Hugh Bellamy [Mon, 10 Oct 2016 15:54:41 +0000 (16:54 +0100)]
Fix various CustomAttributeBuilder bugs (#7206)

Fix various CustomAttributeBuilder bugs

7 years agoStop making JitNoRngChecks debug-only
Joseph Tremoulet [Mon, 10 Oct 2016 14:48:56 +0000 (10:48 -0400)]
Stop making JitNoRngChecks debug-only

JitNoRngChecks is a flag, only available in special builds, that removes
all array bounds checks from generated code, which exists solely to
facilitate experiments measuring the cost of bounds checks.  Commit
0aebfbef0 added support for it to RyuJit, but accidentally did so only for
debug builds; release `FEATURE_ENABLE_NO_RANGE_CHECKS` builds are
currently broken.

This change makes the jit flag's definition available in release builds
with `FEATURE_ENABLE_NO_RANGE_CHECKS` defined as well.  The corresponding
code in clrconfigvalues.h already works that way.

7 years agoMerge pull request #7538 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Sun, 9 Oct 2016 15:32:34 +0000 (08:32 -0700)]
Merge pull request #7538 from dotnet-bot/master-UpdateDependencies

Update CoreClr to beta-24609-02 (master)

7 years agoUpdate CoreClr to beta-24609-02
dotnet-bot [Sun, 9 Oct 2016 08:15:37 +0000 (08:15 +0000)]
Update CoreClr to beta-24609-02

7 years agoAdd test to validate ByRef type unification (#7534)
Michal Strehovský [Sun, 9 Oct 2016 04:59:20 +0000 (21:59 -0700)]
Add test to validate ByRef type unification (#7534)

Make sure that `ldtoken SomeType&` leads to the same type as `ldtoken
SomeType` followed by `MakeByRefType`.

7 years agoImplement CultureNotFoundException id-based ctors (#7536)
Stephen Toub [Sun, 9 Oct 2016 04:59:01 +0000 (00:59 -0400)]
Implement CultureNotFoundException id-based ctors (#7536)

7 years agoMerge pull request #7531 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Sun, 9 Oct 2016 02:27:48 +0000 (19:27 -0700)]
Merge pull request #7531 from dotnet-bot/master-UpdateDependencies

Update CoreClr, CoreFx to beta-24609-01, beta-24608-01, respectively (master)

7 years agoUpdate CoreClr, CoreFx to beta-24609-01, beta-24608-01, respectively
dotnet-bot [Sun, 9 Oct 2016 00:13:50 +0000 (00:13 +0000)]
Update CoreClr, CoreFx to beta-24609-01, beta-24608-01, respectively

7 years agoStandardize on _echo name (#7532)
Vance Morrison [Sat, 8 Oct 2016 06:08:38 +0000 (23:08 -0700)]
Standardize on _echo name (#7532)

7 years agoMerge pull request #7521 from vkvenkat/master
Sergiy Kuryata [Sat, 8 Oct 2016 00:13:06 +0000 (17:13 -0700)]
Merge pull request #7521 from vkvenkat/master

Fixed #7519 - Dotnet crashes while saturating multiple CPU groups on Windows

7 years agoReturn null on allocation failure due to OOM instead of throwing a exception from...
Sean Gillespie [Fri, 7 Oct 2016 22:11:32 +0000 (15:11 -0700)]
Return null on allocation failure due to OOM instead of throwing a exception from within the GC (#7501)

7 years agoDisable CER code that is causing access violation
John Chen (CLR) [Fri, 7 Oct 2016 19:46:16 +0000 (12:46 -0700)]
Disable CER code that is causing access violation

Resolves issue dotnet/corefx#12412.

7 years agoMerge pull request #7522 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Fri, 7 Oct 2016 20:57:28 +0000 (13:57 -0700)]
Merge pull request #7522 from dotnet-bot/master-UpdateDependencies

Update CoreClr, CoreFx to beta-24607-03, beta-24607-05, respectively (master)

7 years agoMerge pull request #7520 from pgavlin/PutStructArgStk
Pat Gavlin [Fri, 7 Oct 2016 20:08:40 +0000 (13:08 -0700)]
Merge pull request #7520 from pgavlin/PutStructArgStk

Refactor genPutStructArgStk for clarity.

7 years agoFix formatting.
Pat Gavlin [Fri, 7 Oct 2016 18:15:44 +0000 (11:15 -0700)]
Fix formatting.

7 years agoUpdate CoreClr, CoreFx to beta-24607-03, beta-24607-05, respectively
dotnet-bot [Fri, 7 Oct 2016 18:39:53 +0000 (18:39 +0000)]
Update CoreClr, CoreFx to beta-24607-03, beta-24607-05, respectively

7 years agoFixed #7519 - Dotnet crashes while saturating multiple CPU groups on Windows
vkvenkat [Fri, 7 Oct 2016 16:53:09 +0000 (09:53 -0700)]
Fixed #7519 - Dotnet crashes while saturating multiple CPU groups on Windows

7 years agoRefactor genPutStructArgStk for clarity.
Pat Gavlin [Fri, 7 Oct 2016 17:38:48 +0000 (10:38 -0700)]
Refactor genPutStructArgStk for clarity.

This also contains a minor CQ improvement: instead of always
incrementing the source and destination pointers when copying a struct
argument to the stack, we now only do so if there are more slots to
copy.

7 years agoMerge pull request #7515 from BruceForstall/FixMerge
Bruce Forstall [Fri, 7 Oct 2016 16:29:02 +0000 (09:29 -0700)]
Merge pull request #7515 from BruceForstall/FixMerge

Fix bad merge

7 years agoMerge pull request #7509 from sandreenko/master
sandreenko [Fri, 7 Oct 2016 15:46:34 +0000 (08:46 -0700)]
Merge pull request #7509 from sandreenko/master

Set missed default value for coreclr runtest.cmd #7488.

7 years agoMerge pull request #7514 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Fri, 7 Oct 2016 14:58:47 +0000 (07:58 -0700)]
Merge pull request #7514 from dotnet-bot/master-UpdateDependencies

Update CoreClr, CoreFx to beta-24607-02, beta-24607-03, respectively (master)

7 years agoMerge pull request #7466 from adiaaida/fix7224
Michelle McDaniel [Fri, 7 Oct 2016 13:56:45 +0000 (06:56 -0700)]
Merge pull request #7466 from adiaaida/fix7224

Force byteable registers for indir op source

7 years agoForce byteable registers for indir op source
Michelle McDaniel [Mon, 3 Oct 2016 21:49:19 +0000 (14:49 -0700)]
Force byteable registers for indir op source

When we have a GT_STOREIND, we need to not only make sure that the
source and dest of the storeind are marked as requiring byteable
registers, but also the indirect op's source. For example:

```
GT_STOREIND(GT_ADD(TYP_INT, mem of TYP_BYTE, reg of TYP_INT or TYP_BYTE))
```

We need to make sure that the source reg of the GT_ADD is byteable.

This change fixes #7224.

7 years agoUpdate CoreClr, CoreFx to beta-24607-02, beta-24607-03, respectively
dotnet-bot [Fri, 7 Oct 2016 08:15:03 +0000 (08:15 +0000)]
Update CoreClr, CoreFx to beta-24607-02, beta-24607-03, respectively

7 years agoEnable netstandard1.7 collations APIs (#7502)
Tarek Mahmoud Sayed [Fri, 7 Oct 2016 07:07:04 +0000 (00:07 -0700)]
Enable netstandard1.7 collations APIs (#7502)

* Enable netstandard1.7 collations APIs

This change is adding the netstandard 1.7 APIs to CompareInfo class and adding support to SortKey and SortVersion classes
The change include some support in cultureinfo and culturedata for locale Id's too which is used by CompareInfo class

* optimize the globalization data so we'll have faster initialization

* Remove security attributes

7 years agoRestore some changes lost in a merge conflict (#7512)
Sean Gillespie [Fri, 7 Oct 2016 01:51:10 +0000 (18:51 -0700)]
Restore some changes lost in a merge conflict (#7512)

7 years agoFix bad merge
Bruce Forstall [Fri, 7 Oct 2016 00:36:59 +0000 (17:36 -0700)]
Fix bad merge

A previous checkin backed-out a change that moved one test out of
the RyuJIT/x86 section. I'm reverting that, and putting the test
exclusion back where it should be.

At the same time, now that there are no RyuJIT/x86 test exclusions,
I'm deleting the RyuJIT/x86 section.

7 years agoMerge pull request #7490 from BruceForstall/EnableLegacy
Bruce Forstall [Fri, 7 Oct 2016 00:24:32 +0000 (17:24 -0700)]
Merge pull request #7490 from BruceForstall/EnableLegacy

Enable COMPlus_useLegacyJit=1 for CoreCLR for x86

7 years agoMerge pull request #7507 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Thu, 6 Oct 2016 20:15:03 +0000 (13:15 -0700)]
Merge pull request #7507 from dotnet-bot/master-UpdateDependencies

Update CoreClr, CoreFx to beta-24606-03, beta-24606-02, respectively (master)

7 years agoMerge pull request #7504 from pgavlin/NormalizeSpills
Pat Gavlin [Thu, 6 Oct 2016 19:37:58 +0000 (12:37 -0700)]
Merge pull request #7504 from pgavlin/NormalizeSpills

Always normalize stores when spilling lclVars.

7 years agoSet missed default value for coreclr runtest.cmd.
Sergey Andreenko [Thu, 6 Oct 2016 18:56:40 +0000 (11:56 -0700)]
Set missed default value for coreclr runtest.cmd.

__MSBuildBuildArch is set to x64 by default like __BuildArch. Fix 7488.

7 years agoEnable legacy JIT fallback for CoreCLR on Windows x86
Bruce Forstall [Tue, 4 Oct 2016 22:12:46 +0000 (15:12 -0700)]
Enable legacy JIT fallback for CoreCLR on Windows x86

This is to support the eventual case where RyuJIT/x86 becomes the default
x86 JIT, but we support fallback to the older, legacy JIT32/x86 (which
will be renamed compatjit.dll). This uses the same mechanism that was
built for .NET 4.6 when RyuJIT/x64 was shipped, and allowed fallback
to JIT64 as compatjit.dll.

However, we use a different configuration name to avoid conflicting
with the .NET 4.6 COMPlus_useLegacy name (and unintentionally causing
users to fall back to JIT64 with their .NET 4.6 apps).

The COMPlus variable is COMPlus_UseWindowsX86CoreLegacyJit=1. For the
dotnet.exe host, you can set `"System.JIT.UseWindowsX86CoreLegacyJit": true`
in the "configProperties" section of the app.runtimeconfig.json file.

There is a new COMPlus_RequireLegacyJit=1 option to aid testing JIT
fallback.

7 years agoFix a typo and a formatting issue.
Pat Gavlin [Thu, 6 Oct 2016 17:43:00 +0000 (10:43 -0700)]
Fix a typo and a formatting issue.

7 years agoAlways normalize stores when spilling lclVars.
Pat Gavlin [Wed, 5 Oct 2016 20:43:10 +0000 (13:43 -0700)]
Always normalize stores when spilling lclVars.

In order to support the semantics of the MSIL evaluation stack, RyuJIT
normalizes all "small" lclVars (i.e. lclVars with a non-struct
type that is smaller than an int32) from the actual type of the lclVar
to int32. This normalization may be performed in one of two ways:
- the lclVar's may be normalized when the lclVar is used (load
  normalization)
- at any point at which the value is defined, the value being stored to
  the lclVar is normalized (store normalization)

Store normalization must not be used if the lclVar is aliasable, since
the contents of the upper bytes for that lclVar's slot may be modified
by some other alias. Load normalization must be used if the lclVar is
a method parameter, as there is no guarantee that the caller has
properly nomralized the arguments it has passed. As such, any lclVar
that is either aliasable or is a method parameter is load-normalized,
and any other lclVar is store-normalized. lclVars that are
store-normalized are assumed to be represented as properly zero- or
sign-extended 4-byte values at all times, and so can simply be loaded
as int32s.

This picture becomes somewhat more subtle after register allocation,
however: once a lclVar has been enregistered, the contents of its
register are guaranteed to be properly zero- or sign-extended for the
purposes of store normalization, and in order for the lclVar to have
been enregistered in the first place, it must not have been aliasable.
As such, all enregistered variables may be store-normalized (as well as
load-normalized, if they represent method parameters). This has a
particularly significant impact on spills, as it implies that even if
the lclVar being spilled is not normally considered store-normalized, it
may be considered so for the purposes of the spill. This is advantageous
for architectures such as x86, as it allows a small lclVar to be
successfully spilled from a register that is not addressable at the size
of the lclVar's type. This change switches both LSRA and the code
generator to always use the actual type of a spilled lclVar for the
corresponding store rather than making this behavior conditional on
whether or not the lclVar is store-normalized.

Fixes #7236.

7 years agoUpdate CoreClr, CoreFx to beta-24606-03, beta-24606-02, respectively
dotnet-bot [Thu, 6 Oct 2016 16:18:36 +0000 (16:18 +0000)]
Update CoreClr, CoreFx to beta-24606-03, beta-24606-02, respectively

7 years agoFix incorrect index for localsDebug array (#7495)
Evgeny Pavlov [Thu, 6 Oct 2016 14:30:42 +0000 (17:30 +0300)]
Fix incorrect index for localsDebug array (#7495)

7 years agoMerge pull request #7505 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Thu, 6 Oct 2016 13:08:57 +0000 (06:08 -0700)]
Merge pull request #7505 from dotnet-bot/master-UpdateDependencies

Update CoreClr, CoreFx to beta-24606-02, beta-24606-01, respectively (master)

7 years agoUpdate CoreClr, CoreFx to beta-24606-02, beta-24606-01, respectively
dotnet-bot [Thu, 6 Oct 2016 08:11:25 +0000 (08:11 +0000)]
Update CoreClr, CoreFx to beta-24606-02, beta-24606-01, respectively

7 years agoMerge pull request #7486 from CarolEidt/Fix7008
Carol Eidt [Wed, 5 Oct 2016 23:44:49 +0000 (16:44 -0700)]
Merge pull request #7486 from CarolEidt/Fix7008

Support double-aligned frames for RyuJIT/x86

7 years agoMerge pull request #7500 from mikedn/and-cmp-to-test
Sivarv [Wed, 5 Oct 2016 23:08:34 +0000 (16:08 -0700)]
Merge pull request #7500 from mikedn/and-cmp-to-test

Fix and-cmp to test recognition

7 years agoSupport double-aligned frames for RyuJIT/x86
Carol Eidt [Tue, 4 Oct 2016 20:29:08 +0000 (13:29 -0700)]
Support double-aligned frames for RyuJIT/x86

This factors out the analysis for when to use a double-aligned frame from the legacy backend.
Doing so exposed an assert for a case where we turn an intrinsic into a call in the Rationalizer, but don't update the frame requirements.
There may be some remaining tuning opportunities, given that the (pre-existing) algorithm doesn't attempt to create a double-aligned frame if we need an EBP-based frame for other reasons.

Fix #7008

7 years agoFix and-cmp to test recognition
Mike Danes [Wed, 5 Oct 2016 19:55:48 +0000 (22:55 +0300)]
Fix and-cmp to test recognition

Containment is used by TreeNodeInfoInitCmp to tell genCompareInt that a "and-cmp to test" pattern has been recognized.

Before LSRA added "reg optional" the result of isContained was solely determined by TreeNodeInfoInit. Now LSRA can make operands contained and then that happens genCompareInt wrongly believes that TreeNodeInfoInitCmp recognized the pattern.

To fix this genCompareInt needs to recognize (x and c) == 0 in addition to checking isContained.

7 years agoMerge pull request #7498 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Wed, 5 Oct 2016 18:11:32 +0000 (11:11 -0700)]
Merge pull request #7498 from dotnet-bot/master-UpdateDependencies

Update CoreClr to beta-24605-03 (master)

7 years agoUpdate CoreClr to beta-24605-03
dotnet-bot [Wed, 5 Oct 2016 16:17:39 +0000 (16:17 +0000)]
Update CoreClr to beta-24605-03

7 years agoMerge pull request #7492 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Wed, 5 Oct 2016 13:40:25 +0000 (06:40 -0700)]
Merge pull request #7492 from dotnet-bot/master-UpdateDependencies

Update CoreClr to beta-24605-02 (master)

7 years agoDelete mscorlib from CoreCLR targeting pack (#7494)
Jan Kotas [Wed, 5 Oct 2016 13:33:32 +0000 (06:33 -0700)]
Delete mscorlib from CoreCLR targeting pack (#7494)

7 years agoUpdate CoreClr to beta-24605-02
dotnet-bot [Wed, 5 Oct 2016 08:28:30 +0000 (08:28 +0000)]
Update CoreClr to beta-24605-02

7 years agoMerge pull request #7472 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Tue, 4 Oct 2016 23:38:38 +0000 (16:38 -0700)]
Merge pull request #7472 from dotnet-bot/master-UpdateDependencies

Update CoreClr, CoreFx to beta-24604-03, beta-24604-02, respectively (master)

7 years agoMerge pull request #7481 from pgavlin/RyuJITCrossgen
Pat Gavlin [Tue, 4 Oct 2016 23:26:07 +0000 (16:26 -0700)]
Merge pull request #7481 from pgavlin/RyuJITCrossgen

Add an option to crossgen S.P.CoreLib using the alt jit.

7 years agoAdd an option to crossgen S.P.CoreLib using the alt jit.
Pat Gavlin [Mon, 3 Oct 2016 19:49:17 +0000 (12:49 -0700)]
Add an option to crossgen S.P.CoreLib using the alt jit.

This also changes the x86/RyuJIT CI job to pass this option to
build.cmd. This leg will now use RyuJIT when crossgen'ing S.P.CoreLib
and when running tests.

7 years agoMerge pull request #7436 from giuliohome/issue-7346
Atsushi Kanamori [Tue, 4 Oct 2016 20:11:39 +0000 (13:11 -0700)]
Merge pull request #7436 from giuliohome/issue-7346

Issue 7346 ConstructorArguments from CustomAttributes for null array of enum

7 years agoMerge pull request #7484 from adiaaida/assertOnNYI
Michelle McDaniel [Tue, 4 Oct 2016 19:44:14 +0000 (12:44 -0700)]
Merge pull request #7484 from adiaaida/assertOnNYI

Set default x86 test run to assert on nyi

7 years agoIssue 7346 ConstructorArguments with null array of enum
giuliohome [Tue, 4 Oct 2016 00:04:06 +0000 (02:04 +0200)]
Issue 7346 ConstructorArguments with null array of enum

From http://stackoverflow.com/a/39521919
In structure of the blob where the custom attribute is specified,
an enum argument is represented using the byte 0x55
followed by a string specifying the name and assembly of the enum type.
A null array is represented using a length of -1.

Unfortunately, what happens if you pass an array of enum as null is that
enum name is lost.

Fix #7346

7 years agoSet default x86 test run to assert on nyi
Michelle McDaniel [Tue, 4 Oct 2016 18:03:05 +0000 (11:03 -0700)]
Set default x86 test run to assert on nyi

Now that we have eliminated all of the NYIs from the base test run, set
the default to be to assert on NYI, incase we expose new NYIs.

7 years agoUpdate CoreClr, CoreFx to beta-24604-03, beta-24604-02, respectively
dotnet-bot [Tue, 4 Oct 2016 16:29:41 +0000 (16:29 +0000)]
Update CoreClr, CoreFx to beta-24604-03, beta-24604-02, respectively

7 years agoMerge pull request #7476 from jkotas/security-annotations
Pat Gavlin [Tue, 4 Oct 2016 13:49:50 +0000 (06:49 -0700)]
Merge pull request #7476 from jkotas/security-annotations

Correct security annotations

7 years ago[Linux][GDB-JIT] Fix incorrect frame location when we have a lot of locals (#7451)
Evgeny Pavlov [Tue, 4 Oct 2016 11:17:14 +0000 (14:17 +0300)]
[Linux][GDB-JIT] Fix incorrect frame location when we have a lot of locals (#7451)

* Fix incorrect frame location when we have a lot of (more than ten) locals or arguments

7 years agoAdd PGO GENPROFILE support to coreclr and clrjit (#7423)
Daniel Podder [Tue, 4 Oct 2016 08:39:49 +0000 (01:39 -0700)]
Add PGO GENPROFILE support to coreclr and clrjit (#7423)

* Add PGO GENPROFILE support to coreclr and clrjit

Update the cmake build system to enable support for Profile Guided
Optimization (PGO) on Windows, and enable this feature for two target
binaries (coreclr and clrjit).

With this change, toggle between instrumented and profile-optimized
settings for target binaries by passing pgoinstrument argument to the build.cmd
Assume profile-optimized mode by default. Fall back to regular non-PGO
optimized builds if profile data is not available.

7 years agoAPI: Move Synchronized from StreamReader to TextReader (#7469)
Ian Hays [Tue, 4 Oct 2016 07:16:55 +0000 (00:16 -0700)]
API: Move Synchronized from StreamReader to TextReader (#7469)

7 years agoCorrect security annotations
Jan Kotas [Tue, 4 Oct 2016 07:06:48 +0000 (00:06 -0700)]
Correct security annotations

7 years agoMerge pull request #7473 from dotnet-bot/from-tfs
Jan Kotas [Tue, 4 Oct 2016 07:01:10 +0000 (00:01 -0700)]
Merge pull request #7473 from dotnet-bot/from-tfs

Merge changes from TFS

7 years agoRemove coreclr checks from AppDomain apis (#7471)
Rahul Kumar [Tue, 4 Oct 2016 06:57:06 +0000 (23:57 -0700)]
Remove coreclr checks from AppDomain apis (#7471)

7 years agoMerge pull request #7468 from CarolEidt/Fix7460
Carol Eidt [Tue, 4 Oct 2016 05:22:33 +0000 (22:22 -0700)]
Merge pull request #7468 from CarolEidt/Fix7460

Allow GT_FIELD_LIST as legal arg for RyuJIT/x86

7 years agoMerge pull request #7467 from dotnet-bot/from-tfs
Bruce Forstall [Tue, 4 Oct 2016 01:00:28 +0000 (18:00 -0700)]
Merge pull request #7467 from dotnet-bot/from-tfs

Merge changes from TFS

7 years agoAdd support for Alpine Linux (#7440)
Jan Vorlicek [Tue, 4 Oct 2016 00:56:42 +0000 (02:56 +0200)]
Add support for Alpine Linux (#7440)

This change enables build of CoreCLR on Alpine Linux. Here is the list
of changes:
- Disable asserts checking RSP in arbitrary threads against cached stack limit
  for the respective thread. The stack on Alpine obviously grows over the limit
  reported by the pthread functions.
- Disable using XSTATE. This should be re-enabled after MUSL gets the _xstate,
  _fpx_sw_bytes and related data structures added to the signal.h header.
- Disable setting rlimit of RLIMIT_NOFILE to the max value, since it breaks
  debugging for some reason.
- Add skipping over the hardware signal trampoline in the PAL_VirtualUnwind.
  While we were not trying to walk over it in a simple case, in a case where
  an exception was thrown from a catch handler of a hardware exception, we
  still attempted to walk over it and it fails on Alpine.
- Fix detection of Alpine Linux in the PAL's CMakeLists.txt so that it works
  in Docker containers too.
- Modified PAL_VirtualUnwind to make the check for unwinding past the bottom
  of the stack unconditional. We had a long list of platforms where we were
  doing this check and it doesn't hurt to do it on platforms where it is not
  needed. I have done that rather than adding a check for Alpine Linux as
  another platform that needs it.

7 years agoAllow GT_FIELD_LIST as legal arg for RyuJIT/x86
Carol Eidt [Mon, 3 Oct 2016 23:12:46 +0000 (16:12 -0700)]
Allow GT_FIELD_LIST as legal arg for RyuJIT/x86

The condition in GenTree::IsValidCallArgument() was not correct for
GT_FIELD_LIST, which is used for passing a struct on the stack in
RyuJIT/x86.

Fix #7460

7 years agoMerge pull request #7464 from pgavlin/RyuJITPInvokeFrame
Pat Gavlin [Mon, 3 Oct 2016 22:58:06 +0000 (15:58 -0700)]
Merge pull request #7464 from pgavlin/RyuJITPInvokeFrame

Fix P/Invoke call and method {pro,epi}logs in RyuJIT/x86.

7 years agoMark new UnmanagedMemoryAccessor methods as SafeCritical.
Pat Gavlin [Mon, 3 Oct 2016 22:26:01 +0000 (15:26 -0700)]
Mark new UnmanagedMemoryAccessor methods as SafeCritical.

[tfs-changeset: 1630680]

7 years agoRemove FirstChanceExceptionEventArgs from BCL folder. The file has been moved into...
Rahul Kumar [Mon, 3 Oct 2016 21:45:29 +0000 (14:45 -0700)]
Remove FirstChanceExceptionEventArgs from BCL folder. The file has been moved into mscorlib folder

[tfs-changeset: 1630635]

7 years agoAdd comment anchors.
Pat Gavlin [Mon, 3 Oct 2016 21:38:22 +0000 (14:38 -0700)]
Add comment anchors.

7 years agoFix P/Invoke call and method {pro,epi}logs in RyuJIT/x86.
Pat Gavlin [Mon, 3 Oct 2016 20:27:06 +0000 (13:27 -0700)]
Fix P/Invoke call and method {pro,epi}logs in RyuJIT/x86.

The contract for methods that contain P/Invokes differs between 64- and
32-bit targets.

In the former case, the JIT must:
- In the method prolog, initialize the P/Invoke frame with a call to
  CORINFO_HELP_INIT_PINVOKE_FRAME and push the frame on to the current
  thread's frame list if the method is an IL stub.
- Before/after each call, if the method is *not* an IL stub, push/pop
  the frame (respectively).
- In the method epilog, if the method is an IL stub, pop the P/Invoke
  frame.

In the latter case, CORINFO_HELP_INIT_PINVOKE_FRAME pushes the P/Invoke
frame on to the current thread's frame list, and the frame need only
be popped in the method epilog.

This change adjusts P/Invoke lowering s.t. the 64-bit discipline is
only followed for 64-bit targets.

7 years agoAdd Math.Clamp overloads to mscorlib.cs (#7462)
Hugh Bellamy [Mon, 3 Oct 2016 19:49:59 +0000 (20:49 +0100)]
Add Math.Clamp overloads to mscorlib.cs (#7462)

7 years agoMerge pull request #7445 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Mon, 3 Oct 2016 18:39:19 +0000 (11:39 -0700)]
Merge pull request #7445 from dotnet-bot/master-UpdateDependencies

Update CoreClr to beta-24603-03 (master)

7 years ago[Linux] [SOS.NETCore] Quick fix for Path.GetFileName (#7441)
Dmitri-Botcharnikov [Mon, 3 Oct 2016 18:05:00 +0000 (22:05 +0400)]
[Linux] [SOS.NETCore] Quick fix for Path.GetFileName (#7441)

* Quick fix for Path.GetFileName

* Updated after review

7 years agoFix DWARF linetable info provided by GDBJIT (#7444)
Igor Kulaychuk [Mon, 3 Oct 2016 18:04:05 +0000 (21:04 +0300)]
Fix DWARF linetable info provided by GDBJIT (#7444)

Extend PC to the end of function in DWARF linetable commands.
This allows the debugger to show source lines for all addresses
inside a function.

7 years agoUpdate CoreClr to beta-24603-03
dotnet-bot [Mon, 3 Oct 2016 16:24:37 +0000 (16:24 +0000)]
Update CoreClr to beta-24603-03

7 years agoFix a bug where the DAC read four more bytes than necessary (#7430)
Sean Gillespie [Sun, 2 Oct 2016 18:26:23 +0000 (11:26 -0700)]
Fix a bug where the DAC read four more bytes than necessary (#7430)

to retrieve gcHeapType, which failed on crash dumps.

7 years agoRemove WaitHandleExtensions, as it is implemented in CoreFX (#7431)
Koundinya Veluri [Sun, 2 Oct 2016 01:35:28 +0000 (18:35 -0700)]
Remove WaitHandleExtensions, as it is implemented in CoreFX (#7431)

7 years agoMerge pull request #7361 from vancem/MessageInLttng.9-26-16
Vance Morrison [Sun, 2 Oct 2016 01:05:25 +0000 (18:05 -0700)]
Merge pull request #7361 from vancem/MessageInLttng.9-26-16

Add the serialization of the Message field when writting LTTng events on Linux

7 years agoMerge pull request #7359 from vancem/EventSOurceNullRefInLevelProperty.9-26-16
Vance Morrison [Sun, 2 Oct 2016 01:02:39 +0000 (18:02 -0700)]
Merge pull request #7359 from vancem/EventSOurceNullRefInLevelProperty.9-26-16

Fix Null Reference in accessing Level property in EventSource failure msgs

7 years agoInitial support of local variables and method arguments in GDB JIT interface (#7400)
Evgeny Pavlov [Sat, 1 Oct 2016 17:33:25 +0000 (20:33 +0300)]
Initial support of local variables and method arguments in GDB JIT interface (#7400)

7 years agoMerge pull request #7437 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Sat, 1 Oct 2016 16:00:49 +0000 (09:00 -0700)]
Merge pull request #7437 from dotnet-bot/master-UpdateDependencies

Update CoreClr, CoreFx to beta-24601-02, beta-24601-02, respectively (master)

7 years agoUpdate CoreClr, CoreFx to beta-24601-02, beta-24601-02, respectively
dotnet-bot [Sat, 1 Oct 2016 08:12:29 +0000 (08:12 +0000)]
Update CoreClr, CoreFx to beta-24601-02, beta-24601-02, respectively

7 years agoMerge pull request #7433 from dotnet-bot/from-tfs
Jan Kotas [Sat, 1 Oct 2016 04:26:31 +0000 (21:26 -0700)]
Merge pull request #7433 from dotnet-bot/from-tfs

Merge changes from TFS

7 years agoMerge pull request #7438 from pgavlin/gh7090
Pat Gavlin [Sat, 1 Oct 2016 04:09:29 +0000 (21:09 -0700)]
Merge pull request #7438 from pgavlin/gh7090

Properly initialize lvaTrackedVarSet.

7 years agoMerge pull request #7432 from pgavlin/gh6920
Pat Gavlin [Sat, 1 Oct 2016 04:09:03 +0000 (21:09 -0700)]
Merge pull request #7432 from pgavlin/gh6920

Call `gtEffectiveVal` in `gtWalkOp`.

7 years agoMerge pull request #7388 from rahku/_appdomain
Rahul Kumar [Sat, 1 Oct 2016 00:41:44 +0000 (17:41 -0700)]
Merge pull request #7388 from rahku/_appdomain

Expose AppDomain apis

7 years agoProperly initialize lvaTrackedVarSet.
Pat Gavlin [Fri, 30 Sep 2016 23:27:30 +0000 (16:27 -0700)]
Properly initialize lvaTrackedVarSet.

The lack of initialization when `lvaCount == 0` was causing failures
under JITStressRegs=0x80. When this initialization is not performed,
it is initialized s.t. every bit is set, including bits that represent
non-existent lclVars. This caused LSRA to AV when attempting to access
the lclVar table using a lclNum derived from an iteration over
`lvaTrackedVarSet`.

Fixes #7090.

7 years agoPort changes to UnmanagedMemoryStream from corefx (#7418)
Alex Perovich [Fri, 30 Sep 2016 22:54:59 +0000 (15:54 -0700)]
Port changes to UnmanagedMemoryStream from corefx (#7418)

* Port changes to UnmanagedMemoryStream from corefx

dotnet/corefx#12170

* Add PrepareConstrainedRegions

* Add Back Read<T> and Write<T> methods

* Replace MemoryCopy with Memcpy

7 years agoExpose AppDomain apis
Rahul Kumar [Wed, 28 Sep 2016 00:55:09 +0000 (17:55 -0700)]
Expose AppDomain apis

7 years agoCall `gtEffectiveVal` in `gtWalkOp`.
Pat Gavlin [Fri, 30 Sep 2016 20:01:37 +0000 (13:01 -0700)]
Call `gtEffectiveVal` in `gtWalkOp`.

This function was using an ad-hoc, open-coded version of
`gtEffectiveVal` that was missing the effective value of `GT_NOP` nodes.
This change replaces these implementations with calls to
`gtEffectiveVal` and makes `gtEffectiveVal` non-recursive.

Fixes #6920.

7 years agoMerge pull request #7428 from adiaaida/audit_flags
Michelle McDaniel [Fri, 30 Sep 2016 19:46:51 +0000 (12:46 -0700)]
Merge pull request #7428 from adiaaida/audit_flags

Copy GTF_ALL_EFFECTS to hiResult in decomp

7 years agoMerge pull request #7427 from CarolEidt/Fix7197
Carol Eidt [Fri, 30 Sep 2016 18:59:23 +0000 (11:59 -0700)]
Merge pull request #7427 from CarolEidt/Fix7197

Arm64 StoreBlk Lowering Fix

7 years agoMerge pull request #7365 from dotnet-bot/master-UpdateDependencies
Koundinya Veluri [Fri, 30 Sep 2016 18:46:58 +0000 (11:46 -0700)]
Merge pull request #7365 from dotnet-bot/master-UpdateDependencies

Update CoreClr, CoreFx, External to beta-24529-03, beta-24530-02, beta-24523-00, respectively (master)

7 years agoMerge pull request #7429 from jashook/jit32_oss_devdiv255294
Jarret Shook [Fri, 30 Sep 2016 17:20:16 +0000 (10:20 -0700)]
Merge pull request #7429 from jashook/jit32_oss_devdiv255294

Exclude DevDiv_255294.cmd for jit32 due to timeout

7 years agoCopy GTF_ALL_EFFECTS to hiResult in decomp
Michelle McDaniel [Thu, 29 Sep 2016 17:02:31 +0000 (10:02 -0700)]
Copy GTF_ALL_EFFECTS to hiResult in decomp

We need to make sure that the hiResult in decompose gets the same effect
flags as the original tree. This change updates decompose methods to pass
those flags from the tree to the hiResult in the cases that they weren't
being passed before.