platform/upstream/dotnet/runtime.git
5 years agoSupport building with VS2019 Preview (dotnet/coreclr#22525)
Tanner Gooding [Tue, 12 Feb 2019 07:19:44 +0000 (23:19 -0800)]
Support building with VS2019 Preview (dotnet/coreclr#22525)

* Support building with VS2019 Preview

* Fixing gen-buildsys-win to only set the architecture for the VS generator

* Refactoring Dev11/147911/fpcw.cpp so that it compiles under VS2019

* Removing the remaining traces of VS2015 build support

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

5 years agoDelete mda.cs and related dead code (dotnet/coreclr#22535)
Stephen Toub [Tue, 12 Feb 2019 04:23:32 +0000 (23:23 -0500)]
Delete mda.cs and related dead code (dotnet/coreclr#22535)

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

5 years agoMove ConditionalWeakTable to shared (dotnet/coreclr#22531)
Stephen Toub [Tue, 12 Feb 2019 02:34:21 +0000 (21:34 -0500)]
Move ConditionalWeakTable to shared (dotnet/coreclr#22531)

Leaves DependentHandle as being the runtime PAL

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

5 years ago Make Module partial to allow additional changed for Mono
Marek Safar [Mon, 11 Feb 2019 23:38:55 +0000 (00:38 +0100)]
 Make Module partial to allow additional changed for Mono

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

5 years agoAnnotate EventCounter as a relocated type (dotnet/corertdotnet/coreclr#6990)
Michal Strehovský [Mon, 11 Feb 2019 14:22:08 +0000 (15:22 +0100)]
Annotate EventCounter as a relocated type (dotnet/corertdotnet/coreclr#6990)

This moved to CoreLib and needs to be annotated as such for Project N.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/8d17347e323b5514f16b0a9e9b546dcd78201084

5 years agoMove Volatile to shared (dotnet/coreclr#22523)
Stephen Toub [Mon, 11 Feb 2019 23:18:25 +0000 (18:18 -0500)]
Move Volatile to shared (dotnet/coreclr#22523)

* Move Volatile to shared

This largely takes corert's implementation, which uses Unsafe.As and volatile fields.

We could investigate also removing the JIT's replacements subsequently.

* Add [Intrinsic] attributes

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

5 years agoLocally define DLLEXPORT in ee_il_dll.cpp
Russ Keldorph [Mon, 11 Feb 2019 19:42:29 +0000 (11:42 -0800)]
Locally define DLLEXPORT in ee_il_dll.cpp

This prevents a desktop build break due to DLLEXPORT being undefined.  If
you know of a better place to put this, I'm happy to try it.  Otherwise,
this should unblock the desktop build.

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

5 years agoMove runincontext to src/tools
Russ Keldorph [Sat, 9 Feb 2019 00:20:15 +0000 (16:20 -0800)]
Move runincontext to src/tools

This SDK-style project is causing problems on some machines with VS
installs that can't build it.  For now, move it to a place where it
doesn't build with the tests.

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

5 years agoMove GCHandle to shared (dotnet/coreclr#22499)
Stephen Toub [Mon, 11 Feb 2019 21:52:51 +0000 (16:52 -0500)]
Move GCHandle to shared (dotnet/coreclr#22499)

* Move GCHandle to shared

* Cache the handle in a local to make it easier for JIT to generate good code

* Rename m_handle to _handle to match the coding conventions

* Delete isPinned argument for GCHandleInternalCompareExchange

* Add fast path to GCHandle.Alloc/Free FCalls

* Disable outdated test

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

5 years agoUpdate master label to preview4
Russ Keldorph [Mon, 11 Feb 2019 16:06:30 +0000 (08:06 -0800)]
Update master label to preview4

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

5 years agoprestub: fix ExternalMethodFixupWorker (dotnet/coreclr#22519)
Konstantin Baladurin [Mon, 11 Feb 2019 16:20:50 +0000 (19:20 +0300)]
prestub: fix ExternalMethodFixupWorker (dotnet/coreclr#22519)

Use DispatchToken::CreateDispatchToken to get token to resolve
virtual method in case of non interface MT.

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

5 years agoMake Nullable partial to allow additional method for in under Mono (dotnet/coreclr...
Marek Safar [Mon, 11 Feb 2019 11:33:29 +0000 (12:33 +0100)]
Make Nullable partial to allow additional method for in under Mono (dotnet/coreclr#22518)

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

5 years agoCleanup DLL exports (dotnet/coreclr#22500)
Jan Kotas [Sun, 10 Feb 2019 21:57:11 +0000 (13:57 -0800)]
Cleanup DLL exports (dotnet/coreclr#22500)

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

5 years agoFix casing of interop directories (dotnet/corertdotnet/coreclr#6982)
Jan Kotas [Sun, 10 Feb 2019 02:45:30 +0000 (18:45 -0800)]
Fix casing of interop directories (dotnet/corertdotnet/coreclr#6982)

Match convention introduced by https://github.com/dotnet/corefx/pull/35085

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/be1b5db77a593fdea460ef7ab90e63b3817e7853

5 years agoMove eventpipe buffer to TLS (dotnet/coreclr#21817)
Sung Yoon Whang [Sun, 10 Feb 2019 02:25:10 +0000 (18:25 -0800)]
Move eventpipe buffer to TLS (dotnet/coreclr#21817)

* start ripping out eventpipe buffer to tls

* can now emit events from gc threads

* cleanup

* more cleanup

* more cleanup

* tested on linux

* Addressing PR comments

* Move things around a bit to build in Linux

* change eventpipe buffer deallocation code

* more cleanup

* this while loop doesnt do anything now

* Fix build

* fixing build

* More cleanup

* more pr comments

* Fix unix build

* more pr comments

* trying to add a message to assertion that seems to be causing CIs to fail

* more pr feedback

* handle non-2-byte aligned string payloads inside payload buffers

* some more cleanup

* Fix off by one error in null index calculation

* Make Get/SetThreadEventBufferList a static member of ThreadEventBufferList

* make only the methods public in ThreadEventBufferList

* Addressing noah's comments

* fix comment and last off by 1 error

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

5 years agoset up CoreLib to include EventCounter in build project (dotnet/coreclr#22501)
Sung Yoon Whang [Sun, 10 Feb 2019 02:23:33 +0000 (18:23 -0800)]
set up CoreLib to include EventCounter in build project (dotnet/coreclr#22501)

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

5 years agoAdd reporting exception from ResolveEHClause (dotnet/coreclr#17947)
Jan Vorlicek [Sat, 9 Feb 2019 15:07:14 +0000 (16:07 +0100)]
Add reporting exception from ResolveEHClause (dotnet/coreclr#17947)

* Add reporting exception from ResolveEHClause

When an exception, like EEFileLoadException happens in the
ResolveEHClause, it was not caught by the runtime and so it caused exit
with `terminating with uncaught exception of type EEFileLoadException*`
message without any additional details.

This change adds catching the exception, reporting its details and call
stack and then failing fast.

* Change StackSString to SString

* Ensure the catch clause types are loaded before EH

In crossgen-ed images, ensure the types used in catch clauses are loaded
before the function containing these clauses is executed. That ensures
that a failure to load the EH clause type will occur at that time
instead of during the EH stack walking that searches for the catch
handler.

* Fix EH clause class module check

* Remove the EH clause class module check

It turns out that even if the class was from the current module, it may
depend on types from other modules, so we still need to add a fixup for
it.

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

5 years agomove EventCounter to shared CoreLib (dotnet/corefxdotnet/coreclr#35183)
Sung Yoon Whang [Sat, 9 Feb 2019 03:58:24 +0000 (19:58 -0800)]
move EventCounter to shared CoreLib (dotnet/corefxdotnet/coreclr#35183)

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/fc8470a32c9eed9dbfd7ec146fffe8f009f9219d

5 years agoMove Array's SZGenericArrayEnumerator to shared partition (dotnet/coreclr#22480)
Marek Safar [Sat, 9 Feb 2019 04:11:21 +0000 (05:11 +0100)]
Move Array's SZGenericArrayEnumerator to shared partition (dotnet/coreclr#22480)

* Move Array's SZGenericArrayEnumerator to shared partition

* Remove legacy comment

* Move all array enumerators to a new file

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

5 years agoDelete EnvironmentAugments (dotnet/coreclr#22485)
Jan Kotas [Sat, 9 Feb 2019 04:10:38 +0000 (20:10 -0800)]
Delete EnvironmentAugments (dotnet/coreclr#22485)

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

5 years agoSet visibility option to hidden (dotnet/coreclr#21924)
Adeel Mujahid [Sat, 9 Feb 2019 01:24:59 +0000 (03:24 +0200)]
Set visibility option to hidden (dotnet/coreclr#21924)

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

5 years agoBitOps.TrailingZeroCount has inconsistent software fallback (dotnet/coreclr#22333)
Grant [Fri, 8 Feb 2019 23:46:14 +0000 (15:46 -0800)]
BitOps.TrailingZeroCount has inconsistent software fallback (dotnet/coreclr#22333)

Fix dotnet/coreclr#22326

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

5 years ago[Official Build] Remove FreeBSD builds (dotnet/coreclr#22451)
Jarret Shook [Fri, 8 Feb 2019 20:04:51 +0000 (12:04 -0800)]
[Official Build] Remove FreeBSD builds (dotnet/coreclr#22451)

Currently all the FreeBSD machines are offline or in an unclean state
which blocks official builds from finishing.

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

5 years agoRevert "Revert "Re-point Jenkins to new Ubuntu ARM64 queue""
Russ Keldorph [Fri, 8 Feb 2019 19:03:42 +0000 (11:03 -0800)]
Revert "Revert "Re-point Jenkins to new Ubuntu ARM64 queue""

This reverts commit dotnet/coreclr@d617f96303c4b65b7b77ff5fa0d7aee38ebc19f8.

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

5 years agoMove GCSettings to shared (dotnet/coreclr#22483)
Stephen Toub [Fri, 8 Feb 2019 16:57:48 +0000 (11:57 -0500)]
Move GCSettings to shared (dotnet/coreclr#22483)

Mainly just type definitions and error handling that gets shared.

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

5 years agoPass official build id to build (dotnet/coreclr#22468)
Sven Boemer [Fri, 8 Feb 2019 16:34:54 +0000 (08:34 -0800)]
Pass official build id to build (dotnet/coreclr#22468)

This ensures that coreclr gets a version number based on the build id.

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

5 years agoUpdate CoreRT with shared array implementation
Jan Kotas [Thu, 7 Feb 2019 23:20:46 +0000 (15:20 -0800)]
Update CoreRT with shared array implementation

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/2bec440bdcec48bce974628bafa72ecfba3d9d0b

5 years agoUpdate BuildTools, CoreFx, CoreSetup to preview1-03706-01, preview.19106.8, preview...
dotnet-maestro-bot [Fri, 8 Feb 2019 16:12:20 +0000 (08:12 -0800)]
Update BuildTools, CoreFx, CoreSetup to preview1-03706-01, preview.19106.8, preview-27406-8, respectively (master) (dotnet/coreclr#22455)

* Update BuildTools, CoreFx, CoreSetup to preview1-03706-01, preview.19106.8, preview-27406-8, respectively

* Disabling some outdated System.ObjectModel CoreFX tests

* Undo BuildTools update

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

5 years agoJIT: Suppress emitting same-reg zero extending move (dotnet/coreclr#22454)
Andy Ayers [Fri, 8 Feb 2019 16:10:57 +0000 (08:10 -0800)]
JIT: Suppress emitting same-reg zero extending move (dotnet/coreclr#22454)

Add a peephole optimization to suppress emitting zero extending moves
if the previous instruction has already done a suitable zero extension.

Only implemented for x64 currently.

Closes dotnet/coreclr#21923

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

5 years agoJIT: fix ifdef guarding an assert (dotnet/coreclr#22460)
Andy Ayers [Fri, 8 Feb 2019 16:09:57 +0000 (08:09 -0800)]
JIT: fix ifdef guarding an assert (dotnet/coreclr#22460)

We use `_TARGET_AMD64_`, not `_TARGET_X64_`.

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

5 years agoForce results of rejected multi-reg-returning tail-call candidates to temp. (dotnet...
Eugene Rozenfeld [Fri, 8 Feb 2019 08:14:35 +0000 (00:14 -0800)]
Force results of rejected multi-reg-returning tail-call candidates to temp. (dotnet/coreclr#22364)

* Force results of rejected multi-reg-returning tail-call candidates to temp.

Issue dotnet/coreclr#20269 ran into an assert when trying to merge returns, one of which
is a call to a multi-reg-returning method. The repro in the bug is a pmi
of `System.Reflection.Metadata`. I added a simple repro test case.

Results of calls to multi-reg-returning methods are expected to
be saved to temps. Normally it's ensured by `impFixupCallStructReturn`;
however, it doesn't do that for tail-call candidates.

This change forces results of calls to multi-reg-returning methods
to temps if the tail call is rejected late in morph.

Fixes dotnet/coreclr#20269.

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

5 years agoFinish removing Environment from corefx
Stephen Toub [Wed, 6 Feb 2019 04:13:26 +0000 (23:13 -0500)]
Finish removing Environment from corefx

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/ea452c1ff113413bddd22794dcac0359af0e79fe

5 years agoFix the desktop warning (dotnet/coreclr#22481)
Sergey Andreenko [Fri, 8 Feb 2019 06:01:50 +0000 (22:01 -0800)]
Fix the desktop warning (dotnet/coreclr#22481)

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

5 years agoMove DateTime for Unix to shared partition (dotnet/coreclr#22383)
Marek Safar [Fri, 8 Feb 2019 03:45:44 +0000 (04:45 +0100)]
Move DateTime for Unix to shared partition (dotnet/coreclr#22383)

* Move DateTime for Unix to shared partition

* Keep CoreCLR specific implementation

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

5 years agoDisable more baseservices/threading/interlocked tests on Ubuntu.Arm64 (dotnet/coreclr...
Egor Chesakov [Fri, 8 Feb 2019 02:40:34 +0000 (18:40 -0800)]
Disable more baseservices/threading/interlocked tests on Ubuntu.Arm64 (dotnet/coreclr#22471)

In the last two weeks the following tests have failed:

* baseservices/threading/interlocked/exchange/ExchangeTClass - 5 times
* baseservices/threading/interlocked/exchange/ExchangeTString - 13 times
* baseservices/threading/interlocked/exchange/ExchangeTString_1 - 12 times
* baseservices/threading/interlocked/exchange/ExchangeTString_2 - 20 times

In addition to the previously disabled tests (in dotnet/coreclr#22304):

* baseservices/threading/interlocked/compareexchange/CompareExchangeTClass - 9 times
* baseservices/threading/interlocked/compareexchange/CompareExchangeTClass_1 - 32 times

All the failures happened on Ubuntu.1804.Arm64.Open Helix queue in Azure DevOps Pri1 jobs

**Related issue:** dotnet/coreclr#22303

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

5 years agoFix race condition in g_pfnGetSystemTimeAsFileTime initialization (dotnet/coreclr...
Jan Kotas [Fri, 8 Feb 2019 02:35:15 +0000 (18:35 -0800)]
Fix race condition in g_pfnGetSystemTimeAsFileTime initialization (dotnet/coreclr#22466)

Multiple threads initializing g_pfnGetSystemTimeAsFileTime at the same time can end up with different conclusions. Make the result consistent.

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

5 years agoAdd config option to disable tier 0 JIT (dotnet/coreclr#22370)
Koundinya Veluri [Fri, 8 Feb 2019 01:51:29 +0000 (17:51 -0800)]
Add config option to disable tier 0 JIT (dotnet/coreclr#22370)

Add config option to disable tier 0 JIT

Fixes https://github.com/dotnet/coreclr/issues/21856
- For methods that don't have pregenerated code, using tier 0 JIT can improve startup perf, and disabling tier 0 JIT can be useful to sacrifice some startup time to avoid issues of running tier 0 code for too long. In some cases, it may also be desirable to avoid tiering up much later.
- A fixed value for the call count indicates that tier 0 call counting is disabled. When disabled, the method starts at tier 1.
- Also modified call counting to start from a predetermined threshold and count down to zero, as it simplifies some things, allows for methods to have different thresholds, and likely is what we would want eventually anyway
- Took a small step towards eliminating knowledge of specific tier levels in code that should not care, though more is to be done there

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

5 years agoMerge pull request dotnet/coreclr#22023 from BruceForstall/FixGSWithLocalloc
Bruce Forstall [Thu, 7 Feb 2019 23:19:06 +0000 (15:19 -0800)]
Merge pull request dotnet/coreclr#22023 from BruceForstall/FixGSWithLocalloc

Fix ARM64 GS with localloc

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

5 years agoMore PAL layer cleanup for GNU and add build script support for GCC (dotnet/coreclr...
Sinan Kaya [Thu, 7 Feb 2019 21:39:13 +0000 (16:39 -0500)]
More PAL layer cleanup for GNU and add build script support for GCC (dotnet/coreclr#22369)

* Declare throw only when compiling for c++

Prevent the definition from getting defined multiple times and
map it to throw() only when compiling c++ code.

* Suppress warnings for tests

Suppress:
 -Wno-write-strings
 -Wno-sign-compare
 -Wno-narrowing
 -fpermissive
 -Wno-int-to-pointer-cast

to allow tests to compile

* Add gcc option to build.sh script

Following clangx.y model add -gccx.y command line
arguments with gcc5 and gcc7 being the currnetly supported
options.

* Allow environment variable to be used for TOOLCHAIN

Remove CLANG specific compiler options as well.

* Hide non-GNU compiler options

* Do not include local directory if cross compiling

[  0%] Building CXX object src/pal/src/eventprovider/tracepointprovider/CMakeFiles/coreclrtraceptprovider.dir/__/lttng/traceptprovdotnetruntime.cpp.o
cc1plus: error: include location "/usr/local/include" is unsafe for cross-compilation [-Werror=poison-system-directories]

* Suppress unknown pragma warnings

src/pal/src/exception/seh-unwind.cpp:37:0:
warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
    #pragma clang diagnostic pop

Removing these cause compilation error on clang7 and arm as follows:

In file included from /bin/obj/Linux.arm.Debug/src/pal/src/libunwind/include/libunwind.h:9:
/src/pal/src/libunwind/include/libunwind-arm.h:247:9: error: empty struct has size 0 in C, size 1 in C++ [-Werror,-Wextern-c-compat]
typedef struct unw_tdep_save_loc
        ^
/src/pal/src/libunwind/include/libunwind-arm.h:288:9: error: empty struct has size 0 in C, size 1 in C++ [-Werror,-Wextern-c-compat]
typedef struct

* plt not useful for GNU and ARM64/ARM

src/pal/src/arch/arm64/callsignalhandlerwrapper.S: Assembler messages:
src/pal/src/arch/arm64/callsignalhandlerwrapper.S:31: Error: unexpected characters following instruction at operand 1 -- `bl signal_handler_worker@plt'
src/pal/src/arch/arm64/callsignalhandlerwrapper.S:32: Error: unexpected characters following instruction at operand 1 -- `bl signal_handler_worker@plt'

* Remove double const from argv in PAL_Initialize

Seeing compilation error with GNU for C source files as follows:

if (PAL_Initialize(argc, argv) != 0)
                          ^
src/pal/tests/palsuite/common/palsuite.h:21:0,
from src/pal/tests/palsuite/c_runtime/asinhf/test1/test1.c:18:
src/pal/inc/pal.h:374:1: note: expected ‘const char * const*’ but argument is of type ‘char **’

* Suppress format warnings using GNU for libunwind

warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
     Debug (4, " aligned frame, offset %li\n", f->cfa_reg_offset);

* Fix -fpermissive warnings for GNU

* Suppress unused variable warning in libunwind

src/pal/src/libunwind/include/libunwind-aarch64.h:201:5: warning: right-hand operand of comma expression has no effect [-Wunused-value]
 #define unw_tdep_getcontext(uc) (({     \
                                 ~~~~~~~~~
   unw_tdep_context_t *unw_ctx = (uc);     \
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   register uint64_t *unw_base asm ("x0") = (uint64_t*) unw_ctx->uc_mcontext.regs;  \
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   __asm__ __volatile__ (      \
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x0, x1, [%[base], dotnet/coreclr#0]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x2, x3, [%[base], dotnet/coreclr#16]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x4, x5, [%[base], dotnet/coreclr#32]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x6, x7, [%[base], dotnet/coreclr#48]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x8, x9, [%[base], dotnet/coreclr#64]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x10, x11, [%[base], dotnet/coreclr#80]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x12, x13, [%[base], dotnet/coreclr#96]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x14, x13, [%[base], dotnet/coreclr#112]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x16, x17, [%[base], dotnet/coreclr#128]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x18, x19, [%[base], dotnet/coreclr#144]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x20, x21, [%[base], dotnet/coreclr#160]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x22, x23, [%[base], dotnet/coreclr#176]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x24, x25, [%[base], dotnet/coreclr#192]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x26, x27, [%[base], dotnet/coreclr#208]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "stp x28, x29, [%[base], dotnet/coreclr#224]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "str x30, [%[base], dotnet/coreclr#240]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "mov x1, sp\n" \
      ~~~~~~~~~~~~~~~~
      "stp x1, x30, [%[base], dotnet/coreclr#248]\n" \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      : [base] "+r" (unw_base) : : "x1", "memory"); \
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   }), 0)

* Fix warning: ‘memset’ used with length equal to number of elements warning

Fix similar warnings to these by including the element size into total size
calculation.

src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableW/test1/test.cpp: In function ‘int main(int, char**)’:
src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableW/test1/test.cpp:89:31: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
     memset(NewValue,0,BUF_SIZE);

* Define CLR specific compiler option CLR_CMAKE_COMPILER

By the time toolchain.cmake is called, the compiler detection from
cmake is not active. We need an intermediate definition to pass
to compiler detection.

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

5 years agoFix GCSample bit rot (dotnet/coreclr#22462)
Jan Kotas [Thu, 7 Feb 2019 18:17:45 +0000 (10:17 -0800)]
Fix GCSample bit rot (dotnet/coreclr#22462)

Fixes dotnet/coreclr#22459

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

5 years agoMerge pull request dotnet/coreclr#22435 from echesakovMSFT/TreatCLRTestExecutionArgum...
Egor Chesakov [Thu, 7 Feb 2019 17:58:32 +0000 (09:58 -0800)]
Merge pull request dotnet/coreclr#22435 from echesakovMSFT/TreatCLRTestExecutionArgumentsAsAnArrayInBash

Treat CLRTestExecutionArguments as an array in generated Bash scripts

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

5 years agoFixing Utf8Formatter.Float to support all the same format specifiers as the utf16...
Tanner Gooding [Thu, 7 Feb 2019 17:12:08 +0000 (09:12 -0800)]
Fixing Utf8Formatter.Float to support all the same format specifiers as the utf16 formatter. (dotnet/coreclr#22434)

* Fixing Utf8Formatter.Float to support all the same format specifiers as the utf16 formatter.

* Disabling some outdated CoreFX tests.

* Fixing TryFormatFloatingPoint to special-case format.IsDefault

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

5 years agoFix delegate creation for default interface methods on structs (dotnet/coreclr#22427)
Michal Strehovský [Thu, 7 Feb 2019 16:48:09 +0000 (17:48 +0100)]
Fix delegate creation for default interface methods on structs (dotnet/coreclr#22427)

We only need to find an unboxing stub if we resolved the interface to a valuetype method. If we resolved to a default interface method implementation, unboxing is not necessary.

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

5 years agoCleanup LLVM assumption (dotnet/coreclr#22456)
Sinan Kaya [Thu, 7 Feb 2019 09:28:29 +0000 (04:28 -0500)]
Cleanup LLVM assumption (dotnet/coreclr#22456)

We want to support GNU compilation for CoreCLR. Luckily both LLVM
and GNU compilers define __GNUC__ and there are a lot of things
they can share.

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

5 years agoFix CoreLib to include PasteArguments.Unix.cs correctly (dotnet/coreclr#22453)
Stephen Toub [Thu, 7 Feb 2019 03:37:31 +0000 (22:37 -0500)]
Fix CoreLib to include PasteArguments.Unix.cs correctly (dotnet/coreclr#22453)

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

5 years agoMove Array to shared partition (dotnet/coreclr#22321)
Marek Safar [Thu, 7 Feb 2019 03:36:45 +0000 (04:36 +0100)]
Move Array to shared partition (dotnet/coreclr#22321)

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

5 years agoImplement ManifestBasedResourceGroveler::GetNeutralResourcesLanguageAttribute (dotnet...
Marek Safar [Thu, 7 Feb 2019 03:34:48 +0000 (04:34 +0100)]
Implement ManifestBasedResourceGroveler::GetNeutralResourcesLanguageAttribute (dotnet/coreclr#22372)

* Implement ManifestBasedResourceGroveler::GetNeutralResourcesLanguageAttribute in shared managed code

* Remove native ::GetNeutralResourcesLanguage

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

5 years agoFix ARM64 GS with localloc
Bruce Forstall [Fri, 11 Jan 2019 01:06:49 +0000 (17:06 -0800)]
Fix ARM64 GS with localloc

Currently, all frame types place saved FP/LR at low addresses on the
frame, below the GS cookie. If a function has localloc, the dynamically
allocate and unsafe buffer will be lower than the saved FP/LR and
not the GS cookie won't properly protect the saved FP/LR.

This change introduces new frame types, used only for functions needing
a GS cookie and using localloc, saving FP/LR along with the rest of
the callee-saved registers at the top (highest addresses) of the frame,
above the GS cookie.

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

5 years agoIndex and Range updates (dotnet/coreclr#22331)
Tarek Mahmoud Sayed [Wed, 6 Feb 2019 23:15:46 +0000 (15:15 -0800)]
Index and Range updates (dotnet/coreclr#22331)

* Index and Range updates

* Address @mikedn  feedback

* Address Feedback

* more feedback

* Use Deconstruct in Range.GetOffsetAndLength

* Rename GetArrayRange to GetSubArray

* Temporary disable the old Corefx Range tests

* Return back the TimeSpan test disabling

* Fix Range jit test

* Exclude the jit test

* revert the changes in the jit Range test

* Address Suggested Feedback

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

5 years agoMerge pull request dotnet/coreclr#22450 from BruceForstall/DisableFlakySystemNetTests
Bruce Forstall [Wed, 6 Feb 2019 21:51:30 +0000 (13:51 -0800)]
Merge pull request dotnet/coreclr#22450 from BruceForstall/DisableFlakySystemNetTests

Disable flaky Linux/arm64 corefx System.Net.Sockets.Tests

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

5 years agoThrow an exception when passing strings by-value as out parameters. (dotnet/coreclr...
Jeremy Koritzinsky [Wed, 6 Feb 2019 21:05:28 +0000 (13:05 -0800)]
Throw an exception when passing strings by-value as out parameters. (dotnet/coreclr#21513)

* Throw an exception when passing strings by-value as out parameters.

* Fix encoding

* Don't use override in this PR.

* Clean up Marshal_In

Marshal_In was copied back into existence from Marshal_InOut. Clean it up a bit.

* Remove extraneous whitespace.

* Fix failing test.

* Remove out attribute in COM string tests.

* Add back attribute and check for exception thow in COM tests.

* Add block comment to explain the implementation of Reverse_LPWStr_OutAttr in the NETServer.

* Only throw in a CLR->Native marshalling situation.

* Fix asserts from changed code-paths used in ILWSTRMarshaler.

* Add comment and explicitly load in a null value (instead of leaving it uninitialized).

* Apply suggestions from code review

Co-Authored-By: jkoritzinsky <jkoritzinsky@gmail.com>
Co-authored-by: Jan Vorlicek <janvorli@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/2f88f32ffb6752c89e6751b4747f1b9cd971304d

5 years agoAllow lcl_var structs to be widened to primitive types on unix amd64. (dotnet/coreclr...
Jarret Shook [Wed, 6 Feb 2019 21:00:54 +0000 (13:00 -0800)]
Allow lcl_var structs to be widened to primitive types on unix amd64. (dotnet/coreclr#22437)

* Allow lcl_var structs to be widened to primitive types on unix amd64. The already happens on armarch

* Apply format patch

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

5 years agoDisable flaky Linux/arm64 corefx System.Net.Sockets.Tests
Bruce Forstall [Wed, 6 Feb 2019 20:33:43 +0000 (12:33 -0800)]
Disable flaky Linux/arm64 corefx System.Net.Sockets.Tests

Tracking: https://github.com/dotnet/coreclr/issues/21576

In general, any System.Net test that exhibits flakiness should be
disabled; we pay more in flakiness than we gain in coverage.

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

5 years agoTreat $(CLRTestExecutionArguments) as an array in Bash
Egor Chesakov [Tue, 5 Feb 2019 02:33:25 +0000 (18:33 -0800)]
Treat $(CLRTestExecutionArguments) as an array in Bash

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

5 years agoEnable baseservices/threading/paramthreadstart/ThreadStartString_1
Egor Chesakov [Tue, 5 Feb 2019 19:20:52 +0000 (11:20 -0800)]
Enable baseservices/threading/paramthreadstart/ThreadStartString_1

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

5 years agoAdd option to run tests in unloadable context (dotnet/coreclr#22332)
Jan Vorlicek [Wed, 6 Feb 2019 11:23:08 +0000 (12:23 +0100)]
Add option to run tests in unloadable context (dotnet/coreclr#22332)

This change adds new "runincontext" option to the tests/runtest.cmd that
allows running tests inside of an unloadable AssemblyLoadContext.
It also adds new property that allows tests to be marked as incompatible
with running this way. All known tests that have such issue are marked
in this PR too.

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

5 years agoMerge pull request dotnet/coreclr#22433 from BruceForstall/DisableFailingLinuxArm64Test
Bruce Forstall [Wed, 6 Feb 2019 07:27:07 +0000 (23:27 -0800)]
Merge pull request dotnet/coreclr#22433 from BruceForstall/DisableFailingLinuxArm64Test

Disable failing constrainedcall test

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

5 years agoMerge pull request dotnet/coreclr#22438 from BruceForstall/DisableFailingXarchTests
Bruce Forstall [Wed, 6 Feb 2019 07:26:18 +0000 (23:26 -0800)]
Merge pull request dotnet/coreclr#22438 from BruceForstall/DisableFailingXarchTests

Disable failing BestFitMapping tests

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

5 years agoMerge pull request dotnet/coreclr#22439 from BruceForstall/DisableWaitOne2
Bruce Forstall [Wed, 6 Feb 2019 07:24:53 +0000 (23:24 -0800)]
Merge pull request dotnet/coreclr#22439 from BruceForstall/DisableWaitOne2

Disable baseservices\threading\mutex\misc\waitone2 test

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

5 years agoMerge pull request dotnet/coreclr#22444 from BruceForstall/DisableGThread23
Bruce Forstall [Wed, 6 Feb 2019 07:24:01 +0000 (23:24 -0800)]
Merge pull request dotnet/coreclr#22444 from BruceForstall/DisableGThread23

Disable GThread23 test

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

5 years agoDisable GThread23 test
Bruce Forstall [Wed, 6 Feb 2019 03:00:16 +0000 (19:00 -0800)]
Disable GThread23 test

It fails regularly though randomly in the CI.

Tracking issue: https://github.com/dotnet/coreclr/issues/19339

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

5 years agoDisable failing constrainedcall test on Linux
Bruce Forstall [Tue, 5 Feb 2019 21:13:05 +0000 (13:13 -0800)]
Disable failing constrainedcall test on Linux

Tracked by https://github.com/dotnet/coreclr/issues/22423

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

5 years agoDisable baseservices\threading\mutex\misc\waitone2 test
Bruce Forstall [Wed, 6 Feb 2019 01:15:35 +0000 (17:15 -0800)]
Disable baseservices\threading\mutex\misc\waitone2 test

This test has been failing randomly in the CI on all architectures
for a long, long time.

Tracking issue: https://github.com/dotnet/coreclr/issues/6397

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

5 years agoDisable failing BestFitMapping tests
Bruce Forstall [Wed, 6 Feb 2019 00:55:30 +0000 (16:55 -0800)]
Disable failing BestFitMapping tests

Tests:
```
Interop\PInvoke\BestFitMapping\Char\AFT_PFT\AFT_PFT\AFT_PFT.cmd
Interop\PInvoke\BestFitMapping\Char\Assembly_False_False\Assembly_False_False\Assembly_False_False.cmd
Interop\PInvoke\BestFitMapping\LPStr\AFT_PFT\AFT_PFT\AFT_PFT.cmd
Interop\PInvoke\BestFitMapping\LPStr\Assembly_False_False\Assembly_False_False\Assembly_False_False.cmd
```

Tracked by https://github.com/dotnet/coreclr/issues/22436

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

5 years agoMerge pull request dotnet/coreclr#22431 from BruceForstall/DisableCorefxFailingTests
Bruce Forstall [Tue, 5 Feb 2019 21:27:21 +0000 (13:27 -0800)]
Merge pull request dotnet/coreclr#22431 from BruceForstall/DisableCorefxFailingTests

Disable failing Linux/arm64 corefx tests

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

5 years agoMerge pull request dotnet/coreclr#22432 from BruceForstall/DisableWindowsArm64CorefxC...
Bruce Forstall [Tue, 5 Feb 2019 20:46:35 +0000 (12:46 -0800)]
Merge pull request dotnet/coreclr#22432 from BruceForstall/DisableWindowsArm64CorefxCronJobs

Disable Windows arm64 corefx cron jobs

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

5 years agoFix ProjectN build breaks (dotnet/corertdotnet/coreclr#6954)
Michal Strehovský [Tue, 5 Feb 2019 17:03:52 +0000 (18:03 +0100)]
Fix ProjectN build breaks (dotnet/corertdotnet/coreclr#6954)

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/e6edc905275636d56eed4e88b94b71eecbf8ba74

5 years agoAvoid duplicate tree lookup in GetCollatorFromSortHandle (dotnet/coreclr#22390)
Filip Navara [Tue, 5 Feb 2019 20:29:01 +0000 (21:29 +0100)]
Avoid duplicate tree lookup in GetCollatorFromSortHandle (dotnet/coreclr#22390)

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

5 years agoMerge pull request dotnet/coreclr#22425 from BruceForstall/UploadMsbuildLogs
Bruce Forstall [Tue, 5 Feb 2019 20:24:19 +0000 (12:24 -0800)]
Merge pull request dotnet/coreclr#22425 from BruceForstall/UploadMsbuildLogs

Configure MSBuild debug path and save any logs

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

5 years agoDisable Windows arm64 corefx cron jobs
Bruce Forstall [Tue, 5 Feb 2019 20:03:26 +0000 (12:03 -0800)]
Disable Windows arm64 corefx cron jobs

These currently all fail with timeout. They also take way too much time
to run. We have good Linux/arm64 corefx test coverage already.

The issue of these runs being slow is tracked by
https://github.com/dotnet/coreclr/issues/21236.

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

5 years agoMerge pull request dotnet/coreclr#22415 from adityamandaleeka/pinvoke_eh
Aditya Mandaleeka [Tue, 5 Feb 2019 20:21:50 +0000 (12:21 -0800)]
Merge pull request dotnet/coreclr#22415 from adityamandaleeka/pinvoke_eh

Disable PInvoke inlining within try regions on ARM64

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

5 years agoUse Jenkins for Linux/arm32 testing (dotnet/coreclr#22429)
Egor Chesakov [Tue, 5 Feb 2019 20:04:40 +0000 (12:04 -0800)]
Use Jenkins for Linux/arm32 testing (dotnet/coreclr#22429)

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

5 years agoDisable failing Linux/arm64 corefx tests
Bruce Forstall [Tue, 5 Feb 2019 19:52:22 +0000 (11:52 -0800)]
Disable failing Linux/arm64 corefx tests

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

5 years agoMerge pull request dotnet/coreclr#22421 from BruceForstall/RestrictArm64XunitParallelism
Bruce Forstall [Tue, 5 Feb 2019 19:04:07 +0000 (11:04 -0800)]
Merge pull request dotnet/coreclr#22421 from BruceForstall/RestrictArm64XunitParallelism

Restrict arm64 parallelism to collections

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

5 years agoMerge pull request dotnet/coreclr#22416 from BruceForstall/FixRunTestOutput
Bruce Forstall [Tue, 5 Feb 2019 19:02:50 +0000 (11:02 -0800)]
Merge pull request dotnet/coreclr#22416 from BruceForstall/FixRunTestOutput

Fix runtest.py output

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

5 years agoCorrectly error out gracefully on setup-stress-dependencies when libcoredistools...
Jeremy Koritzinsky [Tue, 5 Feb 2019 18:38:57 +0000 (10:38 -0800)]
Correctly error out gracefully on setup-stress-dependencies when libcoredistools isn't available. (dotnet/coreclr#22357)

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

5 years agoNotify dac when prejitted code is going to be used for a method (dotnet/coreclr#22296)
Andy Ayers [Tue, 5 Feb 2019 08:43:23 +0000 (00:43 -0800)]
Notify dac when prejitted code is going to be used for a method (dotnet/coreclr#22296)

This allows sos bpmd breakpoints to work on prejitted methods.

Closes dotnet/coreclr#22265.

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

5 years agoAdd draft default interface methods specification (dotnet/coreclr#21564)
Michal Strehovský [Tue, 5 Feb 2019 08:03:49 +0000 (09:03 +0100)]
Add draft default interface methods specification (dotnet/coreclr#21564)

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

5 years agoFix marshalling UTF8 string struct member from native to managed. (dotnet/coreclr...
Jeremy Koritzinsky [Tue, 5 Feb 2019 06:16:43 +0000 (22:16 -0800)]
Fix marshalling UTF8 string struct member from native to managed. (dotnet/coreclr#22408)

* Fix marshalling UTF8 string struct member from native to managed.

Fixes dotnet/coreclr#22394

* PR Feedback.

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

5 years agoExtract addressing mode analysis from gtSetEvalOrder (dotnet/coreclr#22387)
Carol Eidt [Tue, 5 Feb 2019 05:49:25 +0000 (21:49 -0800)]
Extract addressing mode analysis from gtSetEvalOrder (dotnet/coreclr#22387)

* Extract addressing mode analysis from gtSetEvalOrder

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

5 years agoMerge pull request dotnet/coreclr#22417 from BruceForstall/ExtractRuntestTimeout
Bruce Forstall [Tue, 5 Feb 2019 04:37:18 +0000 (20:37 -0800)]
Merge pull request dotnet/coreclr#22417 from BruceForstall/ExtractRuntestTimeout

Extract setting __TestTimeout in runtest.py

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

5 years agoFix string.strlen (dotnet/coreclr#22397)
Ben Adams [Tue, 5 Feb 2019 04:04:30 +0000 (05:04 +0100)]
Fix string.strlen (dotnet/coreclr#22397)

* Add explanation comment

Fixes dotnet/coreclr#22393

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

5 years agoMove SynchronizationContext to shared partition (dotnet/coreclr#22389)
Marek Safar [Tue, 5 Feb 2019 03:43:10 +0000 (04:43 +0100)]
Move SynchronizationContext to shared partition (dotnet/coreclr#22389)

* Move SynchronizationContext to shared partition

* Move WaitHelperNative to WaitHandle

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

5 years agoConfigure MSBuild debug path and save any logs
Bruce Forstall [Tue, 5 Feb 2019 03:00:39 +0000 (19:00 -0800)]
Configure MSBuild debug path and save any logs

We have had many problems in the CI with MSBuild failing, and not
capturing the failure logs.

See https://github.com/dotnet/coreclr/issues/20236.

So, for all msbuild invocations, set MSBUILDDEBUGPATH to a new,
distinguished, subdirectory of the bin\Logs directory, named
"MsbuildDebugLogs". Change the CI to upload any log files found
there.

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

5 years agoFix runtest.py output
Bruce Forstall [Mon, 4 Feb 2019 23:20:09 +0000 (15:20 -0800)]
Fix runtest.py output

1. Fix extra newline output
2. Remove extra output of failed logs
3. Catch errors with Unicode conversion

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

5 years agoRestrict arm64 parallelism to collections
Bruce Forstall [Tue, 5 Feb 2019 00:21:43 +0000 (16:21 -0800)]
Restrict arm64 parallelism to collections

Attempt to reduce test timeout failures by restricting test parallelism.

Attempts to address https://github.com/dotnet/coreclr/issues/22419

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

5 years agoHandle SPC in GetLoadContext
Steve MacLean [Mon, 4 Feb 2019 18:36:52 +0000 (13:36 -0500)]
Handle SPC in GetLoadContext

GetBindingContext() returns NULL for System.Private.CoreLib.  Add support
for this special case.

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

5 years agoExtract setting __TestTimeout
Bruce Forstall [Mon, 4 Feb 2019 23:41:29 +0000 (15:41 -0800)]
Extract setting __TestTimeout

Avoid setting or reporting setting it twice

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

5 years agoRe-enable tests blocked by 21964.
Aditya Mandaleeka [Mon, 4 Feb 2019 23:21:05 +0000 (15:21 -0800)]
Re-enable tests blocked by 21964.

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

5 years agoDisable PInvoke inlining within try regions on ARM64.
Aditya Mandaleeka [Mon, 4 Feb 2019 23:12:33 +0000 (15:12 -0800)]
Disable PInvoke inlining within try regions on ARM64.

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

5 years agoMerge pull request dotnet/coreclr#22411 from BruceForstall/AlwaysArchiveLogs
Bruce Forstall [Mon, 4 Feb 2019 22:38:12 +0000 (14:38 -0800)]
Merge pull request dotnet/coreclr#22411 from BruceForstall/AlwaysArchiveLogs

Always archive build logs

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

5 years agoAlways archive build logs
Bruce Forstall [Mon, 4 Feb 2019 21:30:12 +0000 (13:30 -0800)]
Always archive build logs

Even if the build fails. Add archiving in more cases where it was missing.

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

5 years agoDisable JIT/SIMD/Vector3Interop_ro on x64 Unix platforms
Egor Chesakov [Mon, 4 Feb 2019 17:54:47 +0000 (09:54 -0800)]
Disable JIT/SIMD/Vector3Interop_ro on x64 Unix platforms

Related issue: https://github.com/dotnet/coreclr/issues/22401

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

5 years agoDisable JIT/Regression/CLR-x86-JIT/v2.1/b152292 on all Unix platforms
Egor Chesakov [Mon, 4 Feb 2019 17:45:38 +0000 (09:45 -0800)]
Disable JIT/Regression/CLR-x86-JIT/v2.1/b152292 on all Unix platforms

Related issue: https://github.com/dotnet/coreclr/issues/20358

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

5 years agoMore compact implementation of Marshal.GenerateProgIdForType (dotnet/coreclr#22395)
Jan Kotas [Mon, 4 Feb 2019 19:36:06 +0000 (11:36 -0800)]
More compact implementation of Marshal.GenerateProgIdForType (dotnet/coreclr#22395)

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

5 years agoReenable corefx System.Linq.Expressions.Tests. (dotnet/coreclr#22362)
Sergey Andreenko [Mon, 4 Feb 2019 19:13:24 +0000 (11:13 -0800)]
Reenable  corefx System.Linq.Expressions.Tests. (dotnet/coreclr#22362)

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

5 years agoDelete exclusions that reference fixed issues. (dotnet/coreclr#22355)
Sergey Andreenko [Mon, 4 Feb 2019 17:45:03 +0000 (09:45 -0800)]
Delete exclusions that reference fixed issues. (dotnet/coreclr#22355)

* Delete exclusions for the issue that were fixed.

* Change the issue number for ThreadStartString_1

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

5 years agoFix arm32 unwind for large methods (dotnet/coreclr#22381)
Andy Ayers [Mon, 4 Feb 2019 16:47:48 +0000 (08:47 -0800)]
Fix arm32 unwind for large methods (dotnet/coreclr#22381)

* Fix arm32 unwind for large methods

For arm32, the unwinder bails out with an error if the method offset is not
within the fragment range. And the jit copies prolog unwind codes to all
fragments, so there's no need to walk back and find the root unwind record.

Closes dotnet/coreclr#22260.

* re-enable test

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

5 years agoRemove code that was moved to System.Native (dotnet/corertdotnet/coreclr#6932)
Filip Navara [Mon, 4 Feb 2019 13:09:20 +0000 (14:09 +0100)]
Remove code that was moved to System.Native (dotnet/corertdotnet/coreclr#6932)

* Remove code that was already moved from System.Private.CoreLib.Native to System.Native.

* Move Interop files for System.Native to shared Interop directory.

* Add FeaturePortableThreadPool conditions to csproj files.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/cee7a5596992f2c25a262c1f081d29c2951cac19

5 years agoMerge pull request dotnet/coreclr#22378 from filipnavara/native_cpp_to_C
Jan Kotas [Mon, 4 Feb 2019 04:33:56 +0000 (20:33 -0800)]
Merge pull request dotnet/coreclr#22378 from filipnavara/native_cpp_to_C

Convert System.Globalization.Native to C

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