platform/upstream/coreclr.git
8 years agoMerge pull request #1490 from BruceForstall/FixILTests
Matt Mitchell [Fri, 4 Sep 2015 16:44:02 +0000 (09:44 -0700)]
Merge pull request #1490 from BruceForstall/FixILTests

Fix IL JIT tests

8 years agoMerge pull request #1492 from benjamin-hodgson/patch-1
Jan Kotas [Fri, 4 Sep 2015 12:13:43 +0000 (05:13 -0700)]
Merge pull request #1492 from benjamin-hodgson/patch-1

Fix link to API review process documentation

8 years agoMerge pull request #1489 from kangaroo/arm-clang-fixes
Jan Kotas [Fri, 4 Sep 2015 12:12:42 +0000 (05:12 -0700)]
Merge pull request #1489 from kangaroo/arm-clang-fixes

[arm] Fix RtlRestoreContext on ARM with newer clang

8 years agoFix link to API review process documentation
Benjamin Hodgson [Fri, 4 Sep 2015 10:57:44 +0000 (11:57 +0100)]
Fix link to API review process documentation

8 years ago[arm] Fix RtlRestoreContext on ARM with newer clang
Geoff Norton [Fri, 4 Sep 2015 03:26:34 +0000 (03:26 +0000)]
[arm] Fix RtlRestoreContext on ARM with newer clang

8 years agoMore System.Console IL test cleanup
Bruce Forstall [Fri, 4 Sep 2015 04:19:49 +0000 (21:19 -0700)]
More System.Console IL test cleanup

8 years agoFix more System.Console references
Bruce Forstall [Fri, 4 Sep 2015 01:42:49 +0000 (18:42 -0700)]
Fix more System.Console references

8 years agoAdd System.Console references and replace usages with [System.Console]
Bruce Forstall [Fri, 4 Sep 2015 00:36:18 +0000 (17:36 -0700)]
Add System.Console references and replace usages with [System.Console]

8 years agoCanonicalize appearance of empty mscorlib assembly references in .il tests
Bruce Forstall [Fri, 4 Sep 2015 00:14:24 +0000 (17:14 -0700)]
Canonicalize appearance of empty mscorlib assembly references in .il tests

8 years agoMerge pull request #1486 from AndyAyersMS/FixWarnings
Andy Ayers [Thu, 3 Sep 2015 22:26:21 +0000 (15:26 -0700)]
Merge pull request #1486 from AndyAyersMS/FixWarnings

Fix compilation warnings in gcinfoencoder.

8 years agoFix compilation warnings in gcinfoencoder.
Andy Ayers [Thu, 3 Sep 2015 21:11:36 +0000 (14:11 -0700)]
Fix compilation warnings in gcinfoencoder.

Add fake uses for two variables referenced only in asserts.

8 years agoMerge pull request #1483 from adityamandaleeka/unused_pc_functions
Aditya Mandaleeka [Thu, 3 Sep 2015 21:00:36 +0000 (14:00 -0700)]
Merge pull request #1483 from adityamandaleeka/unused_pc_functions

Fix warnings about Get/SetPc functions

8 years agoMerge pull request #1481 from mmitche/fix-strike-build-arm-cross
Matt Mitchell [Thu, 3 Sep 2015 20:17:38 +0000 (13:17 -0700)]
Merge pull request #1481 from mmitche/fix-strike-build-arm-cross

Fix the SOS strike build on arm/arm64 cross

8 years agoMerge pull request #1451 from Priya91/longpath
Lakshmi Priya [Thu, 3 Sep 2015 19:32:18 +0000 (12:32 -0700)]
Merge pull request #1451 from Priya91/longpath

Replace MAX_PATH defines with new defines in pal.

8 years agoFix warnings about Get/SetPc functions
Aditya Mandaleeka [Thu, 3 Sep 2015 19:01:13 +0000 (12:01 -0700)]
Fix warnings about Get/SetPc functions

8 years agoFix the SOS strike build on arm/arm64 cross
Matt Mitchell [Thu, 3 Sep 2015 17:33:33 +0000 (10:33 -0700)]
Fix the SOS strike build on arm/arm64 cross

Fix wrong casing for filename and remove bailing for non-x64

8 years agoMerge pull request #1479 from mmitche/fix-package-issues
Matt Mitchell [Thu, 3 Sep 2015 16:24:20 +0000 (09:24 -0700)]
Merge pull request #1479 from mmitche/fix-package-issues

Package updates and fixes

8 years agoFix directory longname test failures on Linux.
Lakshmi Priya Sekar [Tue, 1 Sep 2015 00:23:01 +0000 (17:23 -0700)]
Fix directory longname test failures on Linux.

8 years agoPackage updates and fixes
Matt Mitchell [Wed, 2 Sep 2015 23:18:14 +0000 (16:18 -0700)]
Package updates and fixes
1) Float package versions
2) Change readytorun packages to use project.json.  The versions that were referenced in the packages.config didn't actually exist anyway, and on machines with cleaner caches, might cause a build breka
3) Lock SIMD packages

8 years agoMerge pull request #1450 from ww898/build_with_spaces
Matt Mitchell [Wed, 2 Sep 2015 15:07:32 +0000 (08:07 -0700)]
Merge pull request #1450 from ww898/build_with_spaces

Update build.cmd to support spaces in coreclr checkout directory

8 years agoMerge pull request #1472 from ellismg/cleanup-msbuild-build-args
Matt Mitchell [Wed, 2 Sep 2015 15:06:51 +0000 (08:06 -0700)]
Merge pull request #1472 from ellismg/cleanup-msbuild-build-args

Fix release build of mscorlib from build.sh

8 years agoMerge pull request #1471 from mikem8361/modenumosx
Mike McLaughlin [Wed, 2 Sep 2015 02:45:16 +0000 (19:45 -0700)]
Merge pull request #1471 from mikem8361/modenumosx

Added process module enumeration for OSx.

8 years agoChanged popen to execute "/usr/bin/vmmap".
Mike McLaughlin [Wed, 2 Sep 2015 02:42:36 +0000 (19:42 -0700)]
Changed popen to execute "/usr/bin/vmmap".

8 years agoMerge pull request #1470 from dotnet-bot/from-tfs
Matt Ellis [Wed, 2 Sep 2015 00:03:27 +0000 (17:03 -0700)]
Merge pull request #1470 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoMerge pull request #1464 from gitchomik/patch-1
Matt Ellis [Wed, 2 Sep 2015 00:02:43 +0000 (17:02 -0700)]
Merge pull request #1464 from gitchomik/patch-1

Update linux-instructions.md

8 years agoAdded process module enumeration for OSx.
Mike McLaughlin [Sat, 29 Aug 2015 00:51:53 +0000 (17:51 -0700)]
Added process module enumeration for OSx.

Enable building dbi and dbgshim on OSx. Cache the process module list in the local process data because EnumProcessModules/GetModuleFileNameExW are called by dbgshim a lot and building the list every time really affected performance especially on OSx.

8 years agoFix release build of mscorlib from build.sh
Matt Ellis [Tue, 1 Sep 2015 22:17:54 +0000 (15:17 -0700)]
Fix release build of mscorlib from build.sh

The mscorlib build in build.sh was not correctly flowing __BuildType
into MSBuild, which caused us to always build a Debug mscorlib.

While I was in the area, I removed the defines for OSGroup (which are
unused, as we use __BuildOS instead) and cleaned up some of the property
switches so we always pass prefixed properties (the bare names are the
computed ones from our targets in msbuild).

8 years agoMerge pull request #1469 from mikem8361/freebsdfix
Mike McLaughlin [Tue, 1 Sep 2015 21:10:21 +0000 (14:10 -0700)]
Merge pull request #1469 from mikem8361/freebsdfix

Fix FreeBSD build after merge of my changes from the ProjectK branch.

8 years agoMerge pull request #1458 from ANDREENKOS/SIMDTests
Pat Gavlin [Tue, 1 Sep 2015 18:33:15 +0000 (11:33 -0700)]
Merge pull request #1458 from ANDREENKOS/SIMDTests

delete fixed tests from issue list

8 years agoFix FreeBSD build after merge of my changes from the ProjectK branch.
Mike McLaughlin [Tue, 1 Sep 2015 16:47:47 +0000 (09:47 -0700)]
Fix FreeBSD build after merge of my changes from the ProjectK branch.

8 years agoMerge pull request #1467 from janvorli/fix-curl-pinvoke
Stephen Toub [Tue, 1 Sep 2015 14:54:41 +0000 (10:54 -0400)]
Merge pull request #1467 from janvorli/fix-curl-pinvoke

Fix PInvokes into libraries using pthread locks

8 years agoFix pthread locks initialization issue
Jan Vorlicek [Tue, 1 Sep 2015 11:25:55 +0000 (13:25 +0200)]
Fix pthread locks initialization issue

This change fixes a problem on Linux when pinvoke loads a shared library and
that library transitively uses pthread locks. In that case, the locks may
not be initialized yet and behave as nops, causing the thread synchronization
to not to work.
Linking corerun / coreconsole with pthreads ensures that the locks are always
properly initialized.

8 years ago The UPDATE_CONTEXT_POINTERS actually breaks lots of debuggers tests. The root probl...
Zhicheng Zhu [Tue, 1 Sep 2015 03:03:00 +0000 (20:03 -0700)]
 The UPDATE_CONTEXT_POINTERS actually breaks lots of debuggers tests.  The root problem is that when arm unwind the stack, we will call this function
     hr = RtlpUnwindFunctionFull(pContext->Pc - (ULONG)ImageBase,
                                         (ULONG)ImageBase,
                                         &Rfe,
                                         pContext,
                                         &DummyEstablisherFrame,
                                         &DummyHandlerRoutine,
                                         &DummyHandlerData,
                                         NULL);  <-- UnwindParams

     This will set UnwindParams as NULL, and eventually passed to UPDATE_CONTEXT_POINTERS and UPDATE_FP_CONTEXT_POINTERS in RtlpPopRegisterMask. This will generate the AV.
     The fix is just simply checking the whether the Params is NULL or not.

[tfs-changeset: 1520758]

8 years agoFix the build break caused by my recent xplat SOS changes.
Mike McLaughlin [Mon, 31 Aug 2015 20:24:29 +0000 (13:24 -0700)]
Fix the build break caused by my recent xplat SOS changes.

[tfs-changeset: 1520601]

8 years agoUpdate linux-instructions.md
gitchomik [Mon, 31 Aug 2015 19:39:11 +0000 (21:39 +0200)]
Update linux-instructions.md

Added information about Native Components in runtime directory

8 years agodelete fixed tests from issue list
Sergey Andreenko [Fri, 28 Aug 2015 20:58:18 +0000 (13:58 -0700)]
delete fixed tests from issue list

According to https://github.com/dotnet/corefx/pull/2971 remove tests
that were affected by https://github.com/dotnet/coreclr/issues/1441 from
issues.

8 years agoRespond to PR feedback.
Lakshmi Priya Sekar [Fri, 28 Aug 2015 20:46:30 +0000 (13:46 -0700)]
Respond to PR feedback.

8 years agoMerge pull request #1455 from janvorli/ready-to-run-tests-2
Jan Vorlicek [Fri, 28 Aug 2015 19:28:21 +0000 (21:28 +0200)]
Merge pull request #1455 from janvorli/ready-to-run-tests-2

Ensure ReadyToRun test verifies version resiliency

8 years agoEnsure ReadyToRun test verifies version resiliency
Jan Vorlicek [Fri, 28 Aug 2015 10:12:28 +0000 (12:12 +0200)]
Ensure ReadyToRun test verifies version resiliency

This change modifies the ReadyToRun test so that it verifies assembly version resiliency.

8 years agoMerge pull request #1446 from benpye/arm-regression-fix
Jan Kotas [Fri, 28 Aug 2015 04:29:00 +0000 (21:29 -0700)]
Merge pull request #1446 from benpye/arm-regression-fix

Fix build regression for ARM.

8 years agoMerge pull request #1442 from mikem8361/cmdaliases
Mike McLaughlin [Fri, 28 Aug 2015 01:40:22 +0000 (18:40 -0700)]
Merge pull request #1442 from mikem8361/cmdaliases

Enabled GCInfo, EEHeap, DumpRuntimeTypes and EHInfo SOS commands

8 years agoReplace MAX_PATH defines with new defines in pal.
Lakshmi Priya Sekar [Fri, 28 Aug 2015 00:46:38 +0000 (17:46 -0700)]
Replace MAX_PATH defines with new defines in pal.

8 years agoMerge pull request #1449 from Priya91/longpath-binder
Lakshmi Priya [Thu, 27 Aug 2015 23:42:55 +0000 (16:42 -0700)]
Merge pull request #1449 from Priya91/longpath-binder

Replace missed MAX_PATH defines with new defines in vm.

8 years agoEnabled GCInfo, EEHeap, DumpRuntimeTypes and EHInfo SOS commands.
Mike McLaughlin [Thu, 20 Aug 2015 22:43:16 +0000 (15:43 -0700)]
Enabled GCInfo, EEHeap, DumpRuntimeTypes and EHInfo SOS commands.

Added some aliases for the most common commands:

    bpmd            -> sos bpmd
    clrstack        -> sos ClrStack
    clrthreads      -> sos Threads
    dumpheap        -> sos DumpHeap
    dumpobj         -> sos DumpObj
    dso             -> sos DumpStackObjects
    eeheap          -> sos EEHeap
    gcroot          -> sos GCRoot
    ip2md           -> sos IP2MD
    printexception  -> sos PrintException

Updated the debugging documentation.

Remove the "build.out" file unintentionally added.

8 years agoMerge pull request #1406 from ANDREENKOS/SIMDTests
Pat Gavlin [Thu, 27 Aug 2015 21:31:43 +0000 (14:31 -0700)]
Merge pull request #1406 from ANDREENKOS/SIMDTests

SIMD tests

8 years agoMerge pull request #1439 from kouvel/PalErrorOnNamedSyncObject
Koundinya Veluri [Thu, 27 Aug 2015 20:32:05 +0000 (13:32 -0700)]
Merge pull request #1439 from kouvel/PalErrorOnNamedSyncObject

Return error upon attemping to create named objects in PAL

8 years agoUpdate build.cmd to support spaces in clerclr checkout directory
Mikhail Pilin [Thu, 27 Aug 2015 19:27:21 +0000 (21:27 +0200)]
Update build.cmd to support spaces in clerclr checkout directory

8 years agoReplace missed MAX_PATH defines with new defines in vm.
Lakshmi Priya Sekar [Thu, 27 Aug 2015 18:24:07 +0000 (11:24 -0700)]
Replace missed MAX_PATH defines with new defines in vm.

8 years agoMerge pull request #1445 from LLITCHEV/master
Lubomir Litchev [Thu, 27 Aug 2015 17:47:05 +0000 (10:47 -0700)]
Merge pull request #1445 from LLITCHEV/master

Fix for ref counting issue introduced in a recent optimization.

8 years agoNew tests were added.
Sergey Andreenko [Sat, 22 Aug 2015 04:09:50 +0000 (21:09 -0700)]
New tests were added.

Some new SIMD tests were added, useless were deleted.
Tests, that are affected by issue 1441 are excluded.

mend

8 years agoSIMD tests
Sergey Andreenko [Tue, 18 Aug 2015 00:48:22 +0000 (17:48 -0700)]
SIMD tests

Commit includes SIMD tests of two types:
1) Intrinsic tests, that call functions from RyuJIT SIMD intrinsic list.
2) Bytecode tests, which generate different bytecodes in IL with SIMD
struct.

8 years agoMerge pull request #1205 from benpye/pal-test-junit
Matt Mitchell [Thu, 27 Aug 2015 15:39:16 +0000 (08:39 -0700)]
Merge pull request #1205 from benpye/pal-test-junit

runpaltests.sh outputs a XUnit compatible result file for Jenkins.

8 years agoFix build regression for ARM.
Ben Pye [Thu, 27 Aug 2015 03:27:46 +0000 (04:27 +0100)]
Fix build regression for ARM.

Allow mscorlib.dll to be built for non x64 platforms on Linux.

8 years agoFix for ref counting issue introduced in a recent optimization.
Lubomir Litchev [Thu, 27 Aug 2015 07:08:12 +0000 (00:08 -0700)]
Fix for ref counting issue introduced in a recent optimization.

A recent optimization failed to update references to a LclVar when a
bounds check node and index were intruduced. This change is making sure
the ref count is maintained properly.

8 years agoReturn error upon attemping to create named objects in PAL.
Koundinya Veluri [Fri, 21 Aug 2015 18:43:34 +0000 (11:43 -0700)]
Return error upon attemping to create named objects in PAL.

Update PAL APIs that create named objects (mutex, semaphore, event, file mapping) to return a not-supported error code. It was decided to not support cross-process synchronization in PAL at present time due to complexities involved in reliably emulating Windows' behavior. @stephentoub has already made changes on the FX side to throw PlatformNotSupportedException in these cases.

Related to issue #1237.

8 years agoUse printf instead of non standard -e
Ben Pye [Wed, 26 Aug 2015 23:06:36 +0000 (00:06 +0100)]
Use printf instead of non standard -e

8 years agoTry fixing FreeBSD PAL tests
Ben Pye [Wed, 26 Aug 2015 22:40:33 +0000 (23:40 +0100)]
Try fixing FreeBSD PAL tests

8 years agoMerge pull request #1435 from Priya91/longpath-binder
Lakshmi Priya [Wed, 26 Aug 2015 22:03:10 +0000 (15:03 -0700)]
Merge pull request #1435 from Priya91/longpath-binder

Replace MAX_PATH with new defines in clr\src\binder.

8 years agorunpaltests.sh outputs a XUnit compatible result file for Jenkins.
Ben Pye [Sat, 4 Jul 2015 15:45:48 +0000 (16:45 +0100)]
runpaltests.sh outputs a XUnit compatible result file for Jenkins.

8 years agoMerge pull request #1437 from janvorli/ready-to-run-tests
Jan Vorlicek [Wed, 26 Aug 2015 19:45:35 +0000 (21:45 +0200)]
Merge pull request #1437 from janvorli/ready-to-run-tests

Add ready to run tests

8 years agoAdd ready to run tests
Jan Vorlicek [Mon, 18 May 2015 13:17:53 +0000 (15:17 +0200)]
Add ready to run tests

Add tests to verify ready to run handles versioning correctly.

8 years agoMerge pull request #1436 from janvorli/fix-gc-during-exception-handling-2
Jan Vorlicek [Wed, 26 Aug 2015 13:40:01 +0000 (15:40 +0200)]
Merge pull request #1436 from janvorli/fix-gc-during-exception-handling-2

Fix corner case of GC stack walking during exception handling

8 years agoFix corner case of GC stack walking during exception handling
Jan Vorlicek [Wed, 26 Aug 2015 10:34:25 +0000 (12:34 +0200)]
Fix corner case of GC stack walking during exception handling

This change fixes a corner case of GC stack walking during exception handling
that I have missed in my previous fix. When GC suspends a thread while it is
performing second pass of exception handling, in some cases the previous
exception tracker is already collapsed into the current one and so the
evidence on a frame being a parent of an already executed handler funclet
cannot be extracted from previous trackers and stack walker tries to pass
an outdated reference to GC.
Fortunatelly, the information about the parent from the collapsed tracker
is stored in the tracker into which the collapsed one was merged and
so we can test it using that.

8 years agoMerge pull request #1371 from adityamandaleeka/gcsuspension_2
Aditya Mandaleeka [Wed, 26 Aug 2015 01:34:04 +0000 (18:34 -0700)]
Merge pull request #1371 from adityamandaleeka/gcsuspension_2

Implement GC suspension for Linux [WIP]

8 years agoReplace MAX_PATH with new defines in vm.
Lakshmi Priya Sekar [Tue, 25 Aug 2015 23:19:37 +0000 (16:19 -0700)]
Replace MAX_PATH with new defines in vm.

8 years agoMerge pull request #1434 from kangaroo/pinvoke-stubs
Jan Kotas [Tue, 25 Aug 2015 20:59:38 +0000 (13:59 -0700)]
Merge pull request #1434 from kangaroo/pinvoke-stubs

[amd64] Implement the pinvoke stubs for unix

8 years agoReplace MAX_PATH with new defines.
Lakshmi Priya Sekar [Tue, 25 Aug 2015 20:13:51 +0000 (13:13 -0700)]
Replace MAX_PATH with new defines.

8 years ago[amd64] Implement the pinvoke stubs for unix
Geoff Norton [Tue, 25 Aug 2015 01:30:12 +0000 (18:30 -0700)]
[amd64] Implement the pinvoke stubs for unix

8 years agoDetect whether we interrupted an epilog properly
Aditya Mandaleeka [Tue, 25 Aug 2015 02:24:13 +0000 (19:24 -0700)]
Detect whether we interrupted an epilog properly

8 years agoMerge pull request #1381 from JeremyKuhne/maxpath
Jeremy Kuhne [Tue, 25 Aug 2015 01:18:56 +0000 (18:18 -0700)]
Merge pull request #1381 from JeremyKuhne/maxpath

Run code under long paths on Unix

8 years agoMerge pull request #1428 from jkotas/readytorun-doc
Jan Kotas [Tue, 25 Aug 2015 01:02:28 +0000 (18:02 -0700)]
Merge pull request #1428 from jkotas/readytorun-doc

Add ReadyToRun overview to documentation

8 years agoAdd ReadyToRun overview to documentation
Jan Kotas [Mon, 24 Aug 2015 11:50:43 +0000 (04:50 -0700)]
Add ReadyToRun overview to documentation

8 years agoMerge pull request #1432 from jkotas/rollback-1421
Jan Kotas [Tue, 25 Aug 2015 00:47:23 +0000 (17:47 -0700)]
Merge pull request #1432 from jkotas/rollback-1421

Re-enable JIT test

8 years agoRe-enable JIT test
Jan Kotas [Tue, 25 Aug 2015 00:06:38 +0000 (17:06 -0700)]
Re-enable JIT test

8 years agoRun code under long paths on Unix
Jeremy Kuhne [Wed, 12 Aug 2015 23:36:19 +0000 (16:36 -0700)]
Run code under long paths on Unix

This change allows the happy path for a simple corerun Hello World app.
This is pretty close to the bare minimum needed to run.

Adds a MAX_LONGPATH define for long paths and MAX_PATH_FNAME to use for
places where MAX_PATH is used for something that is trully 260 characters
(usually file names).

8 years agoMerge pull request #1431 from dotnet-bot/from-tfs
Jan Kotas [Mon, 24 Aug 2015 19:49:34 +0000 (12:49 -0700)]
Merge pull request #1431 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoFix bug 1213453 (GitHub issue #1421): incorrect EH scopes for optimized loops
Bruce Forstall [Mon, 24 Aug 2015 18:07:39 +0000 (11:07 -0700)]
Fix bug 1213453 (GitHub issue #1421): incorrect EH scopes for optimized loops

(Port changeset 1518001 from CodeGen)

The bug occurs when fgOptWhileLoop() duplicates a condition from one 'try' region into another, and that condition throws an exception, such as for an array bounds check. This was the test case:

try
{
    Console.WriteLine("try");
}
catch (IndexOutOfRangeException)
{
    Console.WriteLine("bad");
    result = FAIL;
}
while (a[42] != 0) {}

Before the fix, the "a[42] != 0" condition was duplicated into the 'try' region, thus causing an IndexOutOfRange exception to be thrown, and caught in the wrong region.

The main fix is to compare the 'try' region of the region where the condition exists and the region we intend to copy it to. The other changes, in optimizer.cpp and flowgraph.cpp, are "defense in depth" -- to be more careful with EH checks in two very similar optimizations.

This bug existed in AMD64 and ARM32.

There are 2 functions with ARM32 asm diffs.

There are 70 functions with AMD64 SuperAsm diffs.

There are many cases where we prohibit the optimization that caused the bug. There are a few cases where we don't do the optimization but could have if we were more careful about checking for precise EH conditions that are allowed, namely, that branching to the first block of a 'try' region is ok.

[tfs-changeset: 1518014]

8 years agoMerge pull request #1230 from jasonwilliams200OK/master
Aditya Mandaleeka [Sat, 22 Aug 2015 19:27:29 +0000 (12:27 -0700)]
Merge pull request #1230 from jasonwilliams200OK/master

docs: Fixes link in docgen and config knobs

8 years agoMerge pull request #1423 from mikem8361/gcroot
Mike McLaughlin [Sat, 22 Aug 2015 08:00:11 +0000 (01:00 -0700)]
Merge pull request #1423 from mikem8361/gcroot

Enable gcroot and other gc related sos commands.

8 years agoEnable gcroot and other gc related sos commands.
Mike McLaughlin [Fri, 14 Aug 2015 01:36:31 +0000 (18:36 -0700)]
Enable gcroot and other gc related sos commands.

The "gcroot" command currently doesn't work with lldb 3.6 (our default package), but
works fine with lldb 3.7.0.

lldb 3.6 terminates with
(lldb) sos GCRoot 00007fffcc004ce8
*** Error in `lldb-3.6': munmap_chunk(): invalid pointer: 0x000000000184cde8 ***

PAL_STDCPP_COMPAT is the define that the VS team added to allow the xplat
headers to be used. This is neccessary for the whole SOS directory now
because gcroot and other gc commands need unorderd_map, unorderd_set, etc.
from the stdlib.

Had to change all wchar_t to WCHAR because the xplat stdlib default is UTF32.

Had to rename and provide macros that conflict with the stdlib:

wcslen -> _wcslen
wcsncmp -> _wcsncmp
wcsrchr -> _wcsrchr
wcscmp -> _wcscmp
wcschr -> _wcschr
wcscspn -> _wcscspn
wcscat -> _wcscat

__in -> ___in
__out -> ___out

max(a, b) -> _max(a, b)
min(a, b) -> _min(a, b)

Had to ifdef PAL_STDCPP_COMPAT a lot more of pal.h, palrt.h and some other header files.

Changed a bunch of  L"" to W("").

8 years agoMerge pull request #1424 from andschwa/tpa-assertion
Jan Kotas [Fri, 21 Aug 2015 23:57:18 +0000 (16:57 -0700)]
Merge pull request #1424 from andschwa/tpa-assertion

Remove Binder assertion for BindByWhereRef

8 years agoRemove Binder assertion for BindByWhereRef
Andrew Schwartzmeyer [Fri, 21 Aug 2015 22:51:23 +0000 (15:51 -0700)]
Remove Binder assertion for BindByWhereRef

Some use cases of CoreCLR require overriding the assembly load context,
triggering this assertion. However, this override does not necessarily
break support of BindByWhereRef, and so it should be attempted on a
best-effort basis, instead of bailing out prematurely.

8 years agoMerge pull request #1422 from jgalar/master
Jan Kotas [Fri, 21 Aug 2015 22:54:49 +0000 (15:54 -0700)]
Merge pull request #1422 from jgalar/master

LTTng supports hardware context

8 years agoLTTng supports hardware context
Jérémie Galarneau [Fri, 21 Aug 2015 21:17:27 +0000 (17:17 -0400)]
LTTng supports hardware context

LTTng supports the annotation of events with perf hardware counters via the use of the "add-context" command.

8 years agoMerge pull request #1416 from jkotas/vs2015-autodetect
Jan Kotas [Fri, 21 Aug 2015 04:18:57 +0000 (21:18 -0700)]
Merge pull request #1416 from jkotas/vs2015-autodetect

Auto-detect VS2015

8 years agoDisable test failing on VS2015
Jan Kotas [Fri, 21 Aug 2015 03:36:28 +0000 (20:36 -0700)]
Disable test failing on VS2015

Failure tracked by #1421 RyuJIT generates incorrect exception handling scopes for IL generated by Roslyn

8 years agoUse volatile stores for values read by DAC
Jan Kotas [Thu, 20 Aug 2015 06:50:32 +0000 (23:50 -0700)]
Use volatile stores for values read by DAC

VS2015 optimizer is smart enough to optimize out stores into globals that are only read by the DAC.

8 years agoTurn on C# optimizations on two large tests
Jan Kotas [Thu, 20 Aug 2015 06:48:50 +0000 (23:48 -0700)]
Turn on C# optimizations on two large tests

The debug IL generated by Roslyn is too complex and causes the test to fail with stack overflow.

8 years agoAuto-detect VS2015
Jan Kotas [Thu, 20 Aug 2015 04:12:40 +0000 (21:12 -0700)]
Auto-detect VS2015

Change build and tests scripts to detect VS2015 and use that if available by default

8 years agoMerge pull request #1413 from jkotas/atypical-callsite
Jan Kotas [Fri, 21 Aug 2015 02:30:11 +0000 (19:30 -0700)]
Merge pull request #1413 from jkotas/atypical-callsite

Add CORINFO_CALLINFO_ATYPICAL_CALLSITE flag to JIT-EE interface

8 years agoMerge pull request #1418 from ytechie/patch-1
Jan Kotas [Thu, 20 Aug 2015 15:20:11 +0000 (08:20 -0700)]
Merge pull request #1418 from ytechie/patch-1

Fixed stray character typo

8 years agoFixed stray character typo
Jason Young [Thu, 20 Aug 2015 14:43:46 +0000 (09:43 -0500)]
Fixed stray character typo

8 years agoComplete support for atypical callsites
Jan Kotas [Thu, 20 Aug 2015 05:48:01 +0000 (22:48 -0700)]
Complete support for atypical callsites

8 years agoMerge pull request #1415 from jkotas/acceptable-time-error
Jan Kotas [Wed, 19 Aug 2015 23:27:19 +0000 (16:27 -0700)]
Merge pull request #1415 from jkotas/acceptable-time-error

Fix timing in more PAL tests for FreeBSD on hypervisors

8 years agoMerge pull request #1410 from jkotas/vs2015-buildtools
Jan Kotas [Wed, 19 Aug 2015 23:21:37 +0000 (16:21 -0700)]
Merge pull request #1410 from jkotas/vs2015-buildtools

Update buildtools version to fix VS2015 build

8 years agoAdd config switch for thread suspension injection in clrconfigvalues.h
Aditya Mandaleeka [Wed, 19 Aug 2015 21:59:44 +0000 (14:59 -0700)]
Add config switch for thread suspension injection in clrconfigvalues.h

8 years agoFix timing in more PAL tests for FreeBSD on hypervisors
Jan Kotas [Wed, 19 Aug 2015 17:28:14 +0000 (10:28 -0700)]
Fix timing in more PAL tests for FreeBSD on hypervisors

8 years agoRename ResolveNuGetPackageAssets to PrereleaseResolveNuGetPackageAssets
Jan Kotas [Tue, 11 Aug 2015 15:18:32 +0000 (08:18 -0700)]
Rename ResolveNuGetPackageAssets to PrereleaseResolveNuGetPackageAssets

8 years agoUpdate buildtools version to 00079
Jan Kotas [Tue, 11 Aug 2015 15:02:54 +0000 (08:02 -0700)]
Update buildtools version to 00079

Required by VS2015

8 years agoMerge pull request #1395 from ktos/patch-1
Matt Ellis [Wed, 19 Aug 2015 05:18:12 +0000 (22:18 -0700)]
Merge pull request #1395 from ktos/patch-1

Updated to new syntax of dnx run