platform/upstream/coreclr.git
7 years agoRyuJIT/ARM32: fix consume order and clone emitInsTernary
Mikhail Skvortcov [Thu, 26 Jan 2017 16:49:05 +0000 (19:49 +0300)]
RyuJIT/ARM32: fix consume order and clone emitInsTernary

7 years agoRyuJIT/ARM32: refactor emitInsMov, update st.lclFld/Var codegen
Mikhail Skvortcov [Mon, 30 Jan 2017 08:47:46 +0000 (11:47 +0300)]
RyuJIT/ARM32: refactor emitInsMov, update st.lclFld/Var codegen

7 years agoRyuJIT/ARM32: fix node info for range check
Mikhail Skvortcov [Mon, 30 Jan 2017 08:08:06 +0000 (11:08 +0300)]
RyuJIT/ARM32: fix node info for range check

7 years agoRyuJIT/ARM32: enable call lowering
Mikhail Skvortcov [Mon, 30 Jan 2017 08:03:46 +0000 (11:03 +0300)]
RyuJIT/ARM32: enable call lowering

7 years agoRyuJIT/ARM32: enable switch and jump table codegen
Mikhail Skvortcov [Mon, 30 Jan 2017 08:00:34 +0000 (11:00 +0300)]
RyuJIT/ARM32: enable switch and jump table codegen

7 years agoRyuJIT/ARM32: enable EH code generation
Mikhail Skvortcov [Mon, 30 Jan 2017 07:56:32 +0000 (10:56 +0300)]
RyuJIT/ARM32: enable EH code generation

7 years agoMerge pull request #9416 from wtgodbe/Suse13
Gaurav Khanna [Thu, 9 Feb 2017 07:35:40 +0000 (23:35 -0800)]
Merge pull request #9416 from wtgodbe/Suse13

Remove OpenSuse13 from CI

7 years agoClean up GetAddrOfSecurityObject (#9423)
Jonghyun Park [Thu, 9 Feb 2017 06:39:13 +0000 (15:39 +0900)]
Clean up GetAddrOfSecurityObject (#9423)

7 years agoClean up EECodeManager::GetInstance (#9424)
Jonghyun Park [Thu, 9 Feb 2017 06:38:12 +0000 (15:38 +0900)]
Clean up EECodeManager::GetInstance (#9424)

* Clean up EECodeManager::GetInstance

* Use !CROSSGEN_COMPILE instead of CROSSGEN_COMPILE

7 years agoClean up EECodeManager::GetGSCookieAddr (#9425)
Jonghyun Park [Thu, 9 Feb 2017 06:37:46 +0000 (15:37 +0900)]
Clean up EECodeManager::GetGSCookieAddr (#9425)

7 years agoClean up EECodeManager::GetReturnKind (#9426)
Jonghyun Park [Thu, 9 Feb 2017 06:37:27 +0000 (15:37 +0900)]
Clean up EECodeManager::GetReturnKind (#9426)

7 years agoClean up EECodeManager::GetFunctionSize (#9427)
Jonghyun Park [Thu, 9 Feb 2017 06:37:10 +0000 (15:37 +0900)]
Clean up EECodeManager::GetFunctionSize (#9427)

7 years agoClean up EECodeManager::GetParamContextType (#9428)
Jonghyun Park [Thu, 9 Feb 2017 06:36:55 +0000 (15:36 +0900)]
Clean up EECodeManager::GetParamContextType (#9428)

7 years agoClean up EECodeManager::GetExactGenericsToken (#9429)
Jonghyun Park [Thu, 9 Feb 2017 06:36:30 +0000 (15:36 +0900)]
Clean up EECodeManager::GetExactGenericsToken (#9429)

7 years agoClean up EECodeManager::GetParamTypeArg (#9430)
Jonghyun Park [Thu, 9 Feb 2017 06:35:09 +0000 (15:35 +0900)]
Clean up EECodeManager::GetParamTypeArg (#9430)

7 years ago[x86/Linux] Revise TAStackCrawlCallBackWorker (#9432)
Jonghyun Park [Thu, 9 Feb 2017 06:34:48 +0000 (15:34 +0900)]
[x86/Linux] Revise TAStackCrawlCallBackWorker (#9432)

7 years agoMerge pull request #9431 from BruceForstall/Fix9374
Bruce Forstall [Thu, 9 Feb 2017 04:17:23 +0000 (20:17 -0800)]
Merge pull request #9431 from BruceForstall/Fix9374

Generate better code for x86 SIMD get[i] intrinsic

7 years agoMerge pull request #9191 from sandreenko/CORERT-fat-call-transformation
Sergey Andreenko [Thu, 9 Feb 2017 02:33:23 +0000 (18:33 -0800)]
Merge pull request #9191 from sandreenko/CORERT-fat-call-transformation

CoreRT fat call transformation

7 years ago[x86/Linux] Fix Calling Convertion Mismatch inside ilasm/ildasm (#9410)
Jonghyun Park [Thu, 9 Feb 2017 01:27:57 +0000 (10:27 +0900)]
[x86/Linux] Fix Calling Convertion Mismatch inside ilasm/ildasm (#9410)

7 years agoDelete unnecessary domain sanity check (#9420)
Jan Kotas [Thu, 9 Feb 2017 01:26:37 +0000 (17:26 -0800)]
Delete unnecessary domain sanity check (#9420)

7 years agoGenerate better code for x86 SIMD get[i] intrinsic
Bruce Forstall [Thu, 9 Feb 2017 00:54:31 +0000 (16:54 -0800)]
Generate better code for x86 SIMD get[i] intrinsic

For get[i] intrinsic, with LONG base type and constant index, we can
compute the decomposed indices statically.

Fixes #9374

7 years agoMerge pull request #9392 from BruceForstall/FixGtGetOp2
Bruce Forstall [Thu, 9 Feb 2017 00:59:05 +0000 (16:59 -0800)]
Merge pull request #9392 from BruceForstall/FixGtGetOp2

Add gtGetPossibleOp2()

7 years ago[ARM32/Linux] Fix definition and CMake for cross-architecture build (#9262)
Hyeongseok Oh [Wed, 8 Feb 2017 23:49:23 +0000 (08:49 +0900)]
[ARM32/Linux] Fix definition and CMake for cross-architecture build (#9262)

- Fix ABI flag based on target
- Exclude corefx for cross-architecture component

7 years agoSpan Slice method AggressiveInlining (#9404)
Ahson Ahmed Khan [Wed, 8 Feb 2017 23:48:43 +0000 (15:48 -0800)]
Span Slice method AggressiveInlining (#9404)

7 years agoCoreRT calli transformation
Sergey Andreenko [Sat, 28 Jan 2017 23:28:05 +0000 (15:28 -0800)]
CoreRT calli transformation

Transform managed calli when compiling for CoreRT.

7 years agoAdd gtGetOp2IfPresent()
Bruce Forstall [Tue, 7 Feb 2017 04:15:07 +0000 (20:15 -0800)]
Add gtGetOp2IfPresent()

It was noticed that many uses of gtGetOp2() fully expect op2 to
exist and be non-nullptr, and the use of gtGetOp2() was simply
for style/readability purposes. However, it has a cost, as it
checks whether the tree is binary first, and returns nullptr if
not. For most cases, this is unecessary and expensive.

Introduce a new gtGetOp2IfPresent() function that captures the
previous behavior: checking if the tree node is binary before
returning op2, or returning nullptr otherwise. gtGetOp2() is
changed to simply return gtOp2 directly, without any checking
in non-DEBUG builds. It can be used if you know the op2 exists.

Most uses of gtGetOp2() were left alone (and hence get the new
behavior). The ones that need the old behavior were renamed
gtGetOp2IfPresent().

Mostly newer code is affected, as older code would generally
access gtOp2 directly, whereas newer code started using gtGetOp2()
for style and symmetry, especially after gtGetOp1() was introduced.

7 years agoMerge pull request #9382 from BruceForstall/CallFinallyCleanup
Bruce Forstall [Wed, 8 Feb 2017 23:10:53 +0000 (15:10 -0800)]
Merge pull request #9382 from BruceForstall/CallFinallyCleanup

Remove unnecessary parameter to genCallFinally()

7 years agoMerge pull request #9386 from BruceForstall/FixSwitchTable
Bruce Forstall [Wed, 8 Feb 2017 23:10:22 +0000 (15:10 -0800)]
Merge pull request #9386 from BruceForstall/FixSwitchTable

Fix compare/branch switch mode expansion

7 years agoFilter RefEmit modules in SendEventsForNgenMethods (#9418)
Jan Kotas [Wed, 8 Feb 2017 22:39:46 +0000 (14:39 -0800)]
Filter RefEmit modules in SendEventsForNgenMethods (#9418)

* Filter RefEmit modules in SendEventsForNgenMethods

Fixes #6427

7 years agoMerge pull request #9417 from wtgodbe/publishNativeBins
William Godbe [Wed, 8 Feb 2017 21:35:49 +0000 (13:35 -0800)]
Merge pull request #9417 from wtgodbe/publishNativeBins

Publish test native bins from correct directory

7 years agoPublish test native bins from correct directory
wtgodbe [Wed, 8 Feb 2017 20:30:03 +0000 (12:30 -0800)]
Publish test native bins from correct directory

7 years agoRemove OpenSuse13 from CI
wtgodbe [Wed, 8 Feb 2017 18:50:37 +0000 (10:50 -0800)]
Remove OpenSuse13 from CI

7 years agoMerge pull request #9169 from JosephTremoulet/UntrackedMem
Joseph Tremoulet [Wed, 8 Feb 2017 16:09:05 +0000 (11:09 -0500)]
Merge pull request #9169 from JosephTremoulet/UntrackedMem

Value-number byref loads

7 years agoValue-number `ByrefExposed` memory and loads
Joseph Tremoulet [Fri, 13 Jan 2017 19:55:06 +0000 (14:55 -0500)]
Value-number `ByrefExposed` memory and loads

Teach value numbering to keep track of the current value number for
`ByrefExposed` memory, updating it appropriately at relevant stores.
Introduce a new VN operator `ByrefExposedLoad`, used for loads of
address-exposed locals and loads by indirs that don't have more specific
value numbers, which is a function of the current `ByrefExposed` memory VN
and the pointer VN.  This allows loop hoisting and CSE to recognize
redundant loads via byrefs when there are no intervening stores.

Fixes #7903.

7 years agoDefine `MemoryKind::ByrefExposed`
Joseph Tremoulet [Wed, 11 Jan 2017 19:58:57 +0000 (14:58 -0500)]
Define `MemoryKind::ByrefExposed`

Add a new `MemoryKind` to represent "any memory that byrefs may
reference", called `ByrefExposed`.  All definition points of `GcHeap`
become also definition points of `ByrefExposed`, and additionally, so do
definitions of address-exposed locals.

Because it is a common case (currently happening in 90% of methods in
System.Private.CoreLib) that a method has no definitions of
address-exposed locals, have liveness detect this condition and set the
new `byrefStatesMatchGcHeapStates` flag accordingly; when the states
match, the same `MemoryPhi`s, defnums, and `PerSsaData` are then shared
between the two memory kinds, to avoid excess allocations/processing.

This change defines `ByrefExposed` memory and its def/use points, and
builds SSA for it, but no optimizations make use of it, so this is a
no-diff change.

7 years agoIntroduce `MemoryKind` abstraction
Joseph Tremoulet [Thu, 29 Dec 2016 22:02:18 +0000 (17:02 -0500)]
Introduce `MemoryKind` abstraction

Re-cast the notion of "heap" (in liveness, SSA, and value-numbering) as
one of potentially many `MemoryKind`s, called `GcHeap`.  Update names,
comments, data structures, and signatures as appropriate to parameterize
relevant data/methods over `MemoryKind`.  This change is a no-diff
refactoring, and currently `GcHeap` is the only `MemoryKind`.  Generally,
codepaths which will generically need to process all `MemoryKinds`s
(initializing, dumping, dataflow propagation) now iterate over all
`MemoryKinds`, and codepaths which are sensitive to the semantics of the
specific `MemoryKind` (def/use identification in liveness and value
numbering) are changed to specifically operate on `MemoryKind::GcHeap`.

One notable exception is that `lvMemoryPerSsaData` and `CountForMemoryDef`
are *not* parameterized over `MemoryKind`; there's a single "space" of SSA
defnums for memory defs (though the same tree can incur different defs for
different memory kinds [in which case their defnums will differ]), to
facilitate subsequently sharing SSA nodes across memory kinds when
appropriate.

7 years agoRefactor fgCurHeapVN and HeapSsaMap updates
Joseph Tremoulet [Fri, 13 Jan 2017 17:29:37 +0000 (12:29 -0500)]
Refactor fgCurHeapVN and HeapSsaMap updates

Consolodate the code for updating the current heap VN and HeapSsaMap
entries into new helper method `recordHeapStore`, to make it easier to
evolve that code.  Change `fgValueNumberArrIndexAssign` to return the new
heap VN to allow callers to pass it down into `recordHeapStore`
accordingly.

This is just a refactoring; no change to compiler behavior.

7 years agoMerge pull request #9329 from JosephTremoulet/LateArgVN
Joseph Tremoulet [Wed, 8 Feb 2017 14:31:52 +0000 (09:31 -0500)]
Merge pull request #9329 from JosephTremoulet/LateArgVN

Get call arg value numbers from late args

7 years agoClean up EnumGcRefs (#9412)
Jonghyun Park [Wed, 8 Feb 2017 13:38:15 +0000 (22:38 +0900)]
Clean up EnumGcRefs (#9412)

7 years agoMerge pull request #9408 from jashook/disable_checked_arm64
Russ Keldorph [Wed, 8 Feb 2017 12:49:42 +0000 (04:49 -0800)]
Merge pull request #9408 from jashook/disable_checked_arm64

Disable checked arm64 jobs until jobs are stable

7 years ago[x86/Linux] Use SP as StackMarker (#9389)
Jonghyun Park [Wed, 8 Feb 2017 09:29:23 +0000 (18:29 +0900)]
[x86/Linux] Use SP as StackMarker (#9389)

7 years agoDisable checked arm64 jobs until jobs are stable
jashook [Wed, 8 Feb 2017 05:36:17 +0000 (21:36 -0800)]
Disable checked arm64 jobs until jobs are stable

Jobs currently are expected to run red until a lstFile update goes in. Therefore,
disable the job as a PR trigger until it is clean.

7 years agoAdd ComVisible(true) back to several special types (#9403)
Jan Kotas [Wed, 8 Feb 2017 03:30:40 +0000 (19:30 -0800)]
Add ComVisible(true) back to several special types (#9403)

It is required by WinRT/COM interop. Fixes #9401.

7 years agoRemove more CAS (#9390)
Dan Moseley [Tue, 7 Feb 2017 22:10:09 +0000 (14:10 -0800)]
Remove more CAS (#9390)

* Remove PermissionSet

* Remove HostProtectionAttribute

* Remove PermissionState

* Remove S.Security.Permissions

* Remove IPrincipal

* Fix native side

* Remove model.xml again

7 years agoFix field type for ByReference<T> and TypedReference (#9284)
Koundinya Veluri [Tue, 7 Feb 2017 20:58:51 +0000 (12:58 -0800)]
Fix field type for ByReference<T> and TypedReference (#9284)

Fix field type for `ByReference<T>` and `TypedReference`

Fixes #7894

7 years agoAdd scripts & docs which support creating an Android toolchain on Linux (#9175)
Frederik Carlier [Tue, 7 Feb 2017 18:19:31 +0000 (19:19 +0100)]
Add scripts & docs which support creating an Android toolchain on Linux (#9175)

* Add scripts & docs which support creating an Android toolchain on Linux

7 years agoMerge pull request #9385 from jashook/lower_block_store_arm64
Russ Keldorph [Tue, 7 Feb 2017 18:14:24 +0000 (10:14 -0800)]
Merge pull request #9385 from jashook/lower_block_store_arm64

Call LowerBlockStore TreeNodeInfoInitBlockStore

7 years agoDesign portable tail calls with helpers (#8596)
Jan Vorlicek [Tue, 7 Feb 2017 15:13:37 +0000 (16:13 +0100)]
Design portable tail calls with helpers (#8596)

* Design portable tail calls with helpers

Currently we don't handle non-trivial cases of tail calls on Unix due to the non-portable and
complex way it is implemented. This pull request describes a design of a portable way of
handling these cases so that it can be used uniformly over all our jitted and AOT (ahead of time)
platforms.

7 years agoMerge pull request #9383 from dotnet-bot/master-UpdateDependencies
Stephen Toub [Tue, 7 Feb 2017 14:16:27 +0000 (09:16 -0500)]
Merge pull request #9383 from dotnet-bot/master-UpdateDependencies

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

7 years ago[x86/Linux] Clean up EHContext-related code (#9395)
Jonghyun Park [Tue, 7 Feb 2017 14:08:15 +0000 (23:08 +0900)]
[x86/Linux] Clean up EHContext-related code (#9395)

7 years agoRemove bclrewriter (#9351)
Dan Moseley [Tue, 7 Feb 2017 14:00:55 +0000 (06:00 -0800)]
Remove bclrewriter (#9351)

* Remove bclrewriter

* Dump crossgen error to Jenkins log

7 years agoClean up methods for USE_GC_INFO_DECODER (#9394)
Jonghyun Park [Tue, 7 Feb 2017 13:47:14 +0000 (22:47 +0900)]
Clean up methods for USE_GC_INFO_DECODER (#9394)

7 years agoMove GC/Coverage/delete_next_card_table to the Long GC playlist (#9376)
Sean Gillespie [Tue, 7 Feb 2017 04:11:13 +0000 (20:11 -0800)]
Move GC/Coverage/delete_next_card_table to the Long GC playlist (#9376)

7 years agoFix a typo in TailCallFrame::UpdateRegDisplay log (#9381)
Jonghyun Park [Tue, 7 Feb 2017 04:09:59 +0000 (13:09 +0900)]
Fix a typo in TailCallFrame::UpdateRegDisplay log (#9381)

7 years agoMerge pull request #8849 from seanshpark/fixstackalign
Bruce Forstall [Tue, 7 Feb 2017 04:07:12 +0000 (20:07 -0800)]
Merge pull request #8849 from seanshpark/fixstackalign

[x86/Linux] Stack align 16 bytes for JIT code

7 years ago[ARM32/Linux] Fix calling convention - stdcall in crossgen (#9364)
Hyeongseok Oh [Tue, 7 Feb 2017 04:06:36 +0000 (13:06 +0900)]
[ARM32/Linux] Fix calling convention - stdcall in crossgen (#9364)

* [ARM32/Linux] Fix calling convention - sdcall in crossgen

- Fix calling convention:
not use stdcall for ENCODEMODULE_CALLBACK & DEFINETOKEN_CALLBACK in linux/x86
x86-host/arm32-target crossgen & x86 crossgen
build error in clang 3.9: not allowed calling convention casting

7 years agoUpdate CoreClr, CoreFx to beta-25007-01, beta-25007-01, respectively
dotnet-bot [Tue, 7 Feb 2017 03:05:54 +0000 (03:05 +0000)]
Update CoreClr, CoreFx to beta-25007-01, beta-25007-01, respectively

7 years agoFix compare/branch switch mode expansion
Bruce Forstall [Tue, 7 Feb 2017 02:19:42 +0000 (18:19 -0800)]
Fix compare/branch switch mode expansion

It appears we never hit this case due to a very low
minSwitchTabJumpCnt number that almost always forces
us to use jump tables. This was found in the RyuJIT/ARM32
bring-up, because ARM uses a higher number.

Also, add a stress mode to force using the compare/branch expansion
mode more frequently, during stress.

7 years agoCall LowerBlockStore TreeNodeInfoInitBlockStore
jashook [Tue, 7 Feb 2017 02:01:24 +0000 (18:01 -0800)]
Call LowerBlockStore TreeNodeInfoInitBlockStore

For arm64 call LowerBlockStore before TreeNodeInfoInitBlockStore
as done on other architectures.

7 years agoRemove unnecessary parameter to genCallFinally()
Bruce Forstall [Tue, 7 Feb 2017 01:19:24 +0000 (17:19 -0800)]
Remove unnecessary parameter to genCallFinally()

7 years agoMerge pull request #9377 from RussKeldorph/defaultprivate
Russ Keldorph [Tue, 7 Feb 2017 00:20:34 +0000 (16:20 -0800)]
Merge pull request #9377 from RussKeldorph/defaultprivate

Default-trigger ARM64 testing on certain users' PRs

7 years ago[x86/Linux] Stack align 16 bytes for JIT code
SaeHie Park [Mon, 9 Jan 2017 01:39:54 +0000 (10:39 +0900)]
[x86/Linux] Stack align 16 bytes for JIT code

Change JIT code to align stack in 16 byte used in modern compiler

7 years agoDefault-trigger ARM64 testing on certain users PRs
Russ Keldorph [Mon, 6 Feb 2017 22:19:21 +0000 (14:19 -0800)]
Default-trigger ARM64 testing on certain users PRs

Re-using the logic that allows certain users to request ARM64 testing to
default-trigger ARM64 testing on their PRs.  Ideally, we'd be able to
separate the list of people who have permission to trigger testing from
those that get testing by default, but that is harder than it seems.

7 years agoMerge pull request #9372 from dotnet-bot/master-UpdateDependencies
Stephen Toub [Mon, 6 Feb 2017 21:32:43 +0000 (16:32 -0500)]
Merge pull request #9372 from dotnet-bot/master-UpdateDependencies

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

7 years agoMerge pull request #9325 from wtgodbe/bashScripts
William Godbe [Mon, 6 Feb 2017 20:30:06 +0000 (12:30 -0800)]
Merge pull request #9325 from wtgodbe/bashScripts

Add #!/bin/bash to beginning of shell test scripts

7 years agoMerge pull request #9319 from DrewScoggins/X86PerfRuns
Drew Scoggins [Mon, 6 Feb 2017 19:29:03 +0000 (11:29 -0800)]
Merge pull request #9319 from DrewScoggins/X86PerfRuns

Add x86 perf runs to CoreCLR

7 years agoMerge pull request #8644 from BruceForstall/SimdLongDecomp
Bruce Forstall [Mon, 6 Feb 2017 19:26:34 +0000 (11:26 -0800)]
Merge pull request #8644 from BruceForstall/SimdLongDecomp

Enable SIMD for RyuJIT/x86

7 years agoMerge pull request #9371 from jkotas/attributes
Jan Kotas [Mon, 6 Feb 2017 18:56:03 +0000 (10:56 -0800)]
Merge pull request #9371 from jkotas/attributes

Delete COM and security transparency attributes

7 years agoChange /bin/bash to usr/bin/env bash
William Godbe [Mon, 6 Feb 2017 18:40:04 +0000 (10:40 -0800)]
Change /bin/bash to usr/bin/env bash

7 years agoMerge pull request #8827 from hseok-oh/nuget_armel
Gaurav Khanna [Mon, 6 Feb 2017 18:29:41 +0000 (10:29 -0800)]
Merge pull request #8827 from hseok-oh/nuget_armel

Generate nuget package for armel (Tizen, Debian)

7 years agoUpdate CoreClr, CoreFx to beta-25006-03, beta-25006-01, respectively
dotnet-bot [Mon, 6 Feb 2017 17:51:33 +0000 (17:51 +0000)]
Update CoreClr, CoreFx to beta-25006-03, beta-25006-01, respectively

7 years agoClean up FillRegDisplay (#9360)
Jonghyun Park [Mon, 6 Feb 2017 16:25:37 +0000 (01:25 +0900)]
Clean up FillRegDisplay (#9360)

7 years agoDelete remaining security transparency annotations
Jan Kotas [Mon, 6 Feb 2017 15:28:18 +0000 (07:28 -0800)]
Delete remaining security transparency annotations

7 years agoDelete ClassInterface attributes
Jan Kotas [Mon, 6 Feb 2017 15:32:51 +0000 (07:32 -0800)]
Delete ClassInterface attributes

7 years agoDelete ComVisible attributes
Jan Kotas [Mon, 6 Feb 2017 15:20:17 +0000 (07:20 -0800)]
Delete ComVisible attributes

7 years agoAndroid - Fix duplicate definitions of INT_MIN and PAGE_SIZE in unit tests (#9172)
Frederik Carlier [Mon, 6 Feb 2017 15:25:36 +0000 (16:25 +0100)]
Android - Fix duplicate definitions of INT_MIN and PAGE_SIZE in unit tests (#9172)

* Don't refdefine PAGE_SIZE on Android

* Don't re-declare INT_MIN on Android

* Fixup

7 years agoMerge pull request #9368 from stephentoub/cq_fixes
Stephen Toub [Mon, 6 Feb 2017 14:58:34 +0000 (09:58 -0500)]
Merge pull request #9368 from stephentoub/cq_fixes

Two fixes to ConcurrentQueue

7 years agoCAS Security cleanup (#9355)
Jan Kotas [Mon, 6 Feb 2017 14:53:42 +0000 (06:53 -0800)]
CAS Security cleanup (#9355)

7 years agoMerge pull request #9367 from dotnet-bot/master-UpdateDependencies
Stephen Toub [Mon, 6 Feb 2017 12:35:11 +0000 (07:35 -0500)]
Merge pull request #9367 from dotnet-bot/master-UpdateDependencies

Update CoreClr to beta-25006-02 (master)

7 years agoTwo fixes to ConcurrentQueue
Stephen Toub [Mon, 6 Feb 2017 12:34:06 +0000 (07:34 -0500)]
Two fixes to ConcurrentQueue

- Changed comparisons to use subtraction to avoid overflow issues on sequence numbers.
- Added an exception message where a TODO was left in the code

7 years agoUpdate CoreClr to beta-25006-02
dotnet-bot [Mon, 6 Feb 2017 10:09:15 +0000 (10:09 +0000)]
Update CoreClr to beta-25006-02

7 years agoEnable SIMD for RyuJIT/x86
Bruce Forstall [Thu, 15 Dec 2016 02:03:20 +0000 (18:03 -0800)]
Enable SIMD for RyuJIT/x86

This change implements support for Vector<long>, handling
SIMDIntrinsicInit, which takes a LONG, and decomposition of
SIMDIntrinsicGetItem, which produces a LONG.

It also enables SIMD, including AVX, by default for RyuJIT/x86.

7 years agoDelete dead code from ExecutionContext (#9359)
Stephen Toub [Mon, 6 Feb 2017 04:42:49 +0000 (23:42 -0500)]
Delete dead code from ExecutionContext (#9359)

7 years agoMerge pull request #9358 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Mon, 6 Feb 2017 04:14:43 +0000 (20:14 -0800)]
Merge pull request #9358 from dotnet-bot/master-UpdateDependencies

Update CoreClr to beta-25006-01 (master)

7 years agoMerge branch 'master' into nuget_armel
Hyeongseok Oh [Mon, 6 Feb 2017 03:22:12 +0000 (12:22 +0900)]
Merge branch 'master' into nuget_armel

7 years ago[x86/Linux] Add Assertion on pvControlPc (#9356)
Jonghyun Park [Mon, 6 Feb 2017 02:15:23 +0000 (11:15 +0900)]
[x86/Linux] Add Assertion on pvControlPc (#9356)

7 years agoUpdate CoreClr to beta-25006-01
dotnet-bot [Mon, 6 Feb 2017 02:00:17 +0000 (02:00 +0000)]
Update CoreClr to beta-25006-01

7 years agoUpdate CoreClr, CoreFx to beta-25005-03, beta-25004-01, respectively (#9350)
dotnet bot [Sun, 5 Feb 2017 20:05:59 +0000 (12:05 -0800)]
Update CoreClr, CoreFx to beta-25005-03, beta-25004-01, respectively (#9350)

7 years agoPort 121d095ed0b0076fb1c7ff59e6446fd19d506b32 from Windows to Linux (#9346)
Frederik Carlier [Sun, 5 Feb 2017 19:54:37 +0000 (20:54 +0100)]
Port 121d095ed0b0076fb1c7ff59e6446fd19d506b32 from Windows to Linux (#9346)

7 years agoPort #5821 to Linux (#9347)
Frederik Carlier [Sun, 5 Feb 2017 19:50:28 +0000 (20:50 +0100)]
Port #5821 to Linux (#9347)

7 years agoPort #5339 to Linux (#9348)
Frederik Carlier [Sun, 5 Feb 2017 19:49:49 +0000 (20:49 +0100)]
Port #5339 to Linux (#9348)

7 years agoMerge pull request #9342 from stephentoub/tasks_inlining
Stephen Toub [Sun, 5 Feb 2017 17:18:09 +0000 (12:18 -0500)]
Merge pull request #9342 from stephentoub/tasks_inlining

Remove NoInlining/StackCrawlMarks from Tasks

7 years agoAddress PR feedback and other cleanup
Stephen Toub [Sun, 5 Feb 2017 14:27:53 +0000 (09:27 -0500)]
Address PR feedback and other cleanup

Addressed PR comment about removing ExecutionContext.Capture(ref StackCrawlMark, ...), which led me to remove NoInlining/StackCrawlMarks from some other places in Timer, Thread, ThreadPool, and Overlapped.

In doing so, I found several other unnecessary members on ExecutionContext that could be removed with minor tweaks elsewhere in the source, e.g.
- Dispose is a nop, so we can remove explicit try/finally's to clean it up
- ExecutionContext.Run(..., bool) just ignores the bool arg, so it can be removed and all call sites redirected (but I've left it in EC, as it appears it's used via internals visible from a library in corefx)
- FastCapture() just calls Capture, so the call sites can be changed (but I've left it in EC for a similar reason)
- PreAllocatedDefault can be removed in favor of Default; etc.
- ExecutionContext.Capture itself checks whether flow is suppressed; doing a check before it adds a TLS lookup and in doing so optimizes for an uncommon case in exchange for making the common case more expensive.  I've removed those checks.

And in the process, I also noticed that several lazily initialized delegates that no longer need to be, and cleaned those up.  These were lazy due to needing to be for security checks that aren't relevant in coreclr.

7 years agoRemove NoInlining/StackCrawlMarks from Tasks
Stephen Toub [Sat, 4 Feb 2017 19:10:34 +0000 (14:10 -0500)]
Remove NoInlining/StackCrawlMarks from Tasks

These crawl marks in Tasks aren't relevant in coreclr (they're passed down to ExecutionContext, which in coreclr just ignores them), yet they required NoInlining, which does impact coreclr.  Removing them all from tasks.

7 years agoMerge pull request #9343 from stephentoub/tasks_selfreplicating
Stephen Toub [Sun, 5 Feb 2017 14:46:32 +0000 (09:46 -0500)]
Merge pull request #9343 from stephentoub/tasks_selfreplicating

Remove internal self-replicating support from Tasks

7 years agoRemove internal self-replicating support from Tasks
Stephen Toub [Sat, 4 Feb 2017 21:35:14 +0000 (16:35 -0500)]
Remove internal self-replicating support from Tasks

In the initial TPL prototype, Tasks had a feature that allowed them to "replicate", meaning to schedule a copy of themselves.  Prior to shipping the initial version, this feature was made internal, as it was deemed unnecessary, but by then the Parallel loops constructs had already been built on top of them.  Now that Parallel no longer depends on this feature (and isn't in CoreLib), we can entirely rip it out.

7 years agoRename internal CoreLib Console to LowLevelConsole (#9341)
Jan Kotas [Sun, 5 Feb 2017 11:56:42 +0000 (03:56 -0800)]
Rename internal CoreLib Console to LowLevelConsole (#9341)

7 years agoMerge pull request #9338 from jkotas/against-packages
Jan Kotas [Sun, 5 Feb 2017 08:55:10 +0000 (00:55 -0800)]
Merge pull request #9338 from jkotas/against-packages

Add mscorlib.dll back to Microsoft.TargetingPack.Private.CoreCLR

7 years agoUse StringBuilderCache for Enum.InternalFlagsFormat (#9340)
Ben Adams [Sun, 5 Feb 2017 08:08:56 +0000 (08:08 +0000)]
Use StringBuilderCache for Enum.InternalFlagsFormat (#9340)

7 years agoRemove stripped code (#9269)
Dan Moseley [Sun, 5 Feb 2017 06:36:42 +0000 (22:36 -0800)]
Remove stripped code (#9269)

Delete essentially all the code that the BCL rewriter is removing.
Added back some code it shouldn't have been removing, eg., serialization code, debugger visualizers, and some changing of 'protected' to 'protected internal'