platform/upstream/coreclr.git
8 years agoMerge pull request #1137 from hadibrais/patch-1
Aditya Mandaleeka [Thu, 13 Aug 2015 19:00:53 +0000 (12:00 -0700)]
Merge pull request #1137 from hadibrais/patch-1

Add Table of Contents to clr-code-guide.md

8 years agoMerge pull request #1383 from dotnet-bot/from-tfs
Jan Kotas [Thu, 13 Aug 2015 14:44:08 +0000 (07:44 -0700)]
Merge pull request #1383 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoMerge pull request #1382 from dotnet-bot/from-tfs
Jan Kotas [Thu, 13 Aug 2015 02:44:29 +0000 (19:44 -0700)]
Merge pull request #1382 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoWe are incorrectly stripping away the Identity method from the EnumHelper type when...
Alex Ghiondea [Thu, 13 Aug 2015 00:41:15 +0000 (17:41 -0700)]
We are incorrectly stripping away the Identity method from the EnumHelper type when building mscorlib.

[tfs-changeset: 1513902]

8 years agoMerge pull request #1380 from dotnet-bot/from-tfs
Aditya Mandaleeka [Wed, 12 Aug 2015 23:53:30 +0000 (16:53 -0700)]
Merge pull request #1380 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoBuild Toolbox\BinaryRewriting as part of the PK product group
Matt Ellis [Wed, 12 Aug 2015 23:11:43 +0000 (16:11 -0700)]
Build Toolbox\BinaryRewriting as part of the PK product group

We need this so we can get a signed build of BclRewriter.exe which is only produced by the offical build out of the ProjectK branch.

[tfs-changeset: 1513878]

8 years agoPort the DateTime parser fix from the Desktop
Tarek Mahmoud Sayed [Wed, 12 Aug 2015 19:50:14 +0000 (12:50 -0700)]
Port the DateTime parser fix from the Desktop

This change is fixing the DateTime parser in cases of date/time strings for cultures which has the date and time separators are same. This happen with Norway, Serbia and Finland cultures

[tfs-changeset: 1513801]

8 years agoMerge pull request #1329 from AndreyAkinshin/master
Matt Mitchell [Wed, 12 Aug 2015 15:34:31 +0000 (08:34 -0700)]
Merge pull request #1329 from AndreyAkinshin/master

Fix a bug with disappeared cast to byte in numeric binary expressions

8 years agoFix a bug with disappeared cast to byte in numeric binary expressions
Andrey Akinshin [Mon, 3 Aug 2015 13:33:26 +0000 (16:33 +0300)]
Fix a bug with disappeared cast to byte in numeric binary expressions

Lowering::IndirsAreEquivalent doesn't check if the 2 indirections have the same type and because of that a RMW style instruction is generated instead of the expected

movzx    rax, byte  ptr [7FFA61024742h]
xor      eax, 33
mov      word  ptr [7FFA61024742h], ax

This behavior was fixed by adding an additional check to IndirsAreEquivalent (implementation of the mikedn's approach: https://github.com/dotnet/coreclr/pull/1329#discussion_r36397171).

Fix #1323.

8 years agoMerge pull request #1372 from eerhardt/master
Eric Erhardt [Tue, 11 Aug 2015 23:45:31 +0000 (18:45 -0500)]
Merge pull request #1372 from eerhardt/master

Implement TimeZoneInfo.GetSystemTimeZones() on Linux

8 years agoImplement TimeZoneInfo.GetSystemTimeZones() on Linux
Eric Erhardt [Fri, 7 Aug 2015 22:39:40 +0000 (17:39 -0500)]
Implement TimeZoneInfo.GetSystemTimeZones() on Linux

Implementing GetSystemTimeZones on Linux by reading
the zone.tab file on the machine, parsing out the
valid TimeZone IDs from it, and using those Ids to read
all the time zones on the machine.

8 years agoMerge pull request #1377 from jkotas/timer
Jan Kotas [Tue, 11 Aug 2015 19:07:06 +0000 (12:07 -0700)]
Merge pull request #1377 from jkotas/timer

Delete unused System.Threading.Timer.dll dependencies

8 years agoDelete unused System.Threading.Timer.dll dependencies
Jan Kotas [Tue, 11 Aug 2015 18:27:11 +0000 (11:27 -0700)]
Delete unused System.Threading.Timer.dll dependencies

8 years agoMerge pull request #1375 from jkotas/vs2015-fixes
Jan Kotas [Tue, 11 Aug 2015 13:15:11 +0000 (06:15 -0700)]
Merge pull request #1375 from jkotas/vs2015-fixes

Assorted fixes for VS2015 build breaks

8 years agoDisable debug info generation for test with very large method
Jan Kotas [Tue, 11 Aug 2015 05:40:58 +0000 (22:40 -0700)]
Disable debug info generation for test with very large method

Roslyn is hitting out of memory exception caused by internal PDB writer limitations (dotnet/roslyn/issues/3915)

8 years agoFix VS2015 test build breaks
Jan Kotas [Tue, 11 Aug 2015 04:15:17 +0000 (21:15 -0700)]
Fix VS2015 test build breaks

8 years agoFix Windows SDK path for VS2015
Jan Kotas [Tue, 11 Aug 2015 03:22:35 +0000 (20:22 -0700)]
Fix Windows SDK path for VS2015

8 years agoFix path to test build log
Jan Kotas [Tue, 11 Aug 2015 03:14:16 +0000 (20:14 -0700)]
Fix path to test build log

8 years agoMerge pull request #1352 from eerhardt/master
Eric Erhardt [Mon, 10 Aug 2015 21:55:26 +0000 (16:55 -0500)]
Merge pull request #1352 from eerhardt/master

TimeZoneInfo parse v2 tzfile and create AdjustmentRules

8 years agoTimeZoneInfo parse v2 tzfile and create AdjustmentRules
Eric Erhardt [Mon, 3 Aug 2015 20:43:40 +0000 (15:43 -0500)]
TimeZoneInfo parse v2 tzfile and create AdjustmentRules

TimeZoneInfo on Linux needs to parse V2 tzfile information and
correctly create AdjustmentRule instances based on the tzfile
information.

To create AdjustmentRules correctly, I introduced a new flag on
AdjustmentRule - NoDaylightTransitions, which means the adjustment
is fixed for the whole time the rule is in effect.  This allows
us to create an AdjustmentRule for each time the offset changed
in a time zone (whether the change was for Daylight Savings or
for some other reason).  I also needed to relax the rule that
DateStart and DateEnd needed to be DateTimeKind.Unspecified.
Instead, when we create NoDaylightTransitions adjustment rules
in Linux, we use DateStart and DateEnd to be UTC times the offset
transitioned.

Fix #2465.

8 years agoMerge pull request #1370 from dotnet-bot/from-tfs
Jan Kotas [Mon, 10 Aug 2015 18:21:09 +0000 (11:21 -0700)]
Merge pull request #1370 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoImplement /disassemble nidump option for readytorun images
Jan Kotas [Mon, 10 Aug 2015 17:02:28 +0000 (10:02 -0700)]
Implement /disassemble nidump option for readytorun images

[tfs-changeset: 1512604]

8 years agoMerge pull request #1369 from dotnet-bot/from-tfs
Jan Kotas [Mon, 10 Aug 2015 16:32:20 +0000 (09:32 -0700)]
Merge pull request #1369 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoFix build break on desktop
Jan Kotas [Mon, 10 Aug 2015 15:39:00 +0000 (08:39 -0700)]
Fix build break on desktop

[tfs-changeset: 1512590]

8 years agoMerge pull request #1366 from sokket/timers
Jan Kotas [Sat, 8 Aug 2015 07:33:17 +0000 (00:33 -0700)]
Merge pull request #1366 from sokket/timers

Removing old System.Threading.Timer tests and moving to CoreFX

8 years agoRemoving old System.Threading.Timer tests with the corresponding
Jonathan Miller [Sat, 8 Aug 2015 00:50:24 +0000 (17:50 -0700)]
Removing old System.Threading.Timer tests with the corresponding
move to CoreFX via CoreFX PR 2681

8 years agoMerge pull request #1362 from mikem8361/exports1
Jan Kotas [Fri, 7 Aug 2015 23:48:45 +0000 (16:48 -0700)]
Merge pull request #1362 from mikem8361/exports1

Add GetCurrentThreadId to the Linux/Unix exports from coreclr.

8 years agoMerge pull request #1365 from dotnet-bot/from-tfs
Jan Kotas [Fri, 7 Aug 2015 23:39:04 +0000 (16:39 -0700)]
Merge pull request #1365 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoMerge pull request #1363 from mmitche/fix-opensuse
Matt Mitchell [Fri, 7 Aug 2015 23:27:22 +0000 (16:27 -0700)]
Merge pull request #1363 from mmitche/fix-opensuse

Remove llvm-ranlib dependency

8 years agoFix BPMD SOS command for ReadyToRun
Jan Kotas [Fri, 7 Aug 2015 23:26:26 +0000 (16:26 -0700)]
Fix BPMD SOS command for ReadyToRun

DAC was not getting notified about new method code

[tfs-changeset: 1512178]

8 years agoRemove llvm-ranlib dependency
Matt Mitchell [Fri, 7 Aug 2015 21:50:34 +0000 (14:50 -0700)]
Remove llvm-ranlib dependency

Appears to be unused, and not available on openSUSE.

8 years agoAdd GetCurrentThreadId to the Linux/Unix exports from coreclr.
Mike McLaughlin [Fri, 7 Aug 2015 21:43:27 +0000 (14:43 -0700)]
Add GetCurrentThreadId to the Linux/Unix exports from coreclr.

8 years agoMerge pull request #1324 from kouvel/kouvel-SetSignalCountAssertFix-1318
Koundinya Veluri [Fri, 7 Aug 2015 20:30:02 +0000 (13:30 -0700)]
Merge pull request #1324 from kouvel/kouvel-SetSignalCountAssertFix-1318

Fix PAL signal count upper limit issues.

8 years agoFix PAL signal count upper limit issues.
Koundinya Veluri [Fri, 31 Jul 2015 09:20:50 +0000 (02:20 -0700)]
Fix PAL signal count upper limit issues.

- Fix assert in SetSignalCount to allow int32 max as a valid value.
- Change ISynchStateController signal count functions to use LONG
  instead of DWORD to match the storage type for consistency.
- In ReleaseSemaphoreInternal, handle overflow of (oldCount +
  releaseCount) to return failure. Updated PAL semaphore tests to catch
  this case.

Fix #1318

8 years agoMerge pull request #1254 from James-Ko/patch-1
Jan Kotas [Fri, 7 Aug 2015 06:06:45 +0000 (23:06 -0700)]
Merge pull request #1254 from James-Ko/patch-1

mscorlib: Use Array.Empty where possible

8 years agoUse Array.Empty where possible
James Ko [Fri, 7 Aug 2015 05:56:33 +0000 (01:56 -0400)]
Use Array.Empty where possible

8 years agoMerge pull request #1354 from jkotas/vs2015-rtm
Jan Kotas [Thu, 6 Aug 2015 17:43:57 +0000 (10:43 -0700)]
Merge pull request #1354 from jkotas/vs2015-rtm

Fix build breaks on VS2015 RTM

8 years agoMerge pull request #1357 from benpye/arm64-release-fix
Jan Kotas [Thu, 6 Aug 2015 17:40:33 +0000 (10:40 -0700)]
Merge pull request #1357 from benpye/arm64-release-fix

Fix ARM64 compile break

8 years agoFix ARM64 compile break
Ben Pye [Thu, 6 Aug 2015 13:10:31 +0000 (14:10 +0100)]
Fix ARM64 compile break

8 years agoMerge pull request #1343 from benpye/cross-compilation
Matt Mitchell [Wed, 5 Aug 2015 23:59:34 +0000 (16:59 -0700)]
Merge pull request #1343 from benpye/cross-compilation

Add cross compilation support for ARM and ARM64

8 years agoFix build breaks on VS2015 RTM
Jan Kotas [Wed, 5 Aug 2015 23:00:00 +0000 (16:00 -0700)]
Fix build breaks on VS2015 RTM

Most of the changes are about mismatches between printf formatting strings and argument types.

Fix #1294.

8 years agoMerge pull request #1355 from dotnet-bot/from-tfs
Jan Kotas [Wed, 5 Aug 2015 23:03:07 +0000 (16:03 -0700)]
Merge pull request #1355 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoFix bad msbuild properties so that conditions behave as expected.
Joel Hendrix [Wed, 5 Aug 2015 22:51:05 +0000 (15:51 -0700)]
Fix bad msbuild properties so that conditions behave as expected.

[tfs-changeset: 1511107]

8 years agoMerge pull request #1291 from justinvp/streamreader_preamble
Wes Haggard [Wed, 5 Aug 2015 22:43:33 +0000 (15:43 -0700)]
Merge pull request #1291 from justinvp/streamreader_preamble

StreamReader: Use a cached byte[] preamble for Encoding.UTF8

8 years agoMerge pull request #1349 from dotnet-bot/from-tfs
Jan Kotas [Wed, 5 Aug 2015 17:45:17 +0000 (10:45 -0700)]
Merge pull request #1349 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoMerge pull request #1346 from fffej/master
Jan Kotas [Wed, 5 Aug 2015 16:30:44 +0000 (09:30 -0700)]
Merge pull request #1346 from fffej/master

Fix links that are now in /coding-guidelines

8 years agoMerge pull request #1348 from ganeshran/api-mswin-dll-missing
Jan Kotas [Wed, 5 Aug 2015 16:30:08 +0000 (09:30 -0700)]
Merge pull request #1348 from ganeshran/api-mswin-dll-missing

Adding Fix for the api-win-ms dll missing error in documentation.

8 years agoFix for build issue #764084, remove PK product group (it shouldn't have been added...
Joel Hendrix [Wed, 5 Aug 2015 16:19:01 +0000 (09:19 -0700)]
Fix for build issue #764084, remove PK product group (it shouldn't have been added to begin with).

[tfs-changeset: 1510862]

8 years agoWorkaround for the api-ms-win-* dll missing error
Ganesh Ranganathan [Wed, 5 Aug 2015 11:30:56 +0000 (17:00 +0530)]
Workaround for the api-ms-win-* dll missing error

This change adds a workaround for a known issue of api-ms-win-* dll missing error while debugging the coreclr solution.

8 years agofix links
Jeff Foster [Wed, 5 Aug 2015 14:07:32 +0000 (15:07 +0100)]
fix links

8 years agoMerge pull request #1336 from tony/freebsd-lldb
Jan Kotas [Wed, 5 Aug 2015 12:54:28 +0000 (05:54 -0700)]
Merge pull request #1336 from tony/freebsd-lldb

Update FreeBSD installation docs for LLDB support

8 years agoMerge pull request #1347 from fffej/teh-to-the
Jan Kotas [Wed, 5 Aug 2015 12:53:29 +0000 (05:53 -0700)]
Merge pull request #1347 from fffej/teh-to-the

Fix typos of teh

8 years agoFix typos of teh
Jeff Foster [Wed, 5 Aug 2015 11:01:51 +0000 (12:01 +0100)]
Fix typos of teh

8 years agoUpdate FreeBSD installation docs to the new devel/llvm37 package.
Tony Narlock [Mon, 3 Aug 2015 20:41:58 +0000 (15:41 -0500)]
Update FreeBSD installation docs to the new devel/llvm37 package.

- Instructions updated for building with llvm37
- Remove freebsd-install-lldb.sh script
- Add syntax-specific highlighting to code blocks
- Create and link to note on other Clang / LLDB versions

8 years agoPick up security cookie definition from CRT headers
Jan Kotas [Wed, 5 Aug 2015 03:15:08 +0000 (20:15 -0700)]
Pick up security cookie definition from CRT headers

[tfs-changeset: 1510564]

8 years agoImprove build-rootfs script.
Ben Pye [Wed, 5 Aug 2015 01:34:04 +0000 (02:34 +0100)]
Improve build-rootfs script.

8 years agoTitle:
Joel Hendrix [Tue, 4 Aug 2015 21:54:40 +0000 (14:54 -0700)]
Title:

   Binplace xplat binaries during official builds

Change Description:

   This is the initial implementation of having our official devdiv razzle builds binplace non-Windows xplat binaries.

   For now xplat binaries are binplaced only during official builds; this can be overridden by specifying /p:GetAllXPlatBinaries=true.  Binplacing is limited to CoreClr builds on amd64 as that's all we build for xplat.
   xplat binaries are pulled directly from Azure; if this becomes problematic we can look at having an internal cache.
   Binaries are pulled from Azure using a checked in copy of azcopy.exe.  For now I have embedded the source key; this will be removed in the future in favor of using a shared access signature.
   At present the build number for the xplat bits is fixed; this will be removed in a future change.
   The binaries are in zip format.  Once downloaded the contents are extracted in a directory under %_nttree% named after the platform; this puts them with the other xplat bits we build on Windows.

[tfs-changeset: 1510395]

8 years agoReplace multiple .gitmirror files with .gitmirrorall .
Ben Pye [Tue, 4 Aug 2015 21:13:48 +0000 (22:13 +0100)]
Replace multiple .gitmirror files with .gitmirrorall .

8 years agoAdd missing packages in documentation.
Ben Pye [Tue, 4 Aug 2015 20:04:35 +0000 (21:04 +0100)]
Add missing packages in documentation.

8 years agoMerge pull request #1342 from jkotas/early-mscorlib-references
Jan Kotas [Tue, 4 Aug 2015 19:48:58 +0000 (12:48 -0700)]
Merge pull request #1342 from jkotas/early-mscorlib-references

Fix crash when using OpenCover with mscorlib

8 years agoMerge pull request #1327 from mikem8361/settid
Mike McLaughlin [Tue, 4 Aug 2015 19:01:04 +0000 (12:01 -0700)]
Merge pull request #1327 from mikem8361/settid

Add work around a bug in lldb on a core dump

8 years agoRemove comments from tryrun cmake files
Ben Pye [Tue, 4 Aug 2015 17:14:22 +0000 (18:14 +0100)]
Remove comments from tryrun cmake files

8 years agoFix crash when using OpenCover with mscorlib
Jan Kotas [Tue, 4 Aug 2015 17:12:18 +0000 (10:12 -0700)]
Fix crash when using OpenCover with mscorlib

OpenCover injects self referencing assembly refs to mscorlib. The fix avoids crash when the assembly loader tries to resolve them early during startup.

Fix #1340.

8 years agoAdd cross compilation support for ARM and ARM64.
Ben Pye [Tue, 4 Aug 2015 17:10:46 +0000 (18:10 +0100)]
Add cross compilation support for ARM and ARM64.

8 years agoMerge pull request #1326 from ganeshran/MovingPackageFolderCreationSection
Jan Kotas [Tue, 4 Aug 2015 15:27:08 +0000 (08:27 -0700)]
Merge pull request #1326 from ganeshran/MovingPackageFolderCreationSection

Moving Folder creation section above Nuget.exe Download

8 years agoMoving Folder creation section above Nuget.exe Download
Ganesh Ranganathan [Sat, 1 Aug 2015 09:33:04 +0000 (15:03 +0530)]
Moving Folder creation section above Nuget.exe Download

The Download Nuget.exe section assumes that the ~/coreclr-demo/packages folder already exists. However the command to create it is given in the section after that. In other platform instructions file the sequence appears correctly

And Removing the phrase 'Place all the Nuget packages together' as per PR comment

8 years agoMerge pull request #1325 from mikedn/winx86
Jan Kotas [Tue, 4 Aug 2015 14:18:09 +0000 (07:18 -0700)]
Merge pull request #1325 from mikedn/winx86

Enable the Windows x86 build

8 years agoEnable the Windows x86 build
Mike Danes [Sat, 1 Aug 2015 08:04:16 +0000 (11:04 +0300)]
Enable the Windows x86 build
This allows building the Windows x86 version of CoreCLR by using "x86" for the BuildArch parameter of build.cmd. Note that CMAKE_SYSTEM_PROCESSOR is no longer used in Windows builds to set IS_64BIT_BUILD.
This change is enough to get CoreCLR to build but more changes are required for it to actually run correctly. In particular, the JIT compiler support for x86 is pretty limited at this point.

8 years agoMerge pull request #1339 from dotnet-bot/from-tfs
Jan Kotas [Tue, 4 Aug 2015 04:49:18 +0000 (21:49 -0700)]
Merge pull request #1339 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoAllow x86 version of prebuilt mscoree.h to be used for all architectures
Jan Kotas [Tue, 4 Aug 2015 03:27:34 +0000 (20:27 -0700)]
Allow x86 version of prebuilt mscoree.h to be used for all architectures

[tfs-changeset: 1509924]

8 years agoMerge pull request #1332 from benpye/arm-regression-fix
Jan Kotas [Tue, 4 Aug 2015 03:20:57 +0000 (20:20 -0700)]
Merge pull request #1332 from benpye/arm-regression-fix

Fix ARM build regression

8 years agoMerge pull request #1338 from dotnet-bot/from-tfs
Jan Kotas [Tue, 4 Aug 2015 03:15:56 +0000 (20:15 -0700)]
Merge pull request #1338 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoFix build break on Windows ARM
Jan Kotas [Mon, 3 Aug 2015 23:22:44 +0000 (16:22 -0700)]
Fix build break on Windows ARM

[tfs-changeset: 1509827]

8 years agoMerge pull request #1337 from dotnet/revert-1334-from-tfs
Jan Kotas [Mon, 3 Aug 2015 23:14:58 +0000 (16:14 -0700)]
Merge pull request #1337 from dotnet/revert-1334-from-tfs

Revert "Merge changes from TFS"

8 years agoRevert "Merge changes from TFS"
Jan Kotas [Mon, 3 Aug 2015 21:48:35 +0000 (14:48 -0700)]
Revert "Merge changes from TFS"

8 years agoMerge pull request #1334 from dotnet-bot/from-tfs
Jan Kotas [Mon, 3 Aug 2015 19:18:31 +0000 (12:18 -0700)]
Merge pull request #1334 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoFix ARM build regression
Ben Pye [Mon, 3 Aug 2015 17:25:25 +0000 (17:25 +0000)]
Fix ARM build regression

8 years agoMerge pull request #1331 from justinvp/streamreader_cachedencodings
Jan Kotas [Mon, 3 Aug 2015 18:24:37 +0000 (11:24 -0700)]
Merge pull request #1331 from justinvp/streamreader_cachedencodings

StreamReader: Use the static cached Encoding instances

8 years agoMerge pull request #1333 from dotnet-bot/from-tfs
Jan Kotas [Mon, 3 Aug 2015 18:24:06 +0000 (11:24 -0700)]
Merge pull request #1333 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoUse x86 version of prebuilt mscoree.h
Jan Kotas [Mon, 3 Aug 2015 18:16:18 +0000 (11:16 -0700)]
Use x86 version of prebuilt mscoree.h

It matches what we do in the legacy build environment. The x64 version of the header file is causing build breaks on x86 as @mikedn found out.

[tfs-changeset: 1509675]

8 years agoUse a cached byte[] preamble for Encoding.UTF8
Justin Van Patten [Sat, 25 Jul 2015 23:36:22 +0000 (16:36 -0700)]
Use a cached byte[] preamble for Encoding.UTF8

Avoids allocations associated with GetPreamble() for the default and
commonly used Encoding.UTF8 encoding.

8 years agoMerge pull request #1330 from dobe/master
Stephen Toub [Mon, 3 Aug 2015 14:39:27 +0000 (10:39 -0400)]
Merge pull request #1330 from dobe/master

fixed typo

8 years agofixed typo
dobe [Mon, 3 Aug 2015 14:03:29 +0000 (16:03 +0200)]
fixed typo

8 years agoAdded a "setsostid" command to workaround a bug in lldb on a core dump where the...
Mike McLaughlin [Fri, 31 Jul 2015 01:29:06 +0000 (18:29 -0700)]
Added a "setsostid" command to workaround a bug in lldb on a core dump where the system ids (TIDs) are wrong.

First find the managed thread os id is:

(lldb) sos Threads
                                                                                                                                                           Lock
       ID OSID ThreadOBJ           State GC Mode     GC Alloc Context                  Domain           Count Apt Exception
   1    1 3787 00000000006547F8    20220 Preemptive  00007FFFCC0145D0:00007FFFCC015FD0 00000000006357F8 0     Ukn
   6    2 3790 0000000000678FB8    21220 Preemptive  0000000000000000:0000000000000000 00000000006357F8 0     Ukn (Finalizer)

(lldb) thread list
Process 0 stopped
* thread #1: tid = 0x0000, 0x00007f01fe64d267 libc.so.6`__GI_raise(sig=6) + 55 at raise.c:55, name = 'corerun', stop reason = signal SIGABRT
  thread #2: tid = 0x0001, 0x00007f01fe7138dd libc.so.6, stop reason = signal SIGABRT
  thread #3: tid = 0x0002, 0x00007f01fd27dda0 libpthread.so.0`__pthread_cond_wait + 192, stop reason = signal SIGABRT
  thread #4: tid = 0x0003, 0x00007f01fd27e149 libpthread.so.0`__pthread_cond_timedwait + 297, stop reason = signal SIGABRT
  thread #5: tid = 0x0004, 0x00007f01fe70f28d libc.so.6, stop reason = signal SIGABRT
  thread #6: tid = 0x0005, 0x00007f01fe70f49d libc.so.6, stop reason = signal SIGABRT

Then use the new command "setsostid" to set the current thread using the "OSID" from above:
(lldb) setsostid 3790 6
Set sos thread os id to 0x3790 which maps to lldb thread index 6

Now ClrStack should dump that managed thread:
(lldb) sos ClrStack

To undo the affect of this command:
(lldb) setsostid

Added setclrpath command that allows the path that sos/dac/dbi are loaded from to be changes instead of using
the coreclr path. This may be needed if loading a core dump and the debugger binaries are in a different directory
that what the dump has for coreclr's path.

8 years agoMerge pull request #1320 from ganeshran/1313-GitSetupSection
Jan Kotas [Fri, 31 Jul 2015 21:22:47 +0000 (14:22 -0700)]
Merge pull request #1320 from ganeshran/1313-GitSetupSection

Adding instructions to clone both corefx and coreclr in the Git Setup…

8 years agoMerge pull request #1285 from benpye/linux-arm-stack-unwinding
Jan Vorlicek [Fri, 31 Jul 2015 19:48:05 +0000 (21:48 +0200)]
Merge pull request #1285 from benpye/linux-arm-stack-unwinding

Add unwinding for the ARM Linux platform

9 years agoModify unwinder to provide RtlVirtualUnwind.
Ben Pye [Tue, 14 Jul 2015 20:52:13 +0000 (21:52 +0100)]
Modify unwinder to provide RtlVirtualUnwind.

Use PAL_VirtualUnwind on Linux ARM

Add assembler annotation for unwinding

9 years agoAdding instructions to clone both corefx and coreclr in the Git Setup section for...
Ganesh Ranganathan [Fri, 31 Jul 2015 08:08:10 +0000 (13:38 +0530)]
Adding instructions to clone both corefx and coreclr in the Git Setup section for Linux and FreeBSD. The corefx clone is needed on Linux/FreeBSD to build the native components. Ref #1313

9 years agoMerge pull request #1319 from kangaroo/aarch64-hfa-fix
Jan Kotas [Fri, 31 Jul 2015 05:44:18 +0000 (22:44 -0700)]
Merge pull request #1319 from kangaroo/aarch64-hfa-fix

[aarch64] Correct the checking of return class type to check against CORINFO_TYPE_FLOAT

9 years ago[aarch64] Correct the checking of return class type to check against CORINFO_TYPE_FLOAT
Geoff Norton [Fri, 31 Jul 2015 05:13:10 +0000 (05:13 +0000)]
[aarch64] Correct the checking of return class type to check against CORINFO_TYPE_FLOAT

9 years agoFix more build breaks on Windows arm64
Jan Kotas [Fri, 31 Jul 2015 02:01:02 +0000 (19:01 -0700)]
Fix more build breaks on Windows arm64

[tfs-changeset: 1508010]

9 years agoFix build break on Windows arm64
Jan Kotas [Thu, 30 Jul 2015 23:53:52 +0000 (16:53 -0700)]
Fix build break on Windows arm64

[tfs-changeset: 1507960]

9 years agoMerge pull request #1317 from nguerrera/corefx-native-docs
Nick Guerrera [Thu, 30 Jul 2015 21:50:52 +0000 (14:50 -0700)]
Merge pull request #1317 from nguerrera/corefx-native-docs

Add instructions for building corefx native components

9 years agoAdd instructions for building corefx native components
Nick Guerrera [Thu, 30 Jul 2015 21:11:11 +0000 (14:11 -0700)]
Add instructions for building corefx native components

Fix #1313

9 years agoMerge pull request #1292 from kangaroo/aarch64
Jan Kotas [Thu, 30 Jul 2015 20:16:34 +0000 (13:16 -0700)]
Merge pull request #1292 from kangaroo/aarch64

Initial aarch64/linux support

9 years agoMerge pull request #1314 from dotnet-bot/from-tfs
Jan Kotas [Thu, 30 Jul 2015 20:15:22 +0000 (13:15 -0700)]
Merge pull request #1314 from dotnet-bot/from-tfs

Merge changes from TFS

9 years ago[aarch64] Address code review feedback and disable EmitGetThreadInlined on PAL for now
Geoff Norton [Thu, 30 Jul 2015 17:20:55 +0000 (17:20 +0000)]
[aarch64] Address code review feedback and disable EmitGetThreadInlined on PAL for now

9 years agoMerge pull request #1309 from schellap/copyprop
Matt Mitchell [Thu, 30 Jul 2015 04:44:22 +0000 (21:44 -0700)]
Merge pull request #1309 from schellap/copyprop

Conservatively mark variable as killed if there is an embedded comma …

9 years agoFix prefast warnings in CLR code
Eugene Zemtsov [Wed, 29 Jul 2015 23:38:07 +0000 (16:38 -0700)]
Fix prefast warnings in CLR code

[tfs-changeset: 1507366]

9 years agoConservatively mark variable as killed if there is an embedded comma assignment
schellap [Wed, 29 Jul 2015 20:08:16 +0000 (13:08 -0700)]
Conservatively mark variable as killed if there is an embedded comma assignment

GitHub Issue: Another RyuJIT optimization bug #1299
https://github.com/dotnet/coreclr/issues/1299

The underlying problem is there are two loops:

The first loop does copy prop
The second loop updates the stack of live definitions in the currently
traversed CFG path.

This approach works fine only if assignments are atomic statements, but
when there is an assignment embedded using a comma in a statement:
The first loop does nothing about this and continues to propagate
copies, i.e., without updating the liveness stack. This leads to using a
stale VN for comparison rather than using an updated VN due to this
definition.

Only when the second loop runs, this live definition is added to the
stack.

The right fix is to merge the two loops into a single loop that does
copy prop on the tree and at the same time updates the liveness on the
stack right after the call. But this is causing a lot of ASM diffs which
would affect stability.

I am making a conservative fix of temporarily marking the variables that
have embedded intervening defs as "killed", until the second loop runs
to update liveness.

There are no SuperASM diffs with this change.