platform/upstream/coreclr.git
7 years agoInitial commit of checked in build definitions for CoreCLR
wtgodbe [Tue, 4 Apr 2017 18:52:59 +0000 (11:52 -0700)]
Initial commit of checked in build definitions for CoreCLR

7 years agoRevert EncodingForwarder for the sake of the Perf (#10740)
Tarek Mahmoud Sayed [Thu, 6 Apr 2017 17:11:21 +0000 (10:11 -0700)]
Revert EncodingForwarder for the sake of the Perf (#10740)

* Revert EncodingForwarder for the sake of the Perf

* Add missing optimization

7 years ago[x86/Linux] PAL test in CI build (#10688)
Hyeongseok Oh [Thu, 6 Apr 2017 16:23:13 +0000 (01:23 +0900)]
[x86/Linux] PAL test in CI build (#10688)

* [x86/Linux] PAL test in CI build

Add PAL test in CI x86/Linux build
Change docker image: including rootfs

* Fix netci.groovy

Add PAL test's result

7 years ago[ARM/CI] Update image for armel Tizen CI (#10730)
Hyung-Kyu Choi [Thu, 6 Apr 2017 16:22:53 +0000 (01:22 +0900)]
[ARM/CI] Update image for armel Tizen CI (#10730)

Update image for armel CI to sync with Tizen rootfs

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
7 years agoMerge pull request #10742 from BruceForstall/RemoveUnusedDefine
Bruce Forstall [Thu, 6 Apr 2017 15:52:42 +0000 (08:52 -0700)]
Merge pull request #10742 from BruceForstall/RemoveUnusedDefine

Remove unused PREDICT_REG_RER_INDIRECT_PARAM define

7 years agoMerge pull request #10752 from BruceForstall/FixBBFformatting
Bruce Forstall [Thu, 6 Apr 2017 15:52:24 +0000 (08:52 -0700)]
Merge pull request #10752 from BruceForstall/FixBBFformatting

Clean up block.h formatting

7 years agoClean up and prepare FileLoadException.cs for move to Shared Partition. (#10764)
Atsushi Kanamori [Thu, 6 Apr 2017 14:45:58 +0000 (07:45 -0700)]
Clean up and prepare FileLoadException.cs for move to Shared Partition. (#10764)

* String => string

* Replace fields with autoprops.

* Turn Type.FullName call to Type.ToString() in ToString().

Avoids MissingMetadataExceptions on CoreRT.

Assuming metadata exists, ToString() and FullName()
still generates the same string except in the weird
case where an app subclasses FileLoadException
with a generic exception type - in which case,
the ToString() version is actually more readable.

* Get rid of useless try-catch around FusionLog calls.

FusionLog is now just a normal property and an answer
to a trivia question - it won't throw SecurityException.

* Get rid of low-value SetMessageField() middleman.

* Split off the stuff we don't want to share.

* The complementary carwash...

* Don't conditionalize FusionLog serialization.

7 years ago[x86/Linux] Clean up ZapUnwindData (#10750)
Jonghyun Park [Thu, 6 Apr 2017 09:51:19 +0000 (18:51 +0900)]
[x86/Linux] Clean up ZapUnwindData (#10750)

7 years ago[Local GC] Fix a bad merge (#10748)
Sean Gillespie [Thu, 6 Apr 2017 05:20:35 +0000 (22:20 -0700)]
[Local GC] Fix a bad merge (#10748)

7 years agoreplace the linear time algorithm from lclvars with the constant one. (#10401)
Sergey Andreenko [Thu, 6 Apr 2017 02:00:43 +0000 (19:00 -0700)]
replace the linear time algorithm from lclvars with the constant one. (#10401)

add new block flag DOMINATED_BY_NOT_NORMAL_ENTRY

It allows to answer the question: "Is block dominated by non normal
entry" - in O(1).

7 years agogtLdftnResolvedToken is no longer necessary, because token is saved on the stack...
Sergey Andreenko [Thu, 6 Apr 2017 01:23:19 +0000 (18:23 -0700)]
gtLdftnResolvedToken is no longer necessary, because token is saved on the stack. (#10738)

The was an error in the assert because I checked pointers that were
obvious different.
The actual values could not be different because they are created from
the same token in the same place (importer.cpp DO_LDFTN:
impMethodPointer saved resolvedToken as gtLdftnResolvedToken ,
CORINFO_RESOLVED_TOKEN* heapToken = impAllocateToken(resolvedToken);
impPushOnStack(op1, typeInfo(heapToken)); saved the token on the stack.

7 years ago[x86/Linux] 16-byte aligned HelperMethodFrameRestoreState (#10720)
Jonghyun Park [Thu, 6 Apr 2017 00:36:37 +0000 (09:36 +0900)]
[x86/Linux] 16-byte aligned HelperMethodFrameRestoreState (#10720)

* [x86/Linux] 16-byte aligned HelperMethodFrameRestoreState

* Use STACK_ALIGN_PADDING and update comment

7 years agoClean up block.h formatting
Bruce Forstall [Thu, 6 Apr 2017 00:09:29 +0000 (17:09 -0700)]
Clean up block.h formatting

Hide a few things from clang-format

7 years agoMerge pull request #10724 from mikedn/small-type-xchg
Bruce Forstall [Wed, 5 Apr 2017 23:28:16 +0000 (16:28 -0700)]
Merge pull request #10724 from mikedn/small-type-xchg

Use the correct type for interlocked instructions

7 years agoMerge pull request #10615 from brianrob/profiler
Brian Robbins [Wed, 5 Apr 2017 23:21:39 +0000 (16:21 -0700)]
Merge pull request #10615 from brianrob/profiler

Cross-Platform Sample-Based Profiler

7 years agoMerge pull request #10739 from wtgodbe/GroovyFedora
William Godbe [Wed, 5 Apr 2017 22:37:40 +0000 (15:37 -0700)]
Merge pull request #10739 from wtgodbe/GroovyFedora

Add Fedora24 to CI

7 years agoRemove unused PREDICT_REG_RER_INDIRECT_PARAM define
Bruce Forstall [Wed, 5 Apr 2017 22:20:07 +0000 (15:20 -0700)]
Remove unused PREDICT_REG_RER_INDIRECT_PARAM define

7 years ago[Local GC] Pull some logic using SystemDomain::System out of the GC (#10670)
Sean Gillespie [Wed, 5 Apr 2017 21:40:42 +0000 (14:40 -0700)]
[Local GC] Pull some logic using SystemDomain::System out of the GC (#10670)

* [Local GC] Pull some logic using SystemDomain::System out of the GC

* Address code review feedback: add comment about this (per the GitHub discussion) and rename API to ForceFullGCToBeBlocking

7 years agoMerge pull request #10727 from hqueue/typo/doc_ryujit
Aditya Mandaleeka [Wed, 5 Apr 2017 21:38:39 +0000 (14:38 -0700)]
Merge pull request #10727 from hqueue/typo/doc_ryujit

Fix class name in ryujit-overview.md

7 years agoMerge pull request #10211 from sdmaclea/PR-ARM64-CROSSGEN-DISCONTIG
Jarret Shook [Wed, 5 Apr 2017 20:28:44 +0000 (13:28 -0700)]
Merge pull request #10211 from sdmaclea/PR-ARM64-CROSSGEN-DISCONTIG

[Arm64] Simplify trackedStackPtrsContig logic

7 years agoAdd Fedora24 to CI
wtgodbe [Wed, 5 Apr 2017 19:36:59 +0000 (12:36 -0700)]
Add Fedora24 to CI

7 years agoFix registry name enumeration (#10711)
Jeremy Kuhne [Wed, 5 Apr 2017 17:51:25 +0000 (10:51 -0700)]
Fix registry name enumeration (#10711)

1. Values can be removed after we've gotten the count
2. Allocations for names were  over 32K * enum call + 32K.

7 years ago[Local GC] Move Weak Reference finalization out of the GC (#10676)
Sean Gillespie [Wed, 5 Apr 2017 16:57:50 +0000 (09:57 -0700)]
[Local GC] Move Weak Reference finalization out of the GC (#10676)

* [Local GC] Move Weak Reference finalization out of the GC

* Address two issues:
  1) Use GetGCSafeMethodTable instead of GetMethodTable, so that the
     mark bit is correctly masked off the object's method table pointer,
  2) Address code review feedback by re-inserting a missed call to
     GetCanonicalMethodTable and rename the new API to EagerFinalized to
     better illustrate its broader purpose.

* Repair the GC sample

7 years agoMerge pull request #10574 from JosephTremoulet/FixTestProjectPath
Joseph Tremoulet [Wed, 5 Apr 2017 16:40:27 +0000 (12:40 -0400)]
Merge pull request #10574 from JosephTremoulet/FixTestProjectPath

Fix path to CoreCLRTestLibrary from SizeConstTest

7 years agoFix ThrowExceptionFromContextInternal for x86 Linux (#10728)
Jan Vorlicek [Wed, 5 Apr 2017 15:45:55 +0000 (17:45 +0200)]
Fix ThrowExceptionFromContextInternal for x86 Linux (#10728)

The function was missing restoring of some callee saved registers
which caused crashes in Checked build and hang in Release build.

7 years ago[x86/Linux] Fix build error in nuget packaging (#10691)
Hyeongseok Oh [Wed, 5 Apr 2017 15:15:22 +0000 (00:15 +0900)]
[x86/Linux] Fix build error in nuget packaging (#10691)

* [x86/Linux] Fix build error in nuget packaging

Fix build error in nuget packaging
Modify condition for excluding libcoreclrtraceptprovider.so

* Update runtime.Linux.Microsoft.NETCore.Runtime.CoreCLR.props

Fix typo

7 years agoMerge pull request #10112 from pgavlin/gh10106
Pat Gavlin [Wed, 5 Apr 2017 15:14:36 +0000 (08:14 -0700)]
Merge pull request #10112 from pgavlin/gh10106

Only build compatjit.dll when building JIT32.

7 years agoOnly build compatjit.dll when building JIT32.
Pat Gavlin [Sat, 11 Mar 2017 01:11:24 +0000 (17:11 -0800)]
Only build compatjit.dll when building JIT32.

In order to avoid confusion, do not build and package compatjit.dll
unless we are building JIT32.

Fixes #10106.

7 years ago[x86/Linux] add three functions for _X86_TARGET_ (#10378)
ragmani [Wed, 5 Apr 2017 10:00:04 +0000 (19:00 +0900)]
[x86/Linux] add three functions for _X86_TARGET_ (#10378)

* [x86/Linux] add three functions for _X86_TARGET_

There is no functions for _X86_TARGET_.
  - ZapUnwindData::GetAlignment()
  - DWORD ZapUnwindData::GetSize()
  - void ZapUnwindData::Save(ZapWriter * pZapWriter)

* [x86/Linux] remove personality routine on x86/linux.

remove creating personaly routine when assemblies is generated to ni.
add a function for getting size of UnwindDataBlob on x86/linux.

Signed-off-by: ragmani <ragmani0216@gmail.com>
* [x86/Linux] correct the unclearly fixed parts.

change Unwindinfo's size from sizeof(ULONG) to sizeof(UNWIND_INFO).
change Unwindinfo's alignment from sizeof(DWORD) to sizeof(BYTE).
remove unnecessary code.

* [x86/Linux] change alignment from sizeof(BYTE) to sizeof(DWORD).

7 years agoFix class name in ryujit-overview.md
Hyung-Kyu Choi [Wed, 5 Apr 2017 07:08:30 +0000 (16:08 +0900)]
Fix class name in ryujit-overview.md

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
7 years agoUse the correct type for interlocked instructions
Mike Danes [Wed, 5 Apr 2017 05:27:37 +0000 (08:27 +0300)]
Use the correct type for interlocked instructions

The interlocked operation type can, at least in theory, be TYP_VOID in the case of GT_LOCKADD. The first operand type is not relevant because it's the address of the memory location and not an indir.

The only option is to use the type of the second operand but that may be a small int type so genActualType needs to be used to get the correct type.

7 years agoMerge pull request #10303 from hseok-oh/fix_10300
Bruce Forstall [Wed, 5 Apr 2017 05:26:22 +0000 (22:26 -0700)]
Merge pull request #10303 from hseok-oh/fix_10300

[ARM32/RyuJIT] Fix register allocation for null check in call instruction

7 years agoMerge pull request #10637 from rahku/UrlString
Rahul Kumar [Wed, 5 Apr 2017 04:26:27 +0000 (21:26 -0700)]
Merge pull request #10637 from rahku/UrlString

Remove file system/security/util/URLString.cs

7 years agoRemove file system/security/util/URLString.cs
Rahul Kumar [Sat, 1 Apr 2017 00:11:24 +0000 (17:11 -0700)]
Remove file system/security/util/URLString.cs

7 years agoAdd a job for testing via IlLink for Linux
Swaroop Sridhar [Mon, 3 Apr 2017 23:10:38 +0000 (16:10 -0700)]
Add a job for testing via IlLink for Linux

Add jobs to run CoreCLR tests on Ubuntu via ILLINK

7 years agoFix invocation of ILLink in linux testing
Swaroop Sridhar [Tue, 4 Apr 2017 00:23:11 +0000 (17:23 -0700)]
Fix invocation of ILLink in linux testing

Fix the input to illink -a argument to not include the extension.
The current command line caused silent wrong code gneration
because of https://github.com/mono/linker/issues/56

7 years ago[x86/Linux] 16-byte aligned ResolveWorkerAsmStub (#10655)
Jonghyun Park [Wed, 5 Apr 2017 00:29:50 +0000 (09:29 +0900)]
[x86/Linux] 16-byte aligned ResolveWorkerAsmStub (#10655)

7 years agoMerge pull request #10715 from wtgodbe/alpineFix
William Godbe [Tue, 4 Apr 2017 23:42:20 +0000 (16:42 -0700)]
Merge pull request #10715 from wtgodbe/alpineFix

Fix Alpine build break in pipeline

7 years agoUpdate module not found error message (#10692)
Jan Vorlicek [Tue, 4 Apr 2017 23:41:25 +0000 (01:41 +0200)]
Update module not found error message (#10692)

This message can be misleading, since it says "The specified module
could not be found", but it would also report case when the module
was found, but one of the module's dependencies were not found.
Multiple people in the past were hit by that when their module was
not loaded, they were thinking that there is some problem with
the path coreclr is loading modules from or something like that and
spent non-trivial amount of time trying to figure that out.
The fact that the module could have missing dependencies is really
not obvious.

So I am updating the message to reflect that fact.

7 years agoFix Alpine build break in pipeline
wtgodbe [Tue, 4 Apr 2017 23:24:51 +0000 (16:24 -0700)]
Fix Alpine build break in pipeline

7 years agoCoreRT: make CORINFO_HELP_READYTORUN_DELEGATE_CTOR optimization for verifiable sequen...
Sergey Andreenko [Tue, 4 Apr 2017 23:20:29 +0000 (16:20 -0700)]
CoreRT: make CORINFO_HELP_READYTORUN_DELEGATE_CTOR optimization for verifiable sequences. (#10663)

delegate ctor optimization for CoreRT.

7 years agoMerge pull request #10190 from sdmaclea/PR-ARM64-BACKPORT-9500
Rahul Kumar [Tue, 4 Apr 2017 22:33:36 +0000 (15:33 -0700)]
Merge pull request #10190 from sdmaclea/PR-ARM64-BACKPORT-9500

[Arm64/Windows] Backport #9500 changes

7 years agoMerge pull request #10614 from sdmaclea/PR-ARM64-GENRET-GCINFO
Jarret Shook [Tue, 4 Apr 2017 20:58:38 +0000 (13:58 -0700)]
Merge pull request #10614 from sdmaclea/PR-ARM64-GENRET-GCINFO

[Arm64] Fix GCStress hole in genReturn

7 years agoMerge pull request #10609 from alpencolt/ryu-arm-locallock
Bruce Forstall [Tue, 4 Apr 2017 20:20:32 +0000 (13:20 -0700)]
Merge pull request #10609 from alpencolt/ryu-arm-locallock

[RyuJIT/ARM32] Localloc implementation in codegen

7 years agoMerge pull request #10699 from adityamandaleeka/fix_env_empty_var_handling
Aditya Mandaleeka [Tue, 4 Apr 2017 20:10:40 +0000 (13:10 -0700)]
Merge pull request #10699 from adityamandaleeka/fix_env_empty_var_handling

Fix handling of empty environment variables in PAL

7 years agoMerge pull request #10681 from BruceForstall/LinuxArmAltjit
Bruce Forstall [Tue, 4 Apr 2017 18:09:36 +0000 (11:09 -0700)]
Merge pull request #10681 from BruceForstall/LinuxArmAltjit

Add Linux host support for arm32/arm64 altjit

7 years agoFix handling of empty environment variables in PAL.
Aditya Mandaleeka [Tue, 4 Apr 2017 17:31:46 +0000 (10:31 -0700)]
Fix handling of empty environment variables in PAL.

7 years agoRemoved Unused Local Random Instances (#10696)
Rion Williams [Tue, 4 Apr 2017 17:47:54 +0000 (12:47 -0500)]
Removed Unused Local Random Instances (#10696)

* Removed Unused Local Random Instances

Discovered two cases of a `Random` instance that weren't being used
within their respective methods and removed them.

* Retained Earlier Comment

Retained an earlier comment for consistency

7 years agoUse setMachineAffinity for arm64 (#10558)
Matt Mitchell [Tue, 4 Apr 2017 15:29:26 +0000 (08:29 -0700)]
Use setMachineAffinity for arm64 (#10558)

7 years ago[x86/Linux] Fix crash when GC triggered inside funclets (#10188)
Hanjoung Lee [Tue, 4 Apr 2017 14:25:40 +0000 (23:25 +0900)]
[x86/Linux] Fix crash when GC triggered inside funclets (#10188)

* [x86/Linux] Fix crash when GC triggered inside funclets

* [x86/Linux] Make main function not to report

7 years agoPass crossbuild and linux-id to CMakeLists.txt using CMake arguments (#10686)
Hyeongseok Oh [Tue, 4 Apr 2017 12:07:09 +0000 (21:07 +0900)]
Pass crossbuild and linux-id to CMakeLists.txt using CMake arguments (#10686)

Remove in CMakeLists.txt
1) read cross-build from environment variable
2) read linux-id from file system
Instead, pass cross-build and linux-id from gen-buildsys-clang.sh using cmake arguments

7 years ago[x86/Linux] Correctly unwind esp frames (#10685)
Jonghyun Park [Tue, 4 Apr 2017 08:50:02 +0000 (15:50 +0700)]
[x86/Linux] Correctly unwind esp frames (#10685)

7 years agoMerge pull request #10601 from rahku/c4996
Rahul Kumar [Tue, 4 Apr 2017 08:02:19 +0000 (01:02 -0700)]
Merge pull request #10601 from rahku/c4996

1. Remove disable of C4996

7 years agoMerge pull request #10682 from BruceForstall/CleanUpJitEEDefine
Bruce Forstall [Tue, 4 Apr 2017 05:32:22 +0000 (22:32 -0700)]
Merge pull request #10682 from BruceForstall/CleanUpJitEEDefine

Remove unused code under typo define

7 years agoMerge pull request #10580 from noahfalk/fitjit_tier0_flag
Noah Falk [Tue, 4 Apr 2017 04:04:16 +0000 (21:04 -0700)]
Merge pull request #10580 from noahfalk/fitjit_tier0_flag

Add Tier0 jit flag

7 years agoUpdate README.md (#10641)
Nicolò Carandini [Tue, 4 Apr 2017 01:42:15 +0000 (03:42 +0200)]
Update README.md (#10641)

In this file I’ve found a “project.json” occurrence that I've changed to ".csproj".

7 years agoMove '#pragma warning(disable:21000)' to correct place (#10455)
Matt Warren [Tue, 4 Apr 2017 01:37:48 +0000 (02:37 +0100)]
Move '#pragma warning(disable:21000)' to correct place (#10455)

Whilst I was writing a blog post ['A Hitchhikers Guide to the CoreCLR Source Code'](http://mattwarren.org/2017/03/23/Hitchhikers-Guide-to-the-CoreCLR-Source-Code/#top-10-lists) I noticed that a `#pragma warning(disable:21000)` was mis-aligned.

I'm pretty sure that having it in the wrong place doesn't cause a problem (i.e. this doesn't actually *fix* anything), because the other methods are smaller, so I understand if you don't want to take the PR.

7 years agoImprove Guid.ToString (#10669)
Ben Adams [Tue, 4 Apr 2017 01:20:54 +0000 (02:20 +0100)]
Improve Guid.ToString (#10669)

* Improve Guid.ToString

* revert HexToChar

7 years agoMerge pull request #10678 from briansull/contract-fix
Brian Sullivan [Tue, 4 Apr 2017 00:30:36 +0000 (17:30 -0700)]
Merge pull request #10678 from briansull/contract-fix

Remove the SO_TOLERANT contact from CEEInfo::resolveVirtualMethodHelper

7 years agoDebug.Assert FF (#10652)
Dan Moseley [Tue, 4 Apr 2017 00:15:24 +0000 (17:15 -0700)]
Debug.Assert FF (#10652)

7 years agoFix 'this' pointer in struct methods (#10668)
Igor Kulaychuk [Tue, 4 Apr 2017 00:10:40 +0000 (03:10 +0300)]
Fix 'this' pointer in struct methods (#10668)

The 'this' method argument should always be a pointer.

7 years agoRemove unused code under typo define
Bruce Forstall [Mon, 3 Apr 2017 23:59:35 +0000 (16:59 -0700)]
Remove unused code under typo define

The code is under COR_JIT_EE_VER which never existed (it used to
be COR_JIT_EE_VERSION), thus the code has never been used.

7 years agoremove fedora 23 (#10667)
Dan Moseley [Mon, 3 Apr 2017 23:43:43 +0000 (16:43 -0700)]
remove fedora 23 (#10667)

7 years agoMerge pull request #10629 from russellhadley/EHWriteThru-design-doc
Russell C Hadley [Mon, 3 Apr 2017 23:37:00 +0000 (16:37 -0700)]
Merge pull request #10629 from russellhadley/EHWriteThru-design-doc

Add initial design document for EH WriteThru

7 years agoFix InternalsVisibleTo when it references an assembly with some DebuggableAttribute...
Koundinya Veluri [Mon, 3 Apr 2017 23:35:47 +0000 (16:35 -0700)]
Fix InternalsVisibleTo when it references an assembly with some DebuggableAttribute flags (#10664)

Fixes #3541
- Mask out the DebuggableAttribute bits from when comparing assembly spec flags for matching an InternalsVisibleTo reference to an assembly

7 years agoMerge pull request #10671 from wtgodbe/Redist
William Godbe [Mon, 3 Apr 2017 23:26:02 +0000 (16:26 -0700)]
Merge pull request #10671 from wtgodbe/Redist

Publish VC Redist DLLs as part of CoreCLR Package

7 years agoRemove the SO_TOLERANT contact from CEEInfo::resolveVirtualMethodHelper
Brian Sullivan [Mon, 3 Apr 2017 23:01:23 +0000 (16:01 -0700)]
Remove the SO_TOLERANT contact from CEEInfo::resolveVirtualMethodHelper
that contract should only apply to CEEInfo::resolveVirtualMethod which uses the JIT_TO_EE_TRANSITION() transition macros.

7 years agoMerge pull request #10672 from pgavlin/FixExceptionReference
Pat Gavlin [Mon, 3 Apr 2017 22:34:34 +0000 (15:34 -0700)]
Merge pull request #10672 from pgavlin/FixExceptionReference

Fix a reference to System.Exception in a JIT test.

7 years agoAdd Linux host support for arm32/arm64 altjit
Bruce Forstall [Mon, 3 Apr 2017 21:44:27 +0000 (14:44 -0700)]
Add Linux host support for arm32/arm64 altjit

Now, on Linux, the x64 build will build an arm64-targeting
altjit. The x86 build will build an arm32-targeting JIT.
The altjit is named libprotononjit.so/dylib. It can be
used for debugging or for generating asm diffs using jit-diff.

7 years agoPublish VC Redist DLLs as part of CoreCLR Package
wtgodbe [Mon, 3 Apr 2017 20:29:27 +0000 (13:29 -0700)]
Publish VC Redist DLLs as part of CoreCLR Package

7 years agoMerge pull request #10326 from jashook/arm64_test_update_20_march
Jarret Shook [Mon, 3 Apr 2017 20:56:40 +0000 (13:56 -0700)]
Merge pull request #10326 from jashook/arm64_test_update_20_march

Update the arm64 test drop - WIP

7 years agoFix a reference to System.Exception in a JIT test.
Pat Gavlin [Mon, 3 Apr 2017 20:53:04 +0000 (13:53 -0700)]
Fix a reference to System.Exception in a JIT test.

This bad reference was casuing a failure in the x64 pri1 R2R jobs.

7 years agoBasic EventPipe functionality that supports writing sample profile events to JSON...
Brian Robbins [Fri, 24 Mar 2017 16:38:28 +0000 (09:38 -0700)]
Basic EventPipe functionality that supports writing sample profile events to JSON.  SampleProfiler that globally suspends the runtime every 1ms to walk stacks and write them to the EventPipe.

7 years ago[x86/Linux] add the process of handling when entry point is funclet. (#10602)
ragmani [Mon, 3 Apr 2017 19:27:44 +0000 (04:27 +0900)]
[x86/Linux] add the process of handling when entry point is funclet. (#10602)

* [x86/Linux] add the process of handling the entry point when it is funclet in case x86.

* [x86/Linux] enable only for TARGET_X86 && FEATURE_PAL.

Signed-off-by: ragmani <ragmani0216@gmail.com>
7 years agoUpdate the arm64 test drop
jashook [Mon, 20 Mar 2017 21:14:31 +0000 (14:14 -0700)]
Update the arm64 test drop

7 years ago[RyuJIT/ARM32] Localloc implementation in codegen
Alexander Soldatov [Mon, 3 Apr 2017 14:43:30 +0000 (17:43 +0300)]
[RyuJIT/ARM32] Localloc implementation in codegen

Algorithm is almost the same as for other platforms but code
is little bit refactored to improve readability.

Added test to cover almost all possible branches of codegen.
Since arrays allocation of int type is needed multiplication and overflow
checks new tests cover only byte arrays.

7 years ago[RyuJIT/ARM32] GS Cookie check implementation.
Alexander Soldatov [Mon, 3 Apr 2017 12:01:56 +0000 (15:01 +0300)]
[RyuJIT/ARM32] GS Cookie check implementation.

Implementation of GS Cookie check for RyuJIT/ARM32 almost the same as
for ARM64. So this code was moved to codegencommon with.
Also added optimization to use tmp register for emitting helper call.

7 years agoCut down FormatterServices (#10653)
Dan Moseley [Mon, 3 Apr 2017 12:44:48 +0000 (05:44 -0700)]
Cut down FormatterServices (#10653)

7 years agoFix Double.ToString performance on Linux and OSX (#10572)
Tarek Mahmoud Sayed [Sun, 2 Apr 2017 19:18:22 +0000 (12:18 -0700)]
Fix Double.ToString performance on Linux and OSX (#10572)

* Fix Double.ToString performance on Linux and OSX

* some feedback fixes

* Remove the implementation depending on ecvt_r

7 years agoBring back kApplicationException (#10650)
Hugh Bellamy [Sun, 2 Apr 2017 16:12:29 +0000 (23:12 +0700)]
Bring back kApplicationException (#10650)

7 years agoRemove securitystate (#10649)
Dan Moseley [Sun, 2 Apr 2017 10:16:23 +0000 (03:16 -0700)]
Remove securitystate (#10649)

7 years agoMove identical Globalization files to shared partition
Jan Kotas [Sat, 1 Apr 2017 19:25:28 +0000 (12:25 -0700)]
Move identical Globalization files to shared partition

7 years agoMove identical files to shared partition
Jan Kotas [Sat, 1 Apr 2017 18:40:23 +0000 (11:40 -0700)]
Move identical files to shared partition

7 years agoMove identical Interop files to shared partition
Jan Kotas [Sat, 1 Apr 2017 18:26:05 +0000 (11:26 -0700)]
Move identical Interop files to shared partition

7 years ago[Local GC] Move some EE-specific finalize-on-unload logic out of the GC (#10598)
Sean Gillespie [Sat, 1 Apr 2017 21:25:46 +0000 (14:25 -0700)]
[Local GC] Move some EE-specific finalize-on-unload logic out of the GC (#10598)

* Move some EE-specific logic to a callback on GCToEEInterface

* Fix the sample

* Consistent style for pointers

* Code review feedback: Move app domain index check into EE callback and make ShouldFinalizeObjectForUnload always return true (due to CoreCLR not having app domains)

* Code review feedback: Fix a comment and add a TODO for bringing these changes to desktop

7 years ago[Local GC] Remove static fields from GC interface (#10566)
Sean Gillespie [Sat, 1 Apr 2017 21:25:07 +0000 (14:25 -0700)]
[Local GC] Remove static fields from GC interface (#10566)

* Remove max_generation from GC interface

* [Local GC] Clean up the GC interface by removing all static fields
from it:
  1) gcHeapType is replaced by g_heap_type (EE side) and g_gc_heap_type
     (GC side), each of which is set on initialization. g_heap_type is
     read by the DAC to determine what kind of heap is being used.
  2) maxGeneration is not necessary due to the GC DAC changes.

* Rebase against master

* Comments and cleanup

* Use a heap allocation instead of alloca

* Code review feedback: remove a redundant cast and allocate generation count table once, on first use

* Address code review feedback: cache some calls to GetMaxGeneration

7 years agoMerge pull request #10584 from adityamandaleeka/handle_table_local_gc_init
Aditya Mandaleeka [Sat, 1 Apr 2017 19:25:08 +0000 (12:25 -0700)]
Merge pull request #10584 from adityamandaleeka/handle_table_local_gc_init

Change how the VM calls ObjectFromHandle.

7 years agoAdd .gitmirror file
Matt Ellis [Sat, 1 Apr 2017 18:13:03 +0000 (11:13 -0700)]
Add .gitmirror file

7 years agoMerge pull request #10627 from briansull/profile-data
Brian Sullivan [Sat, 1 Apr 2017 17:46:58 +0000 (10:46 -0700)]
Merge pull request #10627 from briansull/profile-data

Added DisableInlining flag to the ProfileData.

7 years agoAdd initial design document for EH WriteThru
Russell C Hadley [Mon, 27 Mar 2017 17:14:25 +0000 (10:14 -0700)]
Add initial design document for EH WriteThru

Document describes an initial approch to enregistering local variables
that live across EH flow.  Today the JIT forces all local vars that are live
across EH flow that kills all registers to live on the stack.  The transformation outlined ensures consistency on the stack across the EH kills but allows the enregistration with in either the normal flow of control or with in any EH handlers.

7 years agoRefactor dotnet download code in init-tools.cmd (#10527)
Luis G [Sat, 1 Apr 2017 09:00:12 +0000 (06:00 -0300)]
Refactor dotnet download code in init-tools.cmd (#10527)

* Refactor dotnet download code in init-tools.cmd
This addresses the improvements proposed in issue #10526.
Includes the init-tools.cmd script refactor and a new script called
dotnet-download.ps1 which includes the extracted code and logic

* Code review feedback changes

* Fix spacing

7 years agoJit: fix a few issues with single def local tracking (#10633)
Andy Ayers [Sat, 1 Apr 2017 07:56:33 +0000 (00:56 -0700)]
Jit: fix a few issues with single def local tracking (#10633)

Fixes for three issues that came up in desktop testing.

1. Don't track class types for locals when in import only mode,
since the jit may be looking at an uninstantiated generic method.
In these cases the jit's use of TYP_REF to represent CORINFO_TYPE_VAR
confuses the tracking code. In import only mode the jit is not going
to use the information, so there is no need to track it at all.

    Import only mode is tied to verification and CoreCLR runs in full
trust mode, so no test was added.

2. Allow `lvaUpdateClass` to be called more than once but assert
that the second and subsequent calls provide the exact same update
as the first call.

    This can happen for single def ref class locals whose definition
block is reimported. Reimportation is triggered by some tolerable
non-ref type mismatches at block joins and so ref type information
should be consistent for each importation attempt.

    Add a couple of IL test cases translated from destkop MC++ tests
that will trigger this kind of reimportation.

3. Bail out of devirtualization (for desktop only) if the base class
has precise initialization semantics, since desktop seems to trigger
class initialization for ref type callvirts (contrary to ECMA355 I.8.9.5).
See #4853 for some discussion. Since this is desktop only behavior
no test was added.

7 years agoMerge pull request #10638 from AndyAyersMS/EmptyTryUpdateFinallyNestLevel
Andy Ayers [Sat, 1 Apr 2017 06:04:48 +0000 (23:04 -0700)]
Merge pull request #10638 from AndyAyersMS/EmptyTryUpdateFinallyNestLevel

Jit: decrement finally nesting level when removing empty trys

7 years agoDelete moved files
Jan Kotas [Fri, 31 Mar 2017 23:20:12 +0000 (16:20 -0700)]
Delete moved files

7 years agoMerge pull request dotnet/corert#3175 from jkotas/nmirror-merge
Michal Strehovský [Fri, 31 Mar 2017 22:08:40 +0000 (15:08 -0700)]
Merge pull request dotnet/corert#3175 from jkotas/nmirror-merge

Merge nmirror to master

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
7 years agoChange how VM calls ObjectFromHandle.
Aditya Mandaleeka [Sat, 1 Apr 2017 00:12:03 +0000 (17:12 -0700)]
Change how VM calls ObjectFromHandle.

7 years agoAdd way to get table for handle and ADIndex for handletable.
Aditya Mandaleeka [Sat, 1 Apr 2017 00:09:46 +0000 (17:09 -0700)]
Add way to get table for handle and ADIndex for handletable.

7 years agoAdd Tier0/1 jit flags
noahfalk [Thu, 30 Mar 2017 07:07:59 +0000 (00:07 -0700)]
Add Tier0/1 jit flags

These flags provides a hook to change the JIT policy in the future and diverge tier0/tier1 compilation from min_opt/speed_opt respectively.

7 years agodelete GetMethod2 (#10626)
Sergey Andreenko [Sat, 1 Apr 2017 01:36:06 +0000 (18:36 -0700)]
delete GetMethod2 (#10626)

* delete GetMethod2

* delete unused code

7 years agoJit: decrement finally nesting level when removing empty trys
Andy Ayers [Sat, 1 Apr 2017 01:13:32 +0000 (18:13 -0700)]
Jit: decrement finally nesting level when removing empty trys

For non-funclet EH models, the GT_END_LFIN statement tracks the
nesting level of the associated finally. When removing a try-finally
with an empty try we need to decrement this level for any try-finallys
nested within the associated finally.

Added a test case with several levels of empty try and nesting.

Closes #10621.