platform/upstream/coreclr.git
7 years agoFix JIT32_GCENCODER-related build errors
Jonghyun Park [Mon, 9 Jan 2017 08:51:00 +0000 (17:51 +0900)]
Fix JIT32_GCENCODER-related build errors

7 years agoRemove lazy initialization of Task.CompletedTask (#8846)
Stephen Toub [Sun, 8 Jan 2017 18:25:17 +0000 (13:25 -0500)]
Remove lazy initialization of Task.CompletedTask (#8846)

Remove lazy initialization of Task.CompletedTask

7 years ago[Local GC] Move Software Write Watch's write barrier updates to GCToEEInterface:...
Sean Gillespie [Sat, 7 Jan 2017 00:21:11 +0000 (16:21 -0800)]
[Local GC] Move Software Write Watch's write barrier updates to GCToEEInterface::StompWriteBarrier (#8605)

* Move Software Write Watch's write barrier updates to use the new
GCToEEInterface::StompWriteBarrier to stomp the EE's write barrier.

* Address code review feedback, move SetCardsAfterBulkCopy to EE side of the interface

7 years agoMerge pull request #8835 from pgavlin/RemoveAsgdLclVar
Pat Gavlin [Sat, 7 Jan 2017 00:07:11 +0000 (16:07 -0800)]
Merge pull request #8835 from pgavlin/RemoveAsgdLclVar

Remove the `asgdLclVar` analysis from liveness.

7 years agoMerge pull request #8808 from rahku/cleanup
Rahul Kumar [Sat, 7 Jan 2017 00:04:48 +0000 (16:04 -0800)]
Merge pull request #8808 from rahku/cleanup

Hide types implemented in corefx

7 years agoUpdate CLI to 1.0.0-preview2-1-003182, BuildTools to 1.0.27-prerelease-01205-03 ...
Davis Goodin [Fri, 6 Jan 2017 23:00:32 +0000 (17:00 -0600)]
Update CLI to 1.0.0-preview2-1-003182, BuildTools to 1.0.27-prerelease-01205-03 (#8829)

* Update CLI to 1.0.0-preview2-1-003182, BuildTools to 1.0.27-prerelease-01205-03

* Add BuildVersion.targets and required properties to test directory's dir.props

7 years agoSimplify lclNum fetching and a few assertions.
Pat Gavlin [Fri, 6 Jan 2017 22:12:35 +0000 (14:12 -0800)]
Simplify lclNum fetching and a few assertions.

7 years agoHide types implemented in corefx
Rahul Kumar [Wed, 30 Nov 2016 20:08:47 +0000 (12:08 -0800)]
Hide types implemented in corefx

7 years agoMerge pull request #8832 from RussKeldorph/corefxtests
Russ Keldorph [Fri, 6 Jan 2017 21:42:09 +0000 (13:42 -0800)]
Merge pull request #8832 from RussKeldorph/corefxtests

Fix archival and test result steps for corefx tests

7 years agoSwap wget and curl to fix init-tools capability check (#8831)
Davis Goodin [Fri, 6 Jan 2017 20:16:18 +0000 (14:16 -0600)]
Swap wget and curl to fix init-tools capability check (#8831)

7 years agoRemove the `asgdLclVar` analysis from liveness.
Pat Gavlin [Fri, 6 Jan 2017 19:11:19 +0000 (11:11 -0800)]
Remove the `asgdLclVar` analysis from liveness.

This analysis is not necessary for correctness and does not appear to
have any impact on the generated code: in particualr, internal assembly
diffs show no changes with this analysis disabled.

For example, consider the following statement:

    `(asg (lclVar V0) (add (lclVar V0) (icon 4)))`

Under the `asgdLclVar` analysis, the visit of the lclVar node that is an
operand to the add would mark the lclVar node that is the target of the
assignment with `GTF_VAR_USEDEF` and exit without adding V0 to the
current set of used lclVars. Instead, the visit of the lclVar node that
is the target of the assignment would add V0 to both the set of used
lclVar nodes and the set of defined lclVar nodes.

With this analysis disabled, the visit of the lclVar node that is an
operand to the add will add V0 to the set of used lclVar nodes and the
visit of the lclVar node that is the target of the assignment will add
V0 to the set of defined lclVar nodes. In both cases, the result is the
same.

7 years agoMerge pull request #8825 from adityamandaleeka/fix_jit_dasm
Aditya Mandaleeka [Fri, 6 Jan 2017 19:26:29 +0000 (11:26 -0800)]
Merge pull request #8825 from adityamandaleeka/fix_jit_dasm

Fix check for JIT dasm

7 years agoDelete unused InteropServices types (#8765)
James Ko [Fri, 6 Jan 2017 19:21:42 +0000 (14:21 -0500)]
Delete unused InteropServices types (#8765)

7 years agoFix archival and test result steps for corefx tests
Russ Keldorph [Fri, 6 Jan 2017 18:59:40 +0000 (10:59 -0800)]
Fix archival and test result steps for corefx tests

These archival and testResult groovy calls were using absolute paths, which is
apparently incorrect.  Change then to use relative paths and make things
consistent between Windodws and Ubuntu runs.

7 years agoUpdate CoreClr, CoreFx to beta-24906-01, beta-24906-02, respectively (#8826)
dotnet bot [Fri, 6 Jan 2017 18:56:32 +0000 (10:56 -0800)]
Update CoreClr, CoreFx to beta-24906-01, beta-24906-02, respectively (#8826)

7 years agoUse POSIX "command" instead of non-standard "which" (#8823)
Jürgen Hötzel [Fri, 6 Jan 2017 00:15:49 +0000 (01:15 +0100)]
Use POSIX "command" instead of non-standard "which" (#8823)

GNU which might not be installed on a minimal GNU/Linux installation.

Refs #6994 and #7025.

7 years agoMerge pull request #8820 from pgavlin/RemoveVarTmp
Pat Gavlin [Thu, 5 Jan 2017 23:57:58 +0000 (15:57 -0800)]
Merge pull request #8820 from pgavlin/RemoveVarTmp

Remove `BasicBlock::bbVarTmp`.

7 years agoFix check for JIT dasm.
Aditya Mandaleeka [Thu, 5 Jan 2017 23:06:39 +0000 (15:06 -0800)]
Fix check for JIT dasm.

7 years agoMerge pull request #8781 from hqueue/arm/rootfs/tizen
Gaurav Khanna [Thu, 5 Jan 2017 21:43:19 +0000 (13:43 -0800)]
Merge pull request #8781 from hqueue/arm/rootfs/tizen

Add Tizen rootfs for armel

7 years agoMerge pull request #8818 from SedarG/sedarg
Gaurav Khanna [Thu, 5 Jan 2017 18:59:50 +0000 (10:59 -0800)]
Merge pull request #8818 from SedarG/sedarg

Revert "Adding Microsoft.NETCore.Native package (#8791)"

7 years agoRemove `BasicBlock::bbVarTmp`.
Pat Gavlin [Thu, 5 Jan 2017 18:11:39 +0000 (10:11 -0800)]
Remove `BasicBlock::bbVarTmp`.

This field was never used.

7 years agoMerge pull request #8813 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Thu, 5 Jan 2017 17:55:59 +0000 (09:55 -0800)]
Merge pull request #8813 from dotnet-bot/master-UpdateDependencies

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

7 years agoRevert "Adding Microsoft.NETCore.Native package (#8791)"
Sedar Gokbulut [Thu, 5 Jan 2017 16:53:53 +0000 (08:53 -0800)]
Revert "Adding Microsoft.NETCore.Native package (#8791)"

This reverts commit eea7b4691c0a489435814e48a257a9d047475006.

7 years agofix link
Dan Moseley [Thu, 5 Jan 2017 16:52:34 +0000 (08:52 -0800)]
fix link

Fix https://github.com/dotnet/coreclr/issues/8816

7 years agoUpdate CoreClr, CoreFx to beta-24904-03, beta-24905-02, respectively
dotnet-bot [Thu, 5 Jan 2017 15:45:36 +0000 (15:45 +0000)]
Update CoreClr, CoreFx to beta-24904-03, beta-24905-02, respectively

7 years agoUse x86 crossbuild for cross-architecture component on x64-linux (#8722)
Hyeongseok Oh [Thu, 5 Jan 2017 12:32:44 +0000 (21:32 +0900)]
Use x86 crossbuild for cross-architecture component on x64-linux (#8722)

* Use x86 crossbuild for cross-architecture component on x64-linux

Fix build.sh and build system generator to use x86 cross-build system on x64-linux
- x86-host/ARM32-target cross-architecture component build on x64 linux
- use x86 root file system and cross buildtool

* Modify build.sh

- define new function: build_cross_arch_component
- fix typo

* Additional fix: build.sh

add usage description
- environment variable: CAC_ROOTFS_DIR
- argument: crosscomponent

7 years agoUpdate cmake file for armel
Hyung-Kyu Choi [Thu, 5 Jan 2017 06:17:18 +0000 (15:17 +0900)]
Update cmake file for armel

Enable build using Tizen rootfs

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
7 years agoAdd a script to fetch tizen packages
pius.lee [Tue, 3 Jan 2017 10:19:11 +0000 (19:19 +0900)]
Add a script to fetch tizen packages

Fetch packages for build RootFS by XML information in download.tizen.org

Signed-off-by: pius.lee <pius.lee@samsung.com>
7 years agoAdd Tizen rootfs for armel
Hyung-Kyu Choi [Thu, 5 Jan 2017 05:48:10 +0000 (14:48 +0900)]
Add Tizen rootfs for armel

- This rootfs can be used for CoreCLR, CoreFX and Core-Setup.

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
7 years agoUse armel instead of arm-softfp (#8771)
Hyung-Kyu Choi [Thu, 5 Jan 2017 09:29:49 +0000 (18:29 +0900)]
Use armel instead of arm-softfp (#8771)

* Use armel instead of arm-softfp for CoreCLR

- Update scripts for rootfs, build, build system generation and CI
- Update managed build project
- Rename rootfs directory
- Fix bug in rootfs script related to lldb package
  lldb package only usable lldb-3.5-dev for jessie/arm-softfp
  We cannot get lldb-3.6-dev or lldb-3.8-dev from jessie/arm-softfp repository

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
Singed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Update ARM32 CI script

We don't need a patch anymore, because we fixed cmake file.

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
7 years agoFix unsigned_abs function on Unix (#8805)
Jan Vorlicek [Thu, 5 Jan 2017 01:37:25 +0000 (02:37 +0100)]
Fix unsigned_abs function on Unix (#8805)

The unsigned_abs function in jit.h is implemented using labs function.
However labs has 32 bit argument / result, while the unsigned_abs expects
it to be 64 bit.
The correct function to use for FEATURE_PAL is llabs. But since we now have
abs overload for __int64 in pal.h, we can just remove the #ifdef for FEATURE_PAL
and use the same implementation for both Unix and Windows.

7 years agoMerge pull request #8809 from pgavlin/FixJitStressFailure
Pat Gavlin [Thu, 5 Jan 2017 00:34:55 +0000 (16:34 -0800)]
Merge pull request #8809 from pgavlin/FixJitStressFailure

Add a missing ref count bump in DecomposeLclFld.

7 years agoMerge pull request #8711 from sivarv/simdAbsOpt
Sivarv [Wed, 4 Jan 2017 23:36:58 +0000 (15:36 -0800)]
Merge pull request #8711 from sivarv/simdAbsOpt

Accelerate Abs intrinsic even in cases where there is no direct instruction support available.

7 years agoFix VSO 359733. (#8803)
Pat Gavlin [Wed, 4 Jan 2017 23:30:13 +0000 (15:30 -0800)]
Fix VSO 359733. (#8803)

* Fix VSO 359733.

This bug was an assertion when extracting side effects that failed when
checking that the presence or absence of value numbers on the head of
the side effect list matched the presence or absence of value numbers on
the node being added to the list. This condition does not hold when
remorphing, as remorphing may create nodes without value numbers. In
this case, the new comma node will have no value numbers for
conservative correctness. The failing assertion was weakened to allow
the presence/absence of value numbers on the head of the list and the
node being added to differ during remorphing.

7 years agoMerge pull request #8804 from adiaaida/devdiv_362706
Michelle McDaniel [Wed, 4 Jan 2017 22:36:45 +0000 (14:36 -0800)]
Merge pull request #8804 from adiaaida/devdiv_362706

Fix DevDiv 362706

7 years agoAdd a missing ref count bump in DecomposeLclFld.
Pat Gavlin [Wed, 4 Jan 2017 22:36:17 +0000 (14:36 -0800)]
Add a missing ref count bump in DecomposeLclFld.

DecomposeLclFld transforms a single lclFld node into two lclFld nodes
that reference the same lclVar, but was missing a corresponding ref
count bump. This was causing a failure in JIT/Methodical/fp/exgen/10w5d_cs_do
under JITStress=1 and JITStress=2.

7 years agoFix NULL string printing in printf (#8800)
Jan Vorlicek [Wed, 4 Jan 2017 21:05:43 +0000 (22:05 +0100)]
Fix NULL string printing in printf (#8800)

The functions implementing various printf flavors in PAL were not handling
correctly the case when a string pointer passed to them for %S and %s formats
was NULL. Instead of printing `(null)`, they were crashing.

This change fixes the problem and also adds PAL tests to verify it is working
properly.

7 years agoFix DevDiv 362706
Michelle McDaniel [Wed, 4 Jan 2017 17:42:19 +0000 (09:42 -0800)]
Fix DevDiv 362706

The issue here was that when we morphed a mod into a sub mul div, we would
ultimately decrease the ref counts to the numerator of the original mod
without performing a corresponding increase. The fix is to increase the
ref count when morphing into the sub mul div.

7 years agoAccelerate Abs intrinsic even in cases where there is no direct instruction support...
sivarv [Thu, 22 Dec 2016 22:59:32 +0000 (14:59 -0800)]
Accelerate Abs intrinsic even in cases where there is no direct instruction support available.

7 years agoMerge pull request #8802 from adiaaida/fixCorefxGroovy
Michelle McDaniel [Wed, 4 Jan 2017 19:32:11 +0000 (11:32 -0800)]
Merge pull request #8802 from adiaaida/fixCorefxGroovy

Do not supply fx_root to run-corefx-tests

7 years agoDo not validate fx_root in run-corefx-tests
adiaaida [Wed, 4 Jan 2017 18:30:28 +0000 (10:30 -0800)]
Do not validate fx_root in run-corefx-tests

Users are able to supply an fx_root that does not yet exist and
run-corefx-tests.py will create that directory. However,
run-corefx-tests.py checks to confirm that fx_root already exists when
we validate. This causes the script to exit with an error when fx_root
does not yet exist. This change modifies run-corefx-tests.py so that we
do not validate the fx_root path.

This change also fixes the path to WORKSPACE for ubuntu corefx testing
in netci.groovy.

7 years agoAdding Microsoft.NETCore.Native package (#8791)
Sedar Gokbulut [Wed, 4 Jan 2017 19:21:20 +0000 (11:21 -0800)]
Adding Microsoft.NETCore.Native package (#8791)

* "Adding Microsoft.NETCore.Native package"

* Adding generic linux configuration to Microsoft.NETCore.Native package

* Fixing the OSX pkgproj of Microsoft.NETCore.Native to include S.Globalization.Native.dylib and not .so

7 years agoMerge pull request #8719 from jkotas/native-buffer
Jan Kotas [Wed, 4 Jan 2017 17:18:14 +0000 (09:18 -0800)]
Merge pull request #8719 from jkotas/native-buffer

Use ArrayPool for PathHelper

7 years agoMerge pull request #8796 from dotnet-bot/master-UpdateDependencies
Stephen Toub [Wed, 4 Jan 2017 15:48:29 +0000 (10:48 -0500)]
Merge pull request #8796 from dotnet-bot/master-UpdateDependencies

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

7 years agoPath normalization performance improvements
Jan Kotas [Wed, 4 Jan 2017 14:31:17 +0000 (06:31 -0800)]
Path normalization performance improvements

- Use const variant of path separators in the Path implementation
- Add fast paths for common cases to hot parsing routines
- Avoid redundant caches for MaxPath on Unix

7 years agoDelete unused file
Jan Kotas [Mon, 26 Dec 2016 08:08:01 +0000 (00:08 -0800)]
Delete unused file

7 years agoUse ArrayPool for PathHelper
Jan Kotas [Wed, 21 Dec 2016 23:46:53 +0000 (15:46 -0800)]
Use ArrayPool for PathHelper

Replace special unmanaged memory pool used by PathHelper by shared ArrayPool. Custom memory pools are not good for global system performance, and the particular implementation of the unmanaged memory pool was also problematic for CoreRT port because of its dependencies.

7 years ago[x86/Linux] Implement ResolveWorkerChainLookupAsmStub (#8780)
SaeHie Park [Wed, 4 Jan 2017 14:06:24 +0000 (23:06 +0900)]
[x86/Linux] Implement ResolveWorkerChainLookupAsmStub (#8780)

Replace ResolveWorkerChainLookupAsmStub with actual implementation
- code is copied from Win32 version
- replaced some parts to compile in linux

7 years ago[x86/Linux] Implement SinglecastDelegateInvokeStub (#8799)
SaeHie Park [Wed, 4 Jan 2017 10:10:13 +0000 (19:10 +0900)]
[x86/Linux] Implement SinglecastDelegateInvokeStub (#8799)

Implement SinglecastDelegateInvokeStub for x86/Linux
- Code copied from that of AMD64 and some translation
- Fixes LargeObjectAlloc.exe unit test case and maybe others

7 years agoUpdate CoreClr, CoreFx to beta-24904-02, beta-24904-01, respectively
dotnet-bot [Wed, 4 Jan 2017 09:44:37 +0000 (09:44 +0000)]
Update CoreClr, CoreFx to beta-24904-02, beta-24904-01, respectively

7 years agoRemove un-necessary ITuple constraint (#8793)
Julien Couvreur [Wed, 4 Jan 2017 02:09:17 +0000 (18:09 -0800)]
Remove un-necessary ITuple constraint (#8793)

7 years agoRedo some argument name corrections (#8727)
Stephen A. Imhoff [Wed, 4 Jan 2017 00:43:59 +0000 (16:43 -0800)]
Redo some argument name corrections (#8727)

* TraceLogging
* SignatureHelper
* RuntimeReflectionExtensions
* RuntimeHandles - Public
* SemaphoreSlim - Public
* Directory - Public
* ModuleBuilder - Public
* EncoderFallback - Public - Test Failures
* StringBuilder - Public - Test Failures

7 years agoMerge pull request #8757 from JosephTremoulet/FixHeapLiveIn
Joseph Tremoulet [Tue, 3 Jan 2017 23:05:01 +0000 (18:05 -0500)]
Merge pull request #8757 from JosephTremoulet/FixHeapLiveIn

Fix heap live-in calculation

7 years agoMerge pull request #8789 from pgavlin/VSO359737
Pat Gavlin [Tue, 3 Jan 2017 22:36:31 +0000 (14:36 -0800)]
Merge pull request #8789 from pgavlin/VSO359737

Fix DevDiv bug 359737.

7 years agoAdd a comment per code review.
Pat Gavlin [Tue, 3 Jan 2017 22:34:54 +0000 (14:34 -0800)]
Add a comment per code review.

7 years agoMerge pull request #8788 from JohnChen0/apiset
John Chen [Tue, 3 Jan 2017 22:18:50 +0000 (14:18 -0800)]
Merge pull request #8788 from JohnChen0/apiset

Fix a typo that caused AVX2 flag to be unset

7 years agoMerge pull request #8751 from mellinoe/corelibraries-unix
Eric Mellino [Tue, 3 Jan 2017 22:07:59 +0000 (14:07 -0800)]
Merge pull request #8751 from mellinoe/corelibraries-unix

Add CORE_LIBRARIES to the TPA list if it's set in unixcoreruncommon

7 years agoRemove unnecessary `canEndWithoutSeparator` parameter (#8786)
Justin Van Patten [Tue, 3 Jan 2017 22:02:38 +0000 (14:02 -0800)]
Remove unnecessary `canEndWithoutSeparator` parameter (#8786)

7 years agoTimeZoneInfo.StringSerializer can be a struct (#8784)
Justin Van Patten [Tue, 3 Jan 2017 21:51:26 +0000 (13:51 -0800)]
TimeZoneInfo.StringSerializer can be a struct (#8784)

7 years agoAdjust ref counts during EH normalization (#8713)
Andy Ayers [Tue, 3 Jan 2017 21:30:09 +0000 (13:30 -0800)]
Adjust ref counts during EH normalization (#8713)

EH normalization can leave incorrect ref counts. This caused asserts in a few
cases with the forthcoming finally cloning, as these EH related blocks were
exposed to flow optimizations.

7 years agoFix DevDiv bug 359737.
Pat Gavlin [Tue, 3 Jan 2017 20:24:56 +0000 (12:24 -0800)]
Fix DevDiv bug 359737.

This bug was an assertion during CSE that ensures that all CSE
candidates have value numbers. This assertion tripped because an earlier
CSE in the same tree as the faulty candidate re-morphed modulus by a
constant into a divide and subtract; the resulting tree was left without
value numbers. This change disables the problematic transform when
remorphing as part of CSE.

7 years agoFix a typo that caused AVX2 flag to be unset
John Chen (CLR) [Tue, 3 Jan 2017 20:06:03 +0000 (12:06 -0800)]
Fix a typo that caused AVX2 flag to be unset

Fix issue #8736, a regression caused by PR #8624. A typo in
the code causes the AVX2 flag to be always unset.

7 years agoTimeZoneInfo.StringSerializer: Avoid some unnecessary allocations (#8783)
Justin Van Patten [Tue, 3 Jan 2017 20:00:46 +0000 (12:00 -0800)]
TimeZoneInfo.StringSerializer: Avoid some unnecessary allocations (#8783)

Instead of using multiple calls to `string.Replace` to escape reserved
chars before appending to a `StringBuilder`, do the replacing while
appending the chars directly to the `StringBuilder`.

Also, append numbers/dates directly instead of running it through the
escape method, as these Invariant-formatted strings will not contain any
chars that need to be escaped.

7 years agoOnly add CORE_LIBRARIES to TPA list if it is different from clrFilesAbsolutePath
Eric Mellino [Tue, 3 Jan 2017 19:22:13 +0000 (11:22 -0800)]
Only add CORE_LIBRARIES to TPA list if it is different from clrFilesAbsolutePath

This avoids placing duplicate entries on the TPA list.

7 years agoMerge pull request #8785 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Tue, 3 Jan 2017 19:15:03 +0000 (11:15 -0800)]
Merge pull request #8785 from dotnet-bot/master-UpdateDependencies

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

7 years agoUpdate CoreClr, CoreFx to beta-24903-03, beta-24903-02, respectively
dotnet-bot [Tue, 3 Jan 2017 17:42:21 +0000 (17:42 +0000)]
Update CoreClr, CoreFx to beta-24903-03, beta-24903-02, respectively

7 years agoMerge pull request #8777 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Tue, 3 Jan 2017 16:10:15 +0000 (08:10 -0800)]
Merge pull request #8777 from dotnet-bot/master-UpdateDependencies

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

7 years agoArrayPool fixes (#8774)
Jan Kotas [Tue, 3 Jan 2017 14:13:46 +0000 (06:13 -0800)]
ArrayPool fixes (#8774)

* Use Array.Empty<T>() to make the code identical to CoreRT copy
The internal EmptyArray<T> does not exist in CoreRT.
* Remove unnecessary helper type for lazy initialization
All generic types are beforefieldinit by design.
* Use | for clarity

7 years agoUpdate CoreClr, CoreFx to beta-24903-02, beta-24903-01, respectively
dotnet-bot [Tue, 3 Jan 2017 09:48:14 +0000 (09:48 +0000)]
Update CoreClr, CoreFx to beta-24903-02, beta-24903-01, respectively

7 years agoTimeZoneInfo: Reduce intermediate allocations in GetTimeZoneIds on Unix (#8769)
Justin Van Patten [Tue, 3 Jan 2017 04:41:04 +0000 (20:41 -0800)]
TimeZoneInfo: Reduce intermediate allocations in GetTimeZoneIds on Unix (#8769)

Avoid intermediate underlying array allocations as items are added to
the resulting List<string> by specifying the capacity. Also, change
the signature of the private method to return List<string> instead of
IEnumerable<string> to avoid the enumerator allocation when enumerating
the ids.

7 years agoUpdate CoreClr, CoreFx to beta-24902-03, beta-24902-02, respectively (#8745)
dotnet bot [Tue, 3 Jan 2017 00:50:22 +0000 (16:50 -0800)]
Update CoreClr, CoreFx to beta-24902-03, beta-24902-02, respectively (#8745)

7 years ago[Linux/ARM32] duplicated definition in crosscomp.h (#8729)
Hyeongseok Oh [Mon, 2 Jan 2017 22:37:42 +0000 (07:37 +0900)]
[Linux/ARM32] duplicated definition in crosscomp.h (#8729)

Some structs in crosscomp.h are already defined in pal.h or palrt.h
Fix to avoid duplicated definition

7 years ago[x86/Linux] Fix UMThunkStub calling convension (#8714)
SaeHie Park [Mon, 2 Jan 2017 14:59:40 +0000 (23:59 +0900)]
[x86/Linux] Fix UMThunkStub calling convension (#8714)

This fixes reverse P/Invoke segment faults by handling cdecl from UM to
fastcall for Managed code, which corrects many CoreFX unit test cases including CharMinValue.exe.
First and second parameter(s) are set to ECX, EDX and rest to the stack.

7 years agoDelete unused Diagnostics files (#8754)
James Ko [Mon, 2 Jan 2017 04:25:45 +0000 (23:25 -0500)]
Delete unused Diagnostics files (#8754)

7 years agoDelete unused Threading types/members (#8766)
James Ko [Mon, 2 Jan 2017 01:40:39 +0000 (20:40 -0500)]
Delete unused Threading types/members (#8766)

7 years agoDelete unused SymbolStore files (#8767)
James Ko [Mon, 2 Jan 2017 01:32:07 +0000 (20:32 -0500)]
Delete unused SymbolStore files (#8767)

7 years agoDelete unused IO files (#8753)
James Ko [Sun, 1 Jan 2017 01:25:17 +0000 (20:25 -0500)]
Delete unused IO files (#8753)

7 years agoMerge pull request #8755 from JosephTremoulet/DeadParam
Joseph Tremoulet [Sat, 31 Dec 2016 21:43:23 +0000 (16:43 -0500)]
Merge pull request #8755 from JosephTremoulet/DeadParam

Remove dead parameter in value-numbering

7 years agoFix heap live-in calculation
Joseph Tremoulet [Fri, 30 Dec 2016 16:54:56 +0000 (08:54 -0800)]
Fix heap live-in calculation

Update the code in liveness that sets the `fgCurHeapUse` flag (which needs
to identify whether the current block has an upwards-exposed use of the
heap) to set this unconditionally for opcodes that use the heap.
Previously, this code was avoiding setting the flag if the block has a
prior def of the heap, but in the absence of a guarantee to the contrary,
we must assume that the heap use may not alias the heap def, and so still
be upwards-exposed and cause the heap to be live-in to the block.

Also remove the OptRepeat workaround for the lack of this, in
`ResetOptAnnotations`.

Fixes #7846.

7 years agoRemove dead parameter in value-numbering
Joseph Tremoulet [Fri, 30 Dec 2016 16:29:49 +0000 (11:29 -0500)]
Remove dead parameter in value-numbering

Parameter `newVNsForPhis` of method `fgValueNumberBasicBlocks` is unused;
its presence and comment are confusing/misleading.  What actually happens
is that `fgValueNumberBlock` itself checks whether the value numbers for
incoming Phi args' SSA defs are defined yet or not.

7 years agoAdd CORE_LIBRARIES to the TPA list if it's set in unixcoreruncommon
Eric Mellino [Thu, 29 Dec 2016 22:53:46 +0000 (14:53 -0800)]
Add CORE_LIBRARIES to the TPA list if it's set in unixcoreruncommon

7 years agoMerge pull request #8743 from sandreenko/an-additional-shift-test
sandreenko [Thu, 29 Dec 2016 01:02:01 +0000 (17:02 -0800)]
Merge pull request #8743 from sandreenko/an-additional-shift-test

an additional shift test. fix #7216 .

7 years agoTypo in documentation (#8740)
darxis [Wed, 28 Dec 2016 22:51:30 +0000 (23:51 +0100)]
Typo in documentation (#8740)

7 years agoUpdate CoreClr, CoreFx to beta-24828-03, beta-24828-03, respectively (#8741)
dotnet bot [Wed, 28 Dec 2016 22:48:41 +0000 (14:48 -0800)]
Update CoreClr, CoreFx to beta-24828-03, beta-24828-03, respectively (#8741)

7 years agoan additional shift test. fix #7216 .
Sergey Andreenko [Wed, 28 Dec 2016 20:35:30 +0000 (12:35 -0800)]
an additional shift test. fix #7216 .

Test long and ulong shifts by 0, 32 and 64 constants.

7 years agoMerge pull request #8738 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Wed, 28 Dec 2016 16:33:01 +0000 (08:33 -0800)]
Merge pull request #8738 from dotnet-bot/master-UpdateDependencies

Update CoreClr to beta-24828-02 (master)

7 years agoFix order of raising AssemblyLoadContext.Unloading and AppDomain.ProcessExit (#8737)
Caio Kinelski [Wed, 28 Dec 2016 16:11:05 +0000 (08:11 -0800)]
Fix order of raising AssemblyLoadContext.Unloading and AppDomain.ProcessExit (#8737)

The AssemblyLoadContext.Unloading event must be raised before the AppDomain.ProcessExit event.
AssemblyLoadContext.OnUnloading now subscribes to AppContext.Unloading.
Then AppContext.OnAppContextUnloading and AppContext.OnProcessExit, in that order, subscribe to AppDomain.ProcessExit.
Part of fix for dotnet/corefx#14566

7 years agoFix Bitposition funtion (#8739)
Hyeongseok Oh [Wed, 28 Dec 2016 15:33:04 +0000 (00:33 +0900)]
Fix Bitposition funtion (#8739)

Fix Bitposition(value) function implementation to check platform, not target.
- cross-architecture component build error for ARM32/linux

7 years agoUpdate CoreClr to beta-24828-02
dotnet-bot [Wed, 28 Dec 2016 09:42:01 +0000 (09:42 +0000)]
Update CoreClr to beta-24828-02

7 years agoMerge pull request #8734 from justinvp/tzi_files
Jan Kotas [Wed, 28 Dec 2016 03:35:37 +0000 (19:35 -0800)]
Merge pull request #8734 from justinvp/tzi_files

TimeZoneInfo: Move nested types and Win32/Unix implementations to separate files

7 years agoUpdate issue guide (#8728)
Jan Kotas [Wed, 28 Dec 2016 03:33:07 +0000 (19:33 -0800)]
Update issue guide (#8728)

* Revert "Update IssuesFeedbackEngagement.md"

This reverts commit 124754f2f5382f2781db8f132e3c89d21b56600b.

* Update wording

7 years agoRemove ifdefs from TimeZoneInfo
Justin Van Patten [Tue, 27 Dec 2016 22:49:32 +0000 (14:49 -0800)]
Remove ifdefs from TimeZoneInfo

Move Win32 and Unix -specific implementation details to their own files.

7 years agoMerge pull request #8712 from dotnet-bot/master-UpdateDependencies
Gaurav Khanna [Tue, 27 Dec 2016 19:03:39 +0000 (11:03 -0800)]
Merge pull request #8712 from dotnet-bot/master-UpdateDependencies

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

7 years agoUpdate CoreClr, CoreFx to beta-24827-03, beta-24827-01, respectively
dotnet-bot [Tue, 27 Dec 2016 17:35:38 +0000 (17:35 +0000)]
Update CoreClr, CoreFx to beta-24827-03, beta-24827-01, respectively

7 years agoMove nested TimeZoneInfo types to their own files
Justin Van Patten [Mon, 26 Dec 2016 19:40:01 +0000 (11:40 -0800)]
Move nested TimeZoneInfo types to their own files

7 years agoRemove files related to legacy build system (#8723)
Robert [Mon, 26 Dec 2016 19:25:24 +0000 (19:25 +0000)]
Remove files related to legacy build system (#8723)

7 years agoTimeZoneInfo Cleanup (#8720)
Justin Van Patten [Sun, 25 Dec 2016 07:53:44 +0000 (23:53 -0800)]
TimeZoneInfo Cleanup (#8720)

Update TimeZoneInfo to use CoreFX coding style and other minor cleanup.

7 years agoImprove ArrayPool core affinity (#8716)
Jan Kotas [Fri, 23 Dec 2016 18:19:52 +0000 (10:19 -0800)]
Improve ArrayPool core affinity (#8716)

- Move the ExecutionId to non-generic type so that it can be shared by all ArrayPool instances.
- Add logic to refresh it periodically. It avoids pathological cases where the OS scheduler ends up reassigns the preferred cores and multiple active threads start competing over the same buckets.
- Removed flushing of ExecutionId on LockedStack lock contention since it was not very effective

7 years agoRemove all usage of vsnprintf (#8709)
Jan Vorlicek [Fri, 23 Dec 2016 13:41:28 +0000 (14:41 +0100)]
Remove all usage of vsnprintf (#8709)

This change removes all usages of vsnprintf and modifies runtime to not to use
vsnprintf or _vsnprintf

I've also fixed two issues in PAL TRACE function string format parameters that
caused crashes when I was trying to run all PAL tests with PAL tracing enabled.

7 years ago[Linux] Fix cross-architecture component build configuration for ARM32-target (#8687)
Hyeongseok Oh [Fri, 23 Dec 2016 13:18:32 +0000 (22:18 +0900)]
[Linux] Fix cross-architecture component build configuration for ARM32-target (#8687)

* fix CMakeLists.txt for palrt

* Modify CMakeLists.txt for cross-architecture component configuaration

Add coreclrpal project to fix a dependency issue when CMake configuration

* Allow only x64-host/arm-target for linux

allow x64-host/arm-target only, because pal is not stable for x86 now

* Update build.sh

delete NumProc=1 (inserted for debugging)

* Change x64-host to x86-host for arm-target

JIT correctness problem,
and fix CMake configuration for x86 in pal

* Fix type

* Update CMakeLists.txt

* fix style

* Set x86 when arm-target/x64-host

* fix typo