platform/upstream/coreclr.git
7 years agoMerge pull request #10105 from JonHanna/corefx16566
Atsushi Kanamori [Mon, 13 Mar 2017 13:58:28 +0000 (06:58 -0700)]
Merge pull request #10105 from JonHanna/corefx16566

Rename Type.IsSzArray to Type.IsSZArray and make public.

7 years agoUse VSD_STUB_CAN_THROW_AV instead of explicit _TARGET_XXX_ (#10143)
Jonghyun Park [Mon, 13 Mar 2017 11:47:08 +0000 (20:47 +0900)]
Use VSD_STUB_CAN_THROW_AV instead of explicit _TARGET_XXX_ (#10143)

7 years agoUse GetDoubleArrayToLargeObjectHeapThreshold when FEATURE_DOUBLE_ALIGNMENT_HINT is...
Jonghyun Park [Mon, 13 Mar 2017 11:44:06 +0000 (20:44 +0900)]
Use GetDoubleArrayToLargeObjectHeapThreshold when FEATURE_DOUBLE_ALIGNMENT_HINT is on (#10136)

7 years agoMerge pull request #10134 from seanshpark/fixtypo
Bruce Forstall [Mon, 13 Mar 2017 05:31:44 +0000 (22:31 -0700)]
Merge pull request #10134 from seanshpark/fixtypo

Fix typo in Compiler::gtHasRef()

7 years agoImprove encoding performance (#10124)
Jan Kotas [Mon, 13 Mar 2017 04:06:26 +0000 (21:06 -0700)]
Improve encoding performance (#10124)

7 years agoFix typo in Compiler::gtHasRef()
SaeHie Park [Mon, 13 Mar 2017 03:09:56 +0000 (12:09 +0900)]
Fix typo in Compiler::gtHasRef()

7 years agoRemove dead code (#10128)
Bruce Forstall [Mon, 13 Mar 2017 00:58:08 +0000 (17:58 -0700)]
Remove dead code (#10128)

Remove code under `#ifdef PROTO_JIT`, which hasn't been defined
in a long time. I'm presuming that since this hasn't been defined
in a long time that the code isn't needed.

7 years agoUpdate License and add 3PN notices (#10117)
Rich Lander [Sun, 12 Mar 2017 06:15:30 +0000 (22:15 -0800)]
Update License and add 3PN notices (#10117)

7 years agoMerge pull request #9867 from sdmaclea/PR-ARM64-FAILS-9857
Jarret Shook [Sun, 12 Mar 2017 04:09:08 +0000 (20:09 -0800)]
Merge pull request #9867 from sdmaclea/PR-ARM64-FAILS-9857

[Arm64/Unix] Update fails as result of #9857

7 years agoMerge pull request #10121 from dotnet-bot/master-UpdateDependencies
Stephen Toub [Sat, 11 Mar 2017 23:28:39 +0000 (18:28 -0500)]
Merge pull request #10121 from dotnet-bot/master-UpdateDependencies

Update CoreClr to beta-25111-03 (master)

7 years agoUpdate CoreClr to beta-25111-03
dotnet-bot [Sat, 11 Mar 2017 17:54:45 +0000 (17:54 +0000)]
Update CoreClr to beta-25111-03

7 years agoMerge pull request #10116 from jkotas/issue-6209
Stephen Toub [Sat, 11 Mar 2017 11:53:32 +0000 (06:53 -0500)]
Merge pull request #10116 from jkotas/issue-6209

Strip internal frame in Environment.StackTrace

7 years agoMerge pull request #10118 from BruceForstall/FixRuntest
Bruce Forstall [Sat, 11 Mar 2017 08:32:48 +0000 (00:32 -0800)]
Merge pull request #10118 from BruceForstall/FixRuntest

Fix delayed expansion scripting error in runtest.cmd

7 years agoFix delayed expansion scripting error in runtest.cmd
Bruce Forstall [Sat, 11 Mar 2017 06:48:35 +0000 (22:48 -0800)]
Fix delayed expansion scripting error in runtest.cmd

7 years agoFix incorrect assert condition
Jan Kotas [Sat, 11 Mar 2017 05:55:51 +0000 (21:55 -0800)]
Fix incorrect assert condition

Fixes #8683

7 years agoStrip internal frame in Environment.StackTrace
Jan Kotas [Sat, 11 Mar 2017 05:39:25 +0000 (21:39 -0800)]
Strip internal frame in Environment.StackTrace

Contributes to #6209

7 years agoMerge pull request #10071 from jashook/r2r_gcstress_3_exclusions
Jarret Shook [Sat, 11 Mar 2017 04:57:55 +0000 (20:57 -0800)]
Merge pull request #10071 from jashook/r2r_gcstress_3_exclusions

Exclude R2R and GCStress 3 failures.

7 years agoRename Type.IsSzArray to Type.IsSZArray and make public.
Jon Hanna [Sat, 11 Mar 2017 00:13:27 +0000 (00:13 +0000)]
Rename Type.IsSzArray to Type.IsSZArray and make public.

For dotnet/corefx#16566

7 years agoMerge pull request #10075 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Fri, 10 Mar 2017 23:05:26 +0000 (15:05 -0800)]
Merge pull request #10075 from dotnet-bot/master-UpdateDependencies

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

7 years agoMerge pull request #9979 from alpencolt/ryu-arm-blocks
Bruce Forstall [Fri, 10 Mar 2017 22:57:22 +0000 (14:57 -0800)]
Merge pull request #9979 from alpencolt/ryu-arm-blocks

[RyuJIT/ARM32] GT_STORE_BLK/GT_STORE_DYN_BLK support in codegen

7 years agoMerge pull request #9679 from alpencolt/ryu-arm-arr-index-offset
Bruce Forstall [Fri, 10 Mar 2017 22:37:19 +0000 (14:37 -0800)]
Merge pull request #9679 from alpencolt/ryu-arm-arr-index-offset

[RyuJIT/ARM32] GT_ARR_INDEX/GT_ARR_OFFSET support in codegen.

7 years agoImprove performance of Span.Fill (#10084)
Jan Kotas [Fri, 10 Mar 2017 21:43:37 +0000 (13:43 -0800)]
Improve performance of Span.Fill (#10084)

7 years agoMerge pull request #10096 from Maoni0/nogc
Maoni Stephens [Fri, 10 Mar 2017 21:42:30 +0000 (13:42 -0800)]
Merge pull request #10096 from Maoni0/nogc

Porting desktop GC changes to coreclr. This fixes the following:

7 years agoPorting desktop changes to coreclr. This fixes the following:
Maoni0 [Fri, 10 Mar 2017 19:39:09 +0000 (11:39 -0800)]
Porting desktop changes to coreclr. This fixes the following:

1) https://github.com/dotnet/coreclr/issues/6809
2) when we do a minimal GC, we need to maintain the states correctly (sync up tables and clear bricks for the portion that we don't need in a normal GC but do need in minimal GC)

7 years agoFix debugging on OS X Sierra (#10078)
Mike McLaughlin [Fri, 10 Mar 2017 18:57:29 +0000 (10:57 -0800)]
Fix debugging on OS X Sierra (#10078)

Issue #9730

The output of the vmmap changed between OS X versions. Changed the sscanf formatting to deal with both old/new formats.

7 years agoUpdate CoreClr, CoreFx to beta-25110-03, beta-25110-02, respectively
dotnet-bot [Fri, 10 Mar 2017 17:59:04 +0000 (17:59 +0000)]
Update CoreClr, CoreFx to beta-25110-03, beta-25110-02, respectively

7 years ago[x86/Linux][GDB-JIT] Fix crash after changing default calling convention in PR #9977...
Evgeny Pavlov [Fri, 10 Mar 2017 17:58:35 +0000 (20:58 +0300)]
[x86/Linux][GDB-JIT] Fix crash after changing default calling convention in PR #9977 (#10087)

7 years agoExclude R2R and GCStress 3 failures.
jashook [Thu, 9 Mar 2017 21:38:13 +0000 (13:38 -0800)]
Exclude R2R and GCStress 3 failures.

7 years agoMerge pull request #10079 from hseok-oh/ci/x86_job
Gaurav Khanna [Fri, 10 Mar 2017 15:58:21 +0000 (07:58 -0800)]
Merge pull request #10079 from hseok-oh/ci/x86_job

[Linux/x86] Enable CI Linux/x86 build

7 years agoMerge pull request #10061 from adiaaida/linuxThroughputTesting
Michelle McDaniel [Fri, 10 Mar 2017 15:39:55 +0000 (07:39 -0800)]
Merge pull request #10061 from adiaaida/linuxThroughputTesting

Add linux throughput testing support

7 years agoRemove faulty asserts from ArraySegment (#10086)
Stephen Toub [Fri, 10 Mar 2017 14:28:15 +0000 (09:28 -0500)]
Remove faulty asserts from ArraySegment (#10086)

7 years ago[Linux/x86] Enable CI Linux/x86 build job
Hyeongseok Oh [Fri, 10 Mar 2017 01:17:56 +0000 (10:17 +0900)]
[Linux/x86] Enable CI Linux/x86 build job

Make new CI job: Linux/x86 build (debug, checked, release)
- Triggered on-demand
- Docker for crossbuild
- Use build-rootfs.sh script to make x86 rootfs

7 years agoMove more types into the shared partition. (#10068)
Atsushi Kanamori [Fri, 10 Mar 2017 03:20:12 +0000 (19:20 -0800)]
Move more types into the shared partition. (#10068)

* Split/Move files verbatim into shared partition.

* Style cleanup.

- Delete unused usings

- Use autoprops when possible

- Lambda syntax for TypeDelegator
  (yes, it's a lot of code review noise
  but if there was ever a canonical use-case
  for that syntax, this is it.)

7 years agoAdd linux throughput testing support
Michelle McDaniel [Wed, 8 Mar 2017 22:58:03 +0000 (22:58 +0000)]
Add linux throughput testing support

This change modifies perf-prep.sh, run-throughput-perf.py and perf.groovy
to add support for linux throughput testing. The following changes have
been made:

1. Update run-throughput-perf to specify the jit differently on linux and
windows. Create a new set of dlls to crossgen on linux. The following are
removed: CodeAnalysis, CodeAnalysis.VisualBasic, CodeAnalysis.Csharp
(these do not exist in the corefx runtime dir that we will be using on
linux), System, System.Core, System.XML (these are significantly smaller
on Linux than windows). Make the list of architectures a dictionary so we
can specify different arches for different oses. Change the path to
crossgen/the jit to the Product directory. Change the timer to
timeit.default_timer, which will pick the most accurate timer for each
platform.

2. Modify perf-prep for throughput purposes. In throughput testing, we
need to enlist in corefx and build it. We pick a specific commit to enlist
in so that testing will be consistent. The rest of the work that perf-prep
can be skipped for throughput testing, as we are not running tests.

3. Update perf.groovy with throughput jobs on Linux.

7 years agoMerge pull request #10032 from pgavlin/LastUsesBuildIntervals
Pat Gavlin [Fri, 10 Mar 2017 00:26:11 +0000 (16:26 -0800)]
Merge pull request #10032 from pgavlin/LastUsesBuildIntervals

Calculate last uses while building intervals.

7 years agoFix incremental build of resources injected to coreclr.dll (#10045)
Jan Vorlicek [Thu, 9 Mar 2017 22:28:24 +0000 (23:28 +0100)]
Fix incremental build of resources injected to coreclr.dll (#10045)

* Fix incremental build of resources injected to coreclr.dll

This change fixes the build of resources injected to coreclr.dll so that it
happens only when its dependencies change and not at every build.

7 years agoSupport cross compiling for Zesty (#10066)
Frederik Carlier [Thu, 9 Mar 2017 22:27:55 +0000 (23:27 +0100)]
Support cross compiling for Zesty (#10066)

* Support Zesty, newer liblldb packages

* Describe lldb options

7 years agoMerge pull request #9728 from rahku/fixIssue8683
Rahul Kumar [Thu, 9 Mar 2017 21:49:22 +0000 (13:49 -0800)]
Merge pull request #9728 from rahku/fixIssue8683

Ignore binder context for corelib when performing binding cache lookup

7 years agoImprove span copy of pointers and structs containing pointers (#9999)
Koundinya Veluri [Thu, 9 Mar 2017 21:12:43 +0000 (13:12 -0800)]
Improve span copy of pointers and structs containing pointers (#9999)

Improve span copy of pointers and structs containing pointers

Fixes #9161

PR #9786 fixes perf of span copy of types that don't contain references

7 years agoMerge pull request #10063 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Thu, 9 Mar 2017 21:03:28 +0000 (13:03 -0800)]
Merge pull request #10063 from dotnet-bot/master-UpdateDependencies

Update CoreClr to beta-25109-03 (master)

7 years agoIgnore binder context for corelib when performing binding cache lookup
Rahul Kumar [Thu, 23 Feb 2017 00:54:48 +0000 (16:54 -0800)]
Ignore binder context for corelib when performing binding cache lookup

7 years agoUpdate CoreClr to beta-25109-03
dotnet-bot [Thu, 9 Mar 2017 18:28:01 +0000 (18:28 +0000)]
Update CoreClr to beta-25109-03

7 years agoMerge pull request #10055 from tannergooding/vs2017
Gaurav Khanna [Thu, 9 Mar 2017 17:27:09 +0000 (09:27 -0800)]
Merge pull request #10055 from tannergooding/vs2017

Updating the windows-instructions to list the minimum install requirements for VS2017 and to clarify that MSDIA120.dll must be registered.

7 years ago[Ryujit/ARM32] Support binary operator for decomposed long (#9978)
Hyung-Kyu Choi [Thu, 9 Mar 2017 17:10:21 +0000 (02:10 +0900)]
[Ryujit/ARM32] Support binary operator for decomposed long (#9978)

Implement binary operator for decomposed long type
in Lowering::TreeNodeInfoInit and CodeGen::genGetInsForOper,
i.e. GT_ADD_HI, GT_ADD_LO, GT_SUB_HI and GT_SUB_LO.

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
7 years agoUpdating the windows-instructions to list the minimum install requirements for VS2017...
Tanner Gooding [Thu, 9 Mar 2017 17:08:58 +0000 (09:08 -0800)]
Updating the windows-instructions to list the minimum install requirements for VS2017 and to clarify that MSDIA120.dll must be registered.

7 years agoMerge pull request #10053 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Thu, 9 Mar 2017 17:01:17 +0000 (09:01 -0800)]
Merge pull request #10053 from dotnet-bot/master-UpdateDependencies

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

7 years agoUpdate CoreClr, CoreFx to beta-25109-01, beta-25109-03, respectively
dotnet-bot [Thu, 9 Mar 2017 15:25:54 +0000 (15:25 +0000)]
Update CoreClr, CoreFx to beta-25109-01, beta-25109-03, respectively

7 years agoAggressiveInlining AsBytes and NonPortableCast (#10057)
Ahson Ahmed Khan [Thu, 9 Mar 2017 14:45:45 +0000 (06:45 -0800)]
AggressiveInlining AsBytes and NonPortableCast (#10057)

7 years agoMove System.Security attributes to shared partition. (#10036)
Atsushi Kanamori [Thu, 9 Mar 2017 14:44:26 +0000 (06:44 -0800)]
Move System.Security attributes to shared partition. (#10036)

* Split System\Security\Attributes.cs into properly named files.

* Formatting cleanup

"sealed public" => "public sealed"

"System.Attribute" => "Attribute"

Use autoprops when possible.

Be explicit about nullary constructors
 (since 90% of them already were.)

* Remove blank line.

7 years agoDo not set the last use bit on UVR ref positions.
Pat Gavlin [Thu, 9 Mar 2017 06:10:36 +0000 (22:10 -0800)]
Do not set the last use bit on UVR ref positions.

7 years agoFix extend lifetimes stress.
Pat Gavlin [Thu, 9 Mar 2017 05:51:47 +0000 (21:51 -0800)]
Fix extend lifetimes stress.

7 years ago[x86/Linux] Correctly adjust stack for double aligned frames (#9998)
Jonghyun Park [Thu, 9 Mar 2017 01:27:51 +0000 (10:27 +0900)]
[x86/Linux] Correctly adjust stack for double aligned frames (#9998)

[x86/Linux] Correct stack align for double aligned frames

7 years ago[x86/Linux] 16-byte aligned UMThunkStubs (#9997)
Jonghyun Park [Thu, 9 Mar 2017 01:19:57 +0000 (10:19 +0900)]
[x86/Linux] 16-byte aligned UMThunkStubs (#9997)

7 years agoMerge pull request #9956 from tannergooding/vs2017
Tanner Gooding [Thu, 9 Mar 2017 00:16:42 +0000 (16:16 -0800)]
Merge pull request #9956 from tannergooding/vs2017

Updating the build scripts to support VS2017.

7 years agoUpdate to buildtools version 1.0.27-prerelease-01407-02, and enable creating transpor...
chcosta [Thu, 9 Mar 2017 00:07:32 +0000 (16:07 -0800)]
Update to buildtools version 1.0.27-prerelease-01407-02, and enable creating transport packages (#10020)

* Update BuildTools fixes

* Update to buildtools version 1.0.27-prerelease-01407-02, and enable
building transport packages

* fix netcore project

* Avoid msb3644 error

* Fix bad copy

7 years agoMerge pull request #10038 from BruceForstall/DontBuildLegacy
Bruce Forstall [Thu, 9 Mar 2017 00:05:37 +0000 (16:05 -0800)]
Merge pull request #10038 from BruceForstall/DontBuildLegacy

Stop building x86 LEGACY_BACKEND

7 years agoRevise Interop TC Calling Convention (#10014)
Jonghyun Park [Wed, 8 Mar 2017 22:35:33 +0000 (07:35 +0900)]
Revise Interop TC Calling Convention (#10014)

7 years agoSRV->SVR in BotR GC section.
Aditya Mandaleeka [Wed, 8 Mar 2017 22:34:40 +0000 (14:34 -0800)]
SRV->SVR in BotR GC section.

7 years agoUpdating the building/windows-instructions.md to indicate the support for and require...
Tanner Gooding [Wed, 8 Mar 2017 02:15:25 +0000 (18:15 -0800)]
Updating the building/windows-instructions.md to indicate the support for and requirements of using VS2017.

7 years agoMerge pull request #10044 from mmitche/remove-nuget-cache
Matt Mitchell [Wed, 8 Mar 2017 21:01:40 +0000 (13:01 -0800)]
Merge pull request #10044 from mmitche/remove-nuget-cache

Remove the nuget cache from the archival

7 years agoAdd all .nuget subdirs
Matt Mitchell [Wed, 8 Mar 2017 20:35:55 +0000 (12:35 -0800)]
Add all .nuget subdirs

7 years agoRemove the nuget cache from the archival
Matt Mitchell [Wed, 8 Mar 2017 20:20:51 +0000 (12:20 -0800)]
Remove the nuget cache from the archival
This is taking an incredible amount of space and causing problems

7 years agoMerge pull request #9950 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Wed, 8 Mar 2017 19:50:36 +0000 (11:50 -0800)]
Merge pull request #9950 from dotnet-bot/master-UpdateDependencies

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

7 years agoMerge pull request #10040 from adiaaida/perfjobtriggers
Michelle McDaniel [Wed, 8 Mar 2017 19:20:43 +0000 (11:20 -0800)]
Merge pull request #10040 from adiaaida/perfjobtriggers

Change perf test trigger phases

7 years agoChange perf test trigger phases
Michelle McDaniel [Wed, 8 Mar 2017 18:54:29 +0000 (10:54 -0800)]
Change perf test trigger phases

Currently the trigger phases for perf testing use an underscore between OS
and architecture. This is inconsistent with our other trigger phrases.
This change changes the underscore to whitespace.

7 years agoStop building x86 LEGACY_BACKEND
Bruce Forstall [Wed, 8 Mar 2017 17:44:38 +0000 (09:44 -0800)]
Stop building x86 LEGACY_BACKEND

Since we require a compatjit.dll to be built so the JIT NuGet
package can be built, even if JIT32 isn't being built, change
the compatjit.dll build (when JIT32 isn't being built) to just
a normal JIT build.

7 years agoMerge pull request #10013 from BruceForstall/CiTailcallStress
Bruce Forstall [Wed, 8 Mar 2017 18:20:49 +0000 (10:20 -0800)]
Merge pull request #10013 from BruceForstall/CiTailcallStress

Add COMPlus_TailcallStress=1 testing

7 years agoMerge pull request #10017 from sivarv/morphAssertFix
Sivarv [Wed, 8 Mar 2017 18:15:59 +0000 (10:15 -0800)]
Merge pull request #10017 from sivarv/morphAssertFix

Morph assert fix.

7 years agoUpdate CoreClr, CoreFx to beta-25108-04, beta-25108-02, respectively
dotnet-bot [Wed, 8 Mar 2017 17:26:01 +0000 (17:26 +0000)]
Update CoreClr, CoreFx to beta-25108-04, beta-25108-02, respectively

7 years agoFormat code.
Pat Gavlin [Wed, 8 Mar 2017 16:59:08 +0000 (08:59 -0800)]
Format code.

7 years ago[x86/Linux] Calling convention mismatch inside Vector3Interop tests (#10028)
Jonghyun Park [Wed, 8 Mar 2017 11:40:26 +0000 (20:40 +0900)]
[x86/Linux] Calling convention mismatch inside Vector3Interop tests (#10028)

* [x86/Linux] Fix Calling Convention on JIT.SIMD.Vector3Interop tests

7 years ago[x86/Linux] Calling convention mismatch inside systemvbrinup test (#10029)
Jonghyun Park [Wed, 8 Mar 2017 11:39:55 +0000 (20:39 +0900)]
[x86/Linux] Calling convention mismatch inside systemvbrinup test (#10029)

* [x86/Linux] Fix calling convention mismatch inside JIT.Methodical.struct.systemvbringup test

7 years agoRemove CORECLR_GDBJIT length check in gdbjit (#10016)
chunseoklee [Wed, 8 Mar 2017 09:39:40 +0000 (18:39 +0900)]
Remove CORECLR_GDBJIT length check in gdbjit (#10016)

realted issue: https://github.com/dotnet/coreclr/issues/10003

7 years agoFix wrong gcc inline assembly code. (#10024)
ragmani [Wed, 8 Mar 2017 09:22:19 +0000 (18:22 +0900)]
Fix wrong gcc inline assembly code. (#10024)

It was coded as "rbx" instead of "ebx" register in clobber list position.

7 years agoFix assert in portable pdb reader running the clrstack command (#10011)
Mike McLaughlin [Wed, 8 Mar 2017 08:29:50 +0000 (00:29 -0800)]
Fix assert in portable pdb reader running the clrstack command (#10011)

Issue #9969

7 years agoMove two sharable classes into the shared partition. (#10009)
Atsushi Kanamori [Wed, 8 Mar 2017 08:23:30 +0000 (00:23 -0800)]
Move two sharable classes into the shared partition. (#10009)

The corert side of this was commited by
  https://github.com/dotnet/corert/pull/2915#event-990346611

7 years agoMerge pull request #10006 from wtgodbe/parallelWrapperGen
William Godbe [Wed, 8 Mar 2017 06:33:45 +0000 (22:33 -0800)]
Merge pull request #10006 from wtgodbe/parallelWrapperGen

Zip all test wrappers in parallel

7 years agoCalculate last uses during buildIntervals.
Pat Gavlin [Wed, 8 Mar 2017 03:50:53 +0000 (19:50 -0800)]
Calculate last uses during buildIntervals.

This change moves LSRA's last use calculation from `setLastUses`
into `buildIntervals`.

The algorithm flips is as follows:
- When adding a ref position to a lclVar interval:
    - If the ref position is not a parameter def, zero init, or an
      exposed use, set the ref position's last use bit
    - Additionally, if the ref position is a use and there is a
      preceding ref position in the same basic block, clear that ref
      position's last use bit.
- Once a basic block has been processed, clear the last use bit of the
  final ref position in that basic block (if any exists) for each lclVar
  that is live out of that block.

Aside from the algorithmic change, the other major difference is that
the GTF_VAR_DEATH bit is not updated until `resolveLocalRef`.

7 years agoRemove TRACK_CXX_EXCEPTION_CODE_HACK and related code. (#10018)
Aditya Mandaleeka [Wed, 8 Mar 2017 05:30:02 +0000 (21:30 -0800)]
Remove TRACK_CXX_EXCEPTION_CODE_HACK and related code. (#10018)

7 years agoPort Windows PGO support to master (#9985)
Daniel Podder [Wed, 8 Mar 2017 03:14:57 +0000 (21:14 -0600)]
Port Windows PGO support to master (#9985)

The bulk of this PR is a cherry-pick of commit fa02660 that shipped in
release/1.1.0, updating the build system support for PGO to support
consuming PGDs properly during release builds on Windows.

Also included are the following new changes:
* Skip restore of opdata if the requisite project.json is missing
* If the optdata package restore fails, fail the build.
* Add new build option: 'skiprestoreoptdata'

Note: This change doesn't by itself enable PGO in master yet, because
training data (optdata packages) for master don't exist on myget yet.
However, with these changes, the only step remaining to enable PGO
optimizations is to add a project.json referencing the correct optdata
package.

7 years agoUpdating the various windows build scripts to have a comment explaining the VS versio...
Tanner Gooding [Wed, 8 Mar 2017 02:04:25 +0000 (18:04 -0800)]
Updating the various windows build scripts to have a comment explaining the VS version selection logic.

7 years agoMerge pull request #10021 from adityamandaleeka/fix_broken_ci_badges
Aditya Mandaleeka [Wed, 8 Mar 2017 01:54:45 +0000 (17:54 -0800)]
Merge pull request #10021 from adityamandaleeka/fix_broken_ci_badges

Fix broken CI badges

7 years agoAdd new JIT stress modes to the CI system; clean up netci.groovy duplication
Bruce Forstall [Wed, 8 Mar 2017 01:45:33 +0000 (17:45 -0800)]
Add new JIT stress modes to the CI system; clean up netci.groovy duplication

1. Add JIT tailcall stress: COMPlus_TailcallStress=1
2. Add "SSE2 only": COMPlus_EnableAVX=0, COMPlus_EnableSSE3_4=0
3. Add new JIT stress regs mode: COMPlus_JitStressRegs=0x1000
   a. Do this plain, with JitStress=2, with CoreFX, and in R2R testing
4. Fix R2R JitStressRegs10 and 80 to actually test 10 and 80! (previously, they
   were passing "x10" and "x80", which get parsed as zero.
5. Delete tons of duplicate code from netci.groovy, and use a table/function
   to determine test display names.

Fixes #8626, #6129, #10004

7 years agoFix broken badges.
Aditya Mandaleeka [Wed, 8 Mar 2017 01:49:12 +0000 (17:49 -0800)]
Fix broken badges.

7 years agoAdd shared changes from corert (#10010)
Alex Perovich [Wed, 8 Mar 2017 01:49:42 +0000 (19:49 -0600)]
Add shared changes from corert (#10010)

7 years agoMorph assert fix.
sivarv [Wed, 8 Mar 2017 01:15:47 +0000 (17:15 -0800)]
Morph assert fix.

7 years agoMerge pull request #10005 from stephentoub/taskextensions
Stephen Toub [Wed, 8 Mar 2017 01:02:56 +0000 (20:02 -0500)]
Merge pull request #10005 from stephentoub/taskextensions

Add TaskExtensions to CoreLib

7 years agoAdd scripts for building for arm Android (#9961)
Frederik Carlier [Tue, 7 Mar 2017 22:46:27 +0000 (23:46 +0100)]
Add scripts for building for arm Android (#9961)

* Add scripts for building for arm Android

* Use arm soft float for bringup

* Use NDK r14

* Set HAVE_PT_REGS to false, as they are not available on Android

* _aligned_alloc is not available on clang

* Detect Visual C++ instead of clang

* Detect Android instead of clang

7 years ago[x86/linux] Fix "Undefined Reference" error in CLR release build. (#10000)
ragmani [Tue, 7 Mar 2017 22:28:58 +0000 (07:28 +0900)]
[x86/linux] Fix "Undefined Reference" error in CLR release build. (#10000)

Replace "IncCantStopCount()" and "DecCantStopCount()" functions with
nothing(#define IncCantStopCount()) to call in methods of UTSemReadWrite
on x86/Linux.

7 years agoFix incremental build of mscordaccore (#9982)
Jan Vorlicek [Tue, 7 Mar 2017 21:41:22 +0000 (22:41 +0100)]
Fix incremental build of mscordaccore (#9982)

* Fix incremental build of mscordaccore

This change sets up proper dependency for the mscordaccore build and stops
using PRE_LINK command which is executed always.
The way it solves the problem is that it creates an object library from the
mscordac.cpp and then lets the mscordaccore.exp be generated from that object
and finally use both that object library and the mscordaccore.exp while building
mscordaccore.

7 years agoMerge pull request #9992 from adiaaida/fixjit32testing
Michelle McDaniel [Tue, 7 Mar 2017 19:24:10 +0000 (11:24 -0800)]
Merge pull request #9992 from adiaaida/fixjit32testing

Fix jit32 perf and throughput testing

7 years agoAdd TaskExtensions to CoreLib
Stephen Toub [Tue, 7 Mar 2017 17:50:17 +0000 (12:50 -0500)]
Add TaskExtensions to CoreLib

Our TaskExtensions.Unwrap implementation in corefx is more allocation-heavy than the implementation we had in desktop and we could have in CoreLib, where CreateUnwrapPromise is available.  By moving this implementation down to CoreLib, the code:
```C#
Task<Task> toUnwrap = ...;
Task t = toUnwrap.Unwrap();
```
incurs 1 allocation instead of 4.

7 years agoFix jit32 perf and throughput testing
Michelle McDaniel [Mon, 6 Mar 2017 22:21:15 +0000 (14:21 -0800)]
Fix jit32 perf and throughput testing

For jit32, we need to download the compatjit to make sure we are using a
jit32 build, not legacy backend (which is what is built when we run a
regular build out of coreclr). This change updates the groovy scripting to
pull down the jit nuget package that contains compatjit.

Until the packaging is fixed (#9991), we are defaulting to the last
package that packaged compatjit along with clrjit.

7 years agoMerge pull request #9996 from BruceForstall/FixCallFunFormatting
Bruce Forstall [Tue, 7 Mar 2017 19:14:00 +0000 (11:14 -0800)]
Merge pull request #9996 from BruceForstall/FixCallFunFormatting

Un-clang-format-horrible-ify emitIns_Call() and genEmitCall()

7 years agoZip all test wrappers in parallel
wtgodbe [Tue, 7 Mar 2017 19:07:58 +0000 (11:07 -0800)]
Zip all test wrappers in parallel

7 years ago[x86/Linux] CDECL as default P/Invoke Calling Convetion (#9977)
Jonghyun Park [Tue, 7 Mar 2017 11:27:35 +0000 (20:27 +0900)]
[x86/Linux] CDECL as default P/Invoke Calling Convetion (#9977)

* [x86/Linux] CDECL as default P/Invoke Calling Convetion

7 years agoEnhance ICU version scan (#9993)
Jan Vorlicek [Tue, 7 Mar 2017 11:03:08 +0000 (12:03 +0100)]
Enhance ICU version scan (#9993)

The scanning that tries to find locally installed ICU version was not
considering the case when only ICU library files with major version
component were present (like libicuuc.so.52). This is a rare case that
I've seen so far only when people built and installed ICU manually.
But it is worth to add checks for such case as a fallback, which is
what this change does.
I have also added checks for minorVersion and subVersion being -1 when
trying to detect the symbol versioning used. While the pre-existing code
would still work fine, it would unnecessarily try nonsensical version.

7 years ago[x86/Linux] Fix incorrect FP values (#9975)
Hanjoung Lee [Tue, 7 Mar 2017 08:57:29 +0000 (17:57 +0900)]
[x86/Linux] Fix incorrect FP values (#9975)

* [x86/Linux] Fix incorrect FP values

Restoring FP by CallerSP could be incorrect for nested EH.
Now that we have #9820, we can use current context for 1st pass of EH.

Fix #9848

7 years agoMerge pull request #9995 from BruceForstall/FixNetciForceRelocs
Bruce Forstall [Tue, 7 Mar 2017 07:34:31 +0000 (23:34 -0800)]
Merge pull request #9995 from BruceForstall/FixNetciForceRelocs

Add missing "break" in a forcerelocs case

7 years agoHarden resolveVirtualMethod against invalid types (#9989)
Andy Ayers [Tue, 7 Mar 2017 03:31:24 +0000 (19:31 -0800)]
Harden resolveVirtualMethod against invalid types (#9989)

Split resolveVirtualMethod into a wrapper/helper to allow early
returns as failure reasons are discovered.

Before devirtualizing, ensure that the derived class claimed by the jit
is really a subclass of the class that introduces the virtual method.
Fail early if this is not the case.

Also add early out for interface call devirtualization. The jit currently
does not ask for this but asking for it should not trigger an assert.

Closes #9945 (along with #9959).