platform/upstream/dotnet/runtime.git
7 years agoAdding Isafeserializationdata interface
Rama Krishnan Raghupathy [Fri, 21 Oct 2016 22:25:49 +0000 (15:25 -0700)]
Adding Isafeserializationdata interface

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

7 years agoExposing Some Threading Apis
Rama Krishnan Raghupathy [Fri, 21 Oct 2016 02:51:47 +0000 (19:51 -0700)]
Exposing Some Threading Apis

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

7 years agoMerge pull request dotnet/coreclr#7725 from CarolEidt/Fix278372
Carol Eidt [Wed, 19 Oct 2016 21:38:57 +0000 (14:38 -0700)]
Merge pull request dotnet/coreclr#7725 from CarolEidt/Fix278372

RyuJIT/x86: handle must-init multi-reg vars

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

7 years agoMerge pull request dotnet/coreclr#7726 from dotnet-bot/from-tfs
Bruce Forstall [Wed, 19 Oct 2016 21:10:41 +0000 (14:10 -0700)]
Merge pull request dotnet/coreclr#7726 from dotnet-bot/from-tfs

Merge changes from TFS

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

7 years agoRemove the UseLatestBehaviorWhenTFMNotSpecified compat switch (dotnet/coreclr#5708)
AlexGhiondea [Wed, 19 Oct 2016 20:24:40 +0000 (13:24 -0700)]
Remove the UseLatestBehaviorWhenTFMNotSpecified compat switch (dotnet/coreclr#5708)

* Default to latest behavior when a TFM is not specified

Instead of requiring that a compatibility switch is set in order to get the
latest behavior for all AppContext switches that are based on TFM, have that
behavior on by default.

* Remove the UseLatestBehaviorWhenTFMNotSpecified compat switch

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

7 years agoBetter Tuple hashing, avoid boxing in Equals/GetHashCode (dotnet/coreclr#6767)
James Ko [Wed, 19 Oct 2016 20:24:01 +0000 (16:24 -0400)]
Better Tuple hashing, avoid boxing in Equals/GetHashCode (dotnet/coreclr#6767)

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

7 years agoMerge pull request dotnet/coreclr#7612 from BruceForstall/ELT
Bruce Forstall [Wed, 19 Oct 2016 20:14:54 +0000 (13:14 -0700)]
Merge pull request dotnet/coreclr#7612 from BruceForstall/ELT

Enable Enter/Leave/Tailcall hooks for RyuJIT/x86

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

7 years agocross/build-rootfs.sh: fix default UbuntuPackages for default BuildArch (dotnet/corec...
Steve Desmond [Wed, 19 Oct 2016 19:33:49 +0000 (15:33 -0400)]
cross/build-rootfs.sh: fix default UbuntuPackages for default BuildArch (dotnet/coreclr#7644)

* better default UbuntuPackages for default BuildArch
* Remove multiple sets of _UbuntuPackages to default

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

7 years agoUpdating the new `System.MathF` calls which already existed in `System.Math` to call...
Tanner Gooding [Wed, 19 Oct 2016 19:15:21 +0000 (12:15 -0700)]
Updating the new `System.MathF` calls which already existed in `System.Math` to call the `System.Math` implementation. (dotnet/coreclr#7721)

* Updating the new `System.MathF` calls which already existed in `System.Math` to call the `System.Math` implementation.
* Removing the FCALL entry for MathF.Abs

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

7 years agoRyuJIT/x86: handle must-init multi-reg vars
Carol Eidt [Wed, 19 Oct 2016 18:28:22 +0000 (11:28 -0700)]
RyuJIT/x86: handle must-init multi-reg vars

In the RyuJIT backend, lclVars can occupy multiple registers, and not have a stack location. These should be handled for must-init as for lvRegister. The existing code was doing this oinly for _TARGET_64_BIT_ when it should be !LEGACY_BACKEND.
This fixes DevDiv VSO bug 278372

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

7 years agoMerge pull request dotnet/coreclr#7708 from pgavlin/StackParamUntracked
Pat Gavlin [Wed, 19 Oct 2016 18:23:10 +0000 (11:23 -0700)]
Merge pull request dotnet/coreclr#7708 from pgavlin/StackParamUntracked

Always treat incoming on-stack parameters as GC-untracked.

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

7 years agoMerge pull request dotnet/coreclr#7718 from dotnet-bot/from-tfs
Jan Kotas [Wed, 19 Oct 2016 18:17:40 +0000 (11:17 -0700)]
Merge pull request dotnet/coreclr#7718 from dotnet-bot/from-tfs

Merge changes from TFS

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

7 years agoEnable Enter/Leave/Tailcall hooks for RyuJIT/x86
Bruce Forstall [Fri, 14 Oct 2016 01:10:33 +0000 (18:10 -0700)]
Enable Enter/Leave/Tailcall hooks for RyuJIT/x86

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

7 years agoMerge pull request dotnet/coreclr#7714 from gkhanna79/CleanupArm32
Gaurav Khanna [Wed, 19 Oct 2016 16:35:54 +0000 (09:35 -0700)]
Merge pull request dotnet/coreclr#7714 from gkhanna79/CleanupArm32

Cleanup arm32

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

7 years agofix arm64 build break
Rahul Kumar [Wed, 19 Oct 2016 16:12:10 +0000 (09:12 -0700)]
fix arm64 build break

[tfs-changeset: 1634120]

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

7 years agoMerge pull request dotnet/coreclr#7709 from wtgodbe/publishProj
Stephen Toub [Wed, 19 Oct 2016 12:27:47 +0000 (08:27 -0400)]
Merge pull request dotnet/coreclr#7709 from wtgodbe/publishProj

Only build TargetingPack when building on Windows

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

7 years agoSupport "offline" initializtion of Tools (dotnet/coreclr#7715)
Matt Ellis [Wed, 19 Oct 2016 08:42:45 +0000 (01:42 -0700)]
Support "offline" initializtion of Tools (dotnet/coreclr#7715)

This change allows init-tools to function in an "offline" mode where
tools are picked up from standalone folders. Specifically, it introduces
support for two new environment variables:

- DOTNET_TOOLSET_DIR
- BUILD_TOOLS_TOOLSET_DIR

If either is set, instead of downloading toolsets, we copy an already
existing one from the folder.  The TOOLSET_DIR is a folder with sub
directories for every version of the tool in question.

For buildtools, we expect a published toolset (sans the "dotnetcli"
folder) not just a set of nuget packages (i.e. the layout of Tools/
after running ./init-tools.sh in "online" mode).

The above varibles are useful for situations where we want to carry
multiple toolsets with us, but are less helpful for places where a
developer has produced their own toolset by hand (since the resulting
folder structure contains extra version information). For these cases,
I've added

- DOTNET_TOOL_DIR
- BUILD_TOOLS_TOOL_DIR

Which work like the above but don't require the nested folder structure.

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

7 years agoFix passing struct with four floats in registers via reflection (dotnet/coreclr#7716)
Jan Vorlicek [Wed, 19 Oct 2016 06:43:29 +0000 (08:43 +0200)]
Fix passing struct with four floats in registers via reflection (dotnet/coreclr#7716)

This change fixes a bug in the code that copies a struct into the transition
frame. When it contains four floats, the first two are put to the right place,
but the following two are placed to an address that's offset by 8 instead of
by 16.

It also adds regression test for this problem as Pri 1 test.

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

7 years agoFix build break
Jan Kotas [Wed, 19 Oct 2016 06:18:24 +0000 (23:18 -0700)]
Fix build break

[tfs-changeset: 1634099]

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

7 years agoMerge pull request dotnet/coreclr#7712 from dotnet/revert-7494-CoreLib
Jan Kotas [Wed, 19 Oct 2016 05:14:41 +0000 (22:14 -0700)]
Merge pull request dotnet/coreclr#7712 from dotnet/revert-7494-CoreLib

Revert "Delete mscorlib from CoreCLR targeting pack"

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

7 years agoCleanup external dependency details
Gaurav Khanna [Wed, 19 Oct 2016 03:28:12 +0000 (20:28 -0700)]
Cleanup external dependency details

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

7 years agoMerge pull request dotnet/coreclr#7681 from rahku/_appdomain
Rahul Kumar [Wed, 19 Oct 2016 03:00:14 +0000 (20:00 -0700)]
Merge pull request dotnet/coreclr#7681 from rahku/_appdomain

Expose apis in System.Reflection.Assembly

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

7 years agoEnable DateTimeFormatInfo netstandard 1.7 APIs on Linux (dotnet/coreclr#7713)
Tarek Mahmoud Sayed [Wed, 19 Oct 2016 01:28:36 +0000 (18:28 -0700)]
Enable DateTimeFormatInfo netstandard 1.7 APIs on Linux (dotnet/coreclr#7713)

* Enable DateTimeFormatInfo netstandard 1.7 APIs on Linux

* Remove un-necessary return

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

7 years agoExpose apis in System.Reflection.Assembly
Rahul Kumar [Mon, 17 Oct 2016 23:52:57 +0000 (16:52 -0700)]
Expose apis in System.Reflection.Assembly

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

7 years agoCleanup External Dependency references
Gaurav Khanna [Tue, 18 Oct 2016 22:04:48 +0000 (15:04 -0700)]
Cleanup External Dependency references

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

7 years agoRemove Arm32 dependency from closed build
Gaurav Khanna [Tue, 18 Oct 2016 22:00:32 +0000 (15:00 -0700)]
Remove Arm32 dependency from closed build

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

7 years agoRevert "Delete mscorlib from CoreCLR targeting pack"
William Godbe [Tue, 18 Oct 2016 21:27:25 +0000 (14:27 -0700)]
Revert "Delete mscorlib from CoreCLR targeting pack"

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

7 years agoMerge pull request dotnet/coreclr#7700 from wtgodbe/1.1
William Godbe [Tue, 18 Oct 2016 21:11:16 +0000 (14:11 -0700)]
Merge pull request dotnet/coreclr#7700 from wtgodbe/1.1

Upgrade build-against-packages frameworks to NetStandard1.1

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

7 years agoOnly publish TargetingPack when building on Windows
wtgodbe [Tue, 18 Oct 2016 20:40:35 +0000 (13:40 -0700)]
Only publish TargetingPack when building on Windows

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

7 years agoFix Link (dotnet/coreclr#7699)
Vance Morrison [Tue, 18 Oct 2016 20:17:28 +0000 (13:17 -0700)]
Fix Link (dotnet/coreclr#7699)

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

7 years agoMerge pull request dotnet/coreclr#7698 from CarolEidt/Fix278371
Carol Eidt [Tue, 18 Oct 2016 20:08:33 +0000 (13:08 -0700)]
Merge pull request dotnet/coreclr#7698 from CarolEidt/Fix278371

Allow non-constant size for rep stos InitBlk on x86

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

7 years agoAlways treat incoming on-stack parameters as GC-untracked.
Pat Gavlin [Tue, 18 Oct 2016 20:04:28 +0000 (13:04 -0700)]
Always treat incoming on-stack parameters as GC-untracked.

Incoming parameters that are passed on the stack are never reported as
tracked to the GC, but `lvaIsGCTracked` (which is used to determine
whether or not to report liveness for a lclVar's stack slot) still
returned true if the corresponding lclVar was tracked. This caused
problems on x86 when dealing with incoming GC stack parameters in ESP
frames: in this case, writes to a GC stack parameter could incorrectly
change the liveness for a lclVar at the same offset from ESP as the
parameter's offset from EBP.

Fixes dotnet/coreclr#7696.

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

7 years agoMerge pull request dotnet/coreclr#7701 from rahku/arm64fixes
Rahul Kumar [Tue, 18 Oct 2016 20:00:52 +0000 (13:00 -0700)]
Merge pull request dotnet/coreclr#7701 from rahku/arm64fixes

_isnanf is not defined for arm64 use isnan instead

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

7 years ago_isnanf is not defined for arm64 use isnan instead
Rahul Kumar [Tue, 18 Oct 2016 18:58:20 +0000 (11:58 -0700)]
_isnanf is not defined for arm64 use isnan instead

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

7 years agoUpgrade build-against-packages dependencies to NetStandard1.1
wtgodbe [Tue, 18 Oct 2016 18:49:19 +0000 (11:49 -0700)]
Upgrade build-against-packages dependencies to NetStandard1.1

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

7 years agoAllow non-constant size for rep stos InitBlk on x86
Carol Eidt [Tue, 18 Oct 2016 15:52:38 +0000 (08:52 -0700)]
Allow non-constant size for rep stos InitBlk on x86

Fixes DevDiv VSO bug 278371, and adds a test case.

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

7 years agoMerge pull request dotnet/coreclr#7683 from sivarv/VectorByteFix
Sivarv [Tue, 18 Oct 2016 17:18:25 +0000 (10:18 -0700)]
Merge pull request dotnet/coreclr#7683 from sivarv/VectorByteFix

Vector<T>.ctor(T val) is not recognized for ubyte/byte/short/ushort when the arg is a local of small int type (e.g. method args).

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

7 years agoFix issue dotnet/coreclr#7470 (Regression with enabled GDB JIT interface) (dotnet...
Evgeny Pavlov [Tue, 18 Oct 2016 17:17:45 +0000 (20:17 +0300)]
Fix issue dotnet/coreclr#7470 (Regression with enabled GDB JIT interface) (dotnet/coreclr#7688)

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

7 years agoAdding single-precision math functions. (dotnet/coreclr#5492)
Tanner Gooding [Tue, 18 Oct 2016 09:56:53 +0000 (02:56 -0700)]
Adding single-precision math functions. (dotnet/coreclr#5492)

* Adding single-precision math functions to floatsingle
* Adding single-precision math functions to the PAL layer.
* Adding single-precision math tests to the PAL layer.
* Adding single-precision math functions to mscorlib.
* Adding single-precision math function support to the vm.
* Updating floatsingle.cpp to define a _isnanf macro for Windows ARM.

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

7 years agoMerge pull request dotnet/coreclr#7684 from mellinoe/fix-alpine-pgks
Eric Mellino [Tue, 18 Oct 2016 04:48:18 +0000 (21:48 -0700)]
Merge pull request dotnet/coreclr#7684 from mellinoe/fix-alpine-pgks

Fix placeholder pdb file path in alpine nuget packages

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

7 years agoMerge pull request dotnet/coreclr#7648 from jkotas/fix-docs
Jan Kotas [Tue, 18 Oct 2016 04:40:45 +0000 (21:40 -0700)]
Merge pull request dotnet/coreclr#7648 from jkotas/fix-docs

Update instructions to use local dotnet tool build

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

7 years agoAdd missing Arg_BadDecimal resource to corelib (dotnet/coreclr#7673)
Alex Perovich [Tue, 18 Oct 2016 03:55:55 +0000 (20:55 -0700)]
Add missing Arg_BadDecimal resource to corelib (dotnet/coreclr#7673)

Fixes dotnet/coreclr#7671

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

7 years agoMerge pull request dotnet/coreclr#7676 from pgavlin/EmitKillGCRefRRWSH
Pat Gavlin [Tue, 18 Oct 2016 03:18:29 +0000 (20:18 -0700)]
Merge pull request dotnet/coreclr#7676 from pgavlin/EmitKillGCRefRRWSH

Update GC info when emitting IF_RRW_SHF.

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

7 years agoFix placeholder pdb file path in alpine nuget packages
Eric Mellino [Tue, 18 Oct 2016 02:46:50 +0000 (02:46 +0000)]
Fix placeholder pdb file path in alpine nuget packages

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

7 years agoInclude project.json template in the instructions
Jan Kotas [Tue, 18 Oct 2016 01:29:03 +0000 (18:29 -0700)]
Include project.json template in the instructions

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

7 years agoMerge pull request dotnet/coreclr#7608 from pgavlin/MoveGSCookieCheck
Pat Gavlin [Tue, 18 Oct 2016 02:05:14 +0000 (19:05 -0700)]
Merge pull request dotnet/coreclr#7608 from pgavlin/MoveGSCookieCheck

Generate GS cookie checks before consuming call args.

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

7 years agoMerge pull request dotnet/coreclr#7682 from dotnet-bot/from-tfs
Jan Kotas [Tue, 18 Oct 2016 01:53:39 +0000 (18:53 -0700)]
Merge pull request dotnet/coreclr#7682 from dotnet-bot/from-tfs

Merge changes from TFS

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

7 years agoFix memcpy undef (dotnet/coreclr#7675)
Jan Vorlicek [Tue, 18 Oct 2016 01:53:27 +0000 (03:53 +0200)]
Fix memcpy undef (dotnet/coreclr#7675)

This change fixes a memcpy #undef in the palinternal.h. It was undefed only for
non-debug builds, but it needs to be undefed for debug build as well. The non-debug
undef covers the case where memcpy is defined as DUMMY_memcpy, but doesn't cover
the debug case where memcpy is defined as PAL_memcpy.

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

7 years agoChange the name buildtools semaphore temporarily
Jan Kotas [Mon, 17 Oct 2016 23:27:08 +0000 (16:27 -0700)]
Change the name buildtools semaphore temporarily

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

7 years agoUpdate instructions to use local dotnet tool build
Jan Kotas [Mon, 17 Oct 2016 03:32:46 +0000 (20:32 -0700)]
Update instructions to use local dotnet tool build

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

7 years agoVector<T>.ctor(T val) is not recognized for ubyte/byte/short/ushort
sivarv [Tue, 18 Oct 2016 00:20:30 +0000 (17:20 -0700)]
Vector<T>.ctor(T val) is not recognized for ubyte/byte/short/ushort
when the arg is a local of small int type (e.g. method args).

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

7 years agoMerge pull request dotnet/coreclr#7628 from wtgodbe/HelixFinal
William Godbe [Mon, 17 Oct 2016 23:55:35 +0000 (16:55 -0700)]
Merge pull request dotnet/coreclr#7628 from wtgodbe/HelixFinal

Build tests against packages & produce Core_Root for arbitrary OS

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

7 years agoMerge pull request dotnet/coreclr#7667 from kouvel/ApiThreadCleanup
Koundinya Veluri [Mon, 17 Oct 2016 23:52:38 +0000 (16:52 -0700)]
Merge pull request dotnet/coreclr#7667 from kouvel/ApiThreadCleanup

Expose RuntimeThread.Yield, fix warning

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

7 years agoAdding SafeSerializationEventArgs to netstandard2.0
Rama Krishnan Raghupathy [Mon, 17 Oct 2016 23:36:01 +0000 (16:36 -0700)]
Adding SafeSerializationEventArgs to netstandard2.0

[tfs-changeset: 1633663]

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

7 years agoGenerate GS cookie checks before consuming call args.
Pat Gavlin [Thu, 13 Oct 2016 23:59:28 +0000 (16:59 -0700)]
Generate GS cookie checks before consuming call args.

This is necessary in order to correctly calculate the liveness of the
call arguments. Generating this check after consuming the arguments
causes errors in the GC info s.t. GC ref arguments are not considered
live past the call instruction: instead, they are considered dead
before the call instruction.

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

7 years agoFixing PAL_TRY use in BOTR (dotnet/coreclr#7658)
Matthew Parkinson [Mon, 17 Oct 2016 22:56:50 +0000 (23:56 +0100)]
Fixing PAL_TRY use in BOTR (dotnet/coreclr#7658)

In the Exceptions Section it gives an example use of `PAL_TRY`,
but the parameters to the `PAL_TRY` need to be passed as an argument,
and cannot be implicit.  This commit brings the change inline with
the programming model.

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

7 years agoEnable NumberFormatInfo netstandard 1.7 APIs (dotnet/coreclr#7659)
Tarek Mahmoud Sayed [Mon, 17 Oct 2016 22:44:36 +0000 (15:44 -0700)]
Enable NumberFormatInfo netstandard 1.7 APIs (dotnet/coreclr#7659)

* Enable NumberFormatInfo netstandard 1.7 APIs

* Remove ComVisible attributes

* Remove more ComVisible attributes

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

7 years agoMerge pull request dotnet/coreclr#7657 from dotnet-bot/from-tfs
Jan Kotas [Mon, 17 Oct 2016 22:36:34 +0000 (15:36 -0700)]
Merge pull request dotnet/coreclr#7657 from dotnet-bot/from-tfs

Merge changes from TFS

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

7 years agoUpdate GC info when emitting IF_RRW_SHF.
Pat Gavlin [Mon, 17 Oct 2016 22:26:53 +0000 (15:26 -0700)]
Update GC info when emitting IF_RRW_SHF.

Instructions with this format should never produce a GC reference, and
should kill any GC reference that was in the destination register.

This situation can arise with IR such as the following:

    t1347 =    &lclFld   byref  V00 loc0         [+8] Fseq[m_b] REG ecx

            /--*  t1347  byref
            *  st.lclVar int    V271 tmp270      d:3 ecx REG ecx RV

    t8942 =    lclVar    int    V271 tmp270       ecx REG ecx RV

    t8937 =    const     int    0 reuse reg val REG eax RV

            /--*  t8942  int
            +--*  t8937  int
    t8943 = *  gt_long   long   REG NA

    t8939 =    const     int    4 REG NA

            /--*  t8943  long
            +--*  t8939  int
    t8944 = *  <<Hi      int    REG eax

    t6676 =    lclVar    int    V271 tmp270      u:3 ecx (last use) REG ecx RV $6b6

    t8940 =    const     int    4 REG NA

            /--*  t6676  int
            +--*  t8940  int
    t8941 = *  <<        int    REG ecx

For this IR, we generate the following x86 assembly:

    IN04b3: 001218 8D4DE8       lea      ecx, bword ptr [ebp-18H]
    IN04b4: 00121B 0FA4C804     shld     eax, ecx, 4
    IN04b5: 00121F C1E104       shl      ecx, 4

Where the `lea` corresponds to the `&lclFld` node, the `shld`
corresponds to the `<<Hi` node, and the `shl` corresponds to the `<<`
node. Because the `&lclFld` node is typed as a byref, the `lea`
instruction marks `ecx` as a byref register. Normally, the `st.lclVar`
would update the gc-ness of its destination, but in this case it is
elided because its source register matches its destination register. As
a result, `ecx` is still considered to contain a byref value at the
point of the `shl`.

It is very likely that it is also a bug that the elided `st.lclVar` does
not udpate the gc-ness of its destination, though it remains to be seen
whether or not this can cause SBCG in other cases.

The typing of the `&lclFld` node as a byref is also questionable, as
these nodes are guaranteed to point to the stack (and are therefore
never heap references). This typing is conservatively correct, however,
and AFAICT only causes us to over-report registers or stack slots in the
generated GC info.

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

7 years agoMerge pull request dotnet/coreclr#6679 from parjong/fix/issue_6569
Bruce Forstall [Mon, 17 Oct 2016 22:25:15 +0000 (15:25 -0700)]
Merge pull request dotnet/coreclr#6679 from parjong/fix/issue_6569

Revises isSingleFloat32Struct

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

7 years agoMerge pull request dotnet/coreclr#7661 from pgavlin/FixInteropTestCC
Pat Gavlin [Mon, 17 Oct 2016 22:10:06 +0000 (15:10 -0700)]
Merge pull request dotnet/coreclr#7661 from pgavlin/FixInteropTestCC

Fix calling conventions in ByValArray test.

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

7 years agoMerge pull request dotnet/coreclr#7668 from mellinoe/alpine-rids
Eric Mellino [Mon, 17 Oct 2016 22:07:52 +0000 (15:07 -0700)]
Merge pull request dotnet/coreclr#7668 from mellinoe/alpine-rids

Add native package projects for alpine.3.4.3-x64

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

7 years agoMerge pull request dotnet/coreclr#6613 from wtgodbe/packagebuilds
William Godbe [Mon, 17 Oct 2016 20:49:55 +0000 (13:49 -0700)]
Merge pull request dotnet/coreclr#6613 from wtgodbe/packagebuilds

Use packages.builds when generating nuget packages

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

7 years agoAdd new alpine packages to pkg .builds and .pkgproj files
Eric Mellino [Mon, 17 Oct 2016 20:16:05 +0000 (13:16 -0700)]
Add new alpine packages to pkg .builds and .pkgproj files

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

7 years agoAllow Alpine to build System.Private.CoreLib
Eric Mellino [Mon, 17 Oct 2016 20:11:13 +0000 (20:11 +0000)]
Allow Alpine to build System.Private.CoreLib

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

7 years agoAllow alpine to run init-tools.sh
Eric Mellino [Mon, 17 Oct 2016 19:51:20 +0000 (19:51 +0000)]
Allow alpine to run init-tools.sh

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

7 years agoAdd alpine.3.4.3-x64 nuget package definitions
Eric Mellino [Mon, 17 Oct 2016 19:49:15 +0000 (12:49 -0700)]
Add alpine.3.4.3-x64 nuget package definitions

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

7 years agoAdd missing ns2.0 InteropServices apis to model.xml (dotnet/coreclr#7606)
Alex Perovich [Mon, 17 Oct 2016 19:46:43 +0000 (12:46 -0700)]
Add missing ns2.0 InteropServices apis to model.xml (dotnet/coreclr#7606)

* Add missing ns2.0 InteropServices apis to model.xml

* Remove RuntimeEnvironment

* Remove functions that need vm changes.

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

7 years agoExpose RuntimeThread.Yield, fix warning
Koundinya Veluri [Mon, 17 Oct 2016 17:17:02 +0000 (10:17 -0700)]
Expose RuntimeThread.Yield, fix warning

Related to dotnet/corefx#dotnet/coreclr#11632

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

7 years agoBuild tests against packages & produce Core_Root for arbitrary OS
wtgodbe [Tue, 6 Sep 2016 22:17:04 +0000 (15:17 -0700)]
Build tests against packages & produce Core_Root for arbitrary OS

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

7 years agoFix calling conventions in ByValArray test.
Pat Gavlin [Mon, 17 Oct 2016 17:32:32 +0000 (10:32 -0700)]
Fix calling conventions in ByValArray test.

The managed code was assuming WINAPI, but the native code was defaulting
to cdecl. This causes GC stress failures on x86.

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

7 years agoFix broken #elif (dotnet/coreclr#7656)
Dmitry-Me [Mon, 17 Oct 2016 16:56:37 +0000 (19:56 +0300)]
Fix broken #elif (dotnet/coreclr#7656)

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

7 years agoMerge pull request dotnet/coreclr#7639 from gkhanna79/ArmChkCIRemoval
Gaurav Khanna [Mon, 17 Oct 2016 16:55:29 +0000 (09:55 -0700)]
Merge pull request dotnet/coreclr#7639 from gkhanna79/ArmChkCIRemoval

Only run Debug and Release WinArm32 PR Builds

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

7 years agoAdd missing ApplicationException derivations (dotnet/coreclr#7647)
Dan Moseley [Mon, 17 Oct 2016 16:16:54 +0000 (09:16 -0700)]
Add missing ApplicationException derivations (dotnet/coreclr#7647)

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

7 years agoFix for desktop build of Thread class to add back members that were moved to RuntimeT...
Koundinya Veluri [Mon, 17 Oct 2016 14:37:14 +0000 (07:37 -0700)]
Fix for desktop build of Thread class to add back members that were moved to RuntimeThread, to bypass ApiConformance issues during build.

[tfs-changeset: 1633583]

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

7 years agoDon't return pointer to already deleted object (dotnet/coreclr#3483)
Dmitry-Me [Mon, 17 Oct 2016 04:05:11 +0000 (07:05 +0300)]
Don't return pointer to already deleted object (dotnet/coreclr#3483)

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

7 years agoFix dotnet/coreclr#7391: Test for DateTime string parsing (dotnet/coreclr#7475)
Hyeongseok Oh [Mon, 17 Oct 2016 04:03:58 +0000 (13:03 +0900)]
Fix dotnet/coreclr#7391: Test for DateTime string parsing (dotnet/coreclr#7475)

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

7 years agoMerge pull request dotnet/coreclr#7340 from russellhadley/MoveCSEtoBitVec
Russell C Hadley [Mon, 17 Oct 2016 02:35:54 +0000 (19:35 -0700)]
Merge pull request dotnet/coreclr#7340 from russellhadley/MoveCSEtoBitVec

Add code to switch to BitVec data structure in CSE optimization.

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

7 years agoSkip generating CI job for WinArm32 Checked
Gaurav Khanna [Sun, 16 Oct 2016 22:07:20 +0000 (15:07 -0700)]
Skip generating CI job for WinArm32 Checked

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

7 years agoMerge pull request dotnet/coreclr#1965 from lasombra/patch-1
Gaurav Khanna [Sun, 16 Oct 2016 15:37:28 +0000 (08:37 -0700)]
Merge pull request dotnet/coreclr#1965 from lasombra/patch-1

Update linux-instructions.md

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

7 years agoMerge pull request dotnet/coreclr#7640 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Sun, 16 Oct 2016 15:35:42 +0000 (08:35 -0700)]
Merge pull request dotnet/coreclr#7640 from dotnet-bot/master-UpdateDependencies

Update CoreClr, External to beta-24616-02, beta-24616-00, respectively (master)

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

7 years agoUpdate linux-instructions.md
LaSombra [Sun, 16 Oct 2016 12:30:24 +0000 (13:30 +0100)]
Update linux-instructions.md

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

7 years agoUpdate linux-instructions.md
LaSombra [Sun, 16 Oct 2016 12:17:20 +0000 (13:17 +0100)]
Update linux-instructions.md

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

7 years agoUpdate linux-instructions.md
LaSombra [Sun, 16 Oct 2016 12:13:14 +0000 (13:13 +0100)]
Update linux-instructions.md

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

7 years agoUpdate linux-instructions.md
LaSombra [Sun, 16 Oct 2016 12:12:10 +0000 (13:12 +0100)]
Update linux-instructions.md

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

7 years agoUpdate CoreClr, External to beta-24616-02, beta-24616-00, respectively
dotnet-bot [Sun, 16 Oct 2016 08:25:58 +0000 (08:25 +0000)]
Update CoreClr, External to beta-24616-02, beta-24616-00, respectively

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

7 years agoOnly run Debug and Release WinArm32 PR Builds
Gaurav Khanna [Sun, 16 Oct 2016 03:57:00 +0000 (20:57 -0700)]
Only run Debug and Release WinArm32 PR Builds

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

7 years agoMerge pull request dotnet/coreclr#7630 from dotnet-bot/master-UpdateDependencies
Stephen Toub [Sun, 16 Oct 2016 02:27:55 +0000 (22:27 -0400)]
Merge pull request dotnet/coreclr#7630 from dotnet-bot/master-UpdateDependencies

Update CoreClr, CoreFx to beta-24616-01, beta-24615-03, respectively (master)

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

7 years agoMerge pull request dotnet/coreclr#7632 from dotnet/revert-7213-revert-7123-WinArm32CI
Gaurav Khanna [Sun, 16 Oct 2016 01:52:00 +0000 (18:52 -0700)]
Merge pull request dotnet/coreclr#7632 from dotnet/revert-7213-revert-7123-WinArm32CI

Re-Enable Win32Arm CI support

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

7 years agoUpdate CoreClr, CoreFx to beta-24616-01, beta-24615-03, respectively
dotnet-bot [Sun, 16 Oct 2016 00:21:39 +0000 (00:21 +0000)]
Update CoreClr, CoreFx to beta-24616-01, beta-24615-03, respectively

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

7 years agoMerge pull request dotnet/coreclr#7637 from gkhanna79/FixArm32Build
Gaurav Khanna [Sun, 16 Oct 2016 00:14:21 +0000 (17:14 -0700)]
Merge pull request dotnet/coreclr#7637 from gkhanna79/FixArm32Build

Few more fixes for WinArm32 CI build.

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

7 years agoFew more fixes for WinArm32 CI build.
Gaurav Khanna [Sat, 15 Oct 2016 21:06:23 +0000 (14:06 -0700)]
Few more fixes for WinArm32 CI build.

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

7 years agoString.SplitInternal: Remove unnecessary stackalloc (dotnet/coreclr#7623)
Justin Van Patten [Sat, 15 Oct 2016 09:58:59 +0000 (02:58 -0700)]
String.SplitInternal: Remove unnecessary stackalloc (dotnet/coreclr#7623)

Simply take the address of the `char` instead of stackallocating a
`char[1]`.

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

7 years agoMerge pull request dotnet/coreclr#7633 from ramarag/master
Rama krishnan Raghupathy [Sat, 15 Oct 2016 06:52:15 +0000 (23:52 -0700)]
Merge pull request dotnet/coreclr#7633 from ramarag/master

Exposing Gc.TryStartNoGCRegion

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

7 years agoMerge pull request dotnet/coreclr#7631 from ramarag/Activator
Rama krishnan Raghupathy [Sat, 15 Oct 2016 05:19:39 +0000 (22:19 -0700)]
Merge pull request dotnet/coreclr#7631 from ramarag/Activator

Throwing PlatformNotSupportedException for ActivationAttributes

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

7 years agoRevert "Revert "Enable Win32Arm CI support""
Gaurav Khanna [Sat, 15 Oct 2016 02:27:06 +0000 (19:27 -0700)]
Revert "Revert "Enable Win32Arm CI support""

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

7 years agoMerge pull request dotnet/coreclr#7629 from gkhanna79/FixArmSdkDetection
Gaurav Khanna [Sat, 15 Oct 2016 02:25:38 +0000 (19:25 -0700)]
Merge pull request dotnet/coreclr#7629 from gkhanna79/FixArmSdkDetection

Explicitly specify the Windows SDK version for CMake.

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

7 years agoExposing Gc.TryStartNoGCRegion
Rama Krishnan Raghupathy [Sat, 15 Oct 2016 02:15:10 +0000 (19:15 -0700)]
Exposing Gc.TryStartNoGCRegion

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

7 years agoMerge pull request dotnet/coreclr#7622 from gkhanna79/SimplifyExtVer
Gaurav Khanna [Sat, 15 Oct 2016 02:09:58 +0000 (19:09 -0700)]
Merge pull request dotnet/coreclr#7622 from gkhanna79/SimplifyExtVer

Simplify External Package Versioning.

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

7 years agoThrowing PlatformNotSupportedException for ActivationAttributes
Rama Krishnan Raghupathy [Sat, 15 Oct 2016 01:01:44 +0000 (18:01 -0700)]
Throwing PlatformNotSupportedException for ActivationAttributes

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