platform/upstream/coreclr.git
9 years agoMerge pull request #691 from josteink/freebsd-threading
Jan Vorlicek [Thu, 16 Apr 2015 20:49:19 +0000 (22:49 +0200)]
Merge pull request #691 from josteink/freebsd-threading

PAL: Fix threading on FreeBSD.

9 years agoPAL: Fix threading on FreeBSD.
Jostein Kjønigsen [Mon, 13 Apr 2015 07:35:54 +0000 (07:35 +0000)]
PAL: Fix threading on FreeBSD.

9 years agoMerge pull request #719 from ellismg/preload-pal-from-corerun
Matt Ellis [Thu, 16 Apr 2015 18:23:29 +0000 (11:23 -0700)]
Merge pull request #719 from ellismg/preload-pal-from-corerun

Explicitly load libcoreclrpal in corerun

9 years agoExplicitly load libcoreclrpal in corerun
Matt Ellis [Thu, 16 Apr 2015 17:58:41 +0000 (10:58 -0700)]
Explicitly load libcoreclrpal in corerun

libcoreclr has a dependency on libcoreclrpal, but libcoreclrpal is
usually not on the path the loader probes, since it is SxS with the
runtime itself.

Instead of forcing LD_LIBRARY_PATH to be set just have corerun load the
PAL from the same folder as the runtime before loading libcoreclr.

Fixes #709

9 years agoMerge pull request #718 from janvorli/cleanup-safecrt
Jan Kotas [Thu, 16 Apr 2015 13:39:55 +0000 (06:39 -0700)]
Merge pull request #718 from janvorli/cleanup-safecrt

Cleanup safecrt in PAL

9 years agoCleanup safecrt in PAL
Jan Vorlicek [Thu, 16 Apr 2015 12:48:04 +0000 (14:48 +0200)]
Cleanup safecrt in PAL

The safecrt code in PAL was heavily sprinkled with #ifdefs for POSITIONAL_PARAMETERS
(that we never define) and _SAFECRT_IMPL (which is always defined in the PAL code).
This change cleans that up by removing checks of those ifdefs.
Also, I've found that the src/pal/src/safecrt/crtdefs.h is not used anywhere,
so I am removing it as well.

9 years agoMerge pull request #714 from richlander/rich-readme
Rich Lander [Thu, 16 Apr 2015 01:38:41 +0000 (18:38 -0700)]
Merge pull request #714 from richlander/rich-readme

Update README to accomodate wiki move

9 years agoMerge pull request #716 from janvorli/fix-tailcall
Jan Vorlicek [Thu, 16 Apr 2015 01:26:21 +0000 (03:26 +0200)]
Merge pull request #716 from janvorli/fix-tailcall

Fix issue with the disabled tail calls via helpers

9 years agoFix issue with the disabled tail calls via helpers
Jan Vorlicek [Thu, 16 Apr 2015 00:58:28 +0000 (02:58 +0200)]
Fix issue with the disabled tail calls via helpers

This change fixes an issue that occured after I've disabled tail calls via
helpers. The problem was that the goto to NO_TAIL_CALL needs to happen
before the GTF_CALL_M_TAILCALL flag is set, otherwise the jitter
doesn't emit any call.

9 years agoMerge pull request #715 from janvorli/remove-long-double
Jan Vorlicek [Thu, 16 Apr 2015 00:27:46 +0000 (02:27 +0200)]
Merge pull request #715 from janvorli/remove-long-double

Remove long double support from safecrt routines in PAL

9 years agoMerge pull request #713 from dotnet-bot/from-tfs
Jan Kotas [Thu, 16 Apr 2015 00:15:29 +0000 (17:15 -0700)]
Merge pull request #713 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoRemove long double support from safecrt routines in PAL
Jan Vorlicek [Wed, 15 Apr 2015 23:53:17 +0000 (01:53 +0200)]
Remove long double support from safecrt routines in PAL

This change removes the long double support from the safecrt
printf style routines in PAL. The existing support was effectively
disabled anyways, we didn't have similar support in the non-safe
printf style functions and coreclr has no need to print long doubles.

9 years agoUpdate README to accomodate wiki move
Rich Lander [Wed, 15 Apr 2015 23:43:18 +0000 (16:43 -0700)]
Update README to accomodate wiki move

9 years agoThis change makes System.Runtime.InteropServices.FormatterSerives public and __Dynami...
Pallavi Taneja [Wed, 15 Apr 2015 23:38:11 +0000 (16:38 -0700)]
This change makes System.Runtime.InteropServices.FormatterSerives public and __DynamicallyInvokable to unblock serialization engine that reflects on this type during deserializatoin. This is import to unblock the F5 debugging using coreclr bits.

[tfs-changeset: 1453460]

9 years agoMerge pull request #712 from bendono/dnx-doc
Rich Lander [Wed, 15 Apr 2015 23:19:30 +0000 (16:19 -0700)]
Merge pull request #712 from bendono/dnx-doc

Fixed several grammar and spelling mistakes.

9 years agoFixed several grammar and spelling mistakes.
Ben Monroe [Wed, 15 Apr 2015 21:31:32 +0000 (06:31 +0900)]
Fixed several grammar and spelling mistakes.

9 years agoMerge pull request #662 from richlander/rich-wiki
Rich Lander [Wed, 15 Apr 2015 17:55:55 +0000 (10:55 -0700)]
Merge pull request #662 from richlander/rich-wiki

Move subset of wiki files to coreclr repo

9 years agoMerge pull request #707 from ellismg/fix-689
Matt Mitchell [Wed, 15 Apr 2015 14:51:21 +0000 (07:51 -0700)]
Merge pull request #707 from ellismg/fix-689

Use "x64" and not "amd64" in build.sh

9 years agoMerge pull request #706 from dotnet-bot/from-tfs
Jan Kotas [Wed, 15 Apr 2015 10:22:38 +0000 (03:22 -0700)]
Merge pull request #706 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoUse "x64" and not "amd64" in build.sh
Matt Ellis [Wed, 15 Apr 2015 07:44:22 +0000 (00:44 -0700)]
Use "x64" and not "amd64" in build.sh

The help text for build.sh said that you should pass "x64" as a
paramter for the build architecture.  However, the script was looking
for amd64.  Update the script to look for x64 since that's what we use
everywhere else (and the behavior you got if you didn't pass an
argument to this script.)

Fixes #689

9 years agoMoving UAP Host sources out from coreclr\hosts to where it'll be residing together...
Sedar Gokbulut [Wed, 15 Apr 2015 05:11:02 +0000 (22:11 -0700)]
Moving UAP Host sources out from coreclr\hosts to where it'll be residing together with other UAP components

[tfs-changeset: 1452859]

9 years agoMerge pull request #705 from ellismg/mscorlib-pal-rename
Mike McLaughlin [Wed, 15 Apr 2015 04:59:08 +0000 (21:59 -0700)]
Merge pull request #705 from ellismg/mscorlib-pal-rename

Update PAL name

9 years agoRename "CoreClrPal" to "coreclrpal"
Matt Ellis [Wed, 15 Apr 2015 01:56:24 +0000 (18:56 -0700)]
Rename "CoreClrPal" to "coreclrpal"

Simply change the case of the library the PAL lives in so that is all
lowercase.

9 years agoUpdate PAL name
Matt Ellis [Wed, 15 Apr 2015 00:55:10 +0000 (17:55 -0700)]
Update PAL name

As of 19d02824, the Win32 functions exported by the PAL are now in
libCoreClrPal instead of libcoreclr itself.  Update mscorlib's PInvokes
to match this change.

9 years agoMerge pull request #704 from mikem8361/sharepal
Mike McLaughlin [Tue, 14 Apr 2015 23:57:21 +0000 (16:57 -0700)]
Merge pull request #704 from mikem8361/sharepal

Create shared PAL module and change all the modules to use it

9 years agoCreate shared PAL module and change all the debugger modules and coreclr to use it.
Mike McLaughlin [Tue, 14 Apr 2015 19:29:13 +0000 (12:29 -0700)]
Create shared PAL module and change all the debugger modules and coreclr to use it.

9 years agoRename and re-title wiki documents
Richard Lander [Sun, 12 Apr 2015 23:51:23 +0000 (16:51 -0700)]
Rename and re-title wiki documents

9 years agoChange pathing in documentation to match build update
Richard Lander [Wed, 1 Apr 2015 18:28:06 +0000 (11:28 -0700)]
Change pathing in documentation to match build update

9 years agoAdding note about installing mono packages built from source and not from the officia...
Matthew Whilden [Wed, 1 Apr 2015 00:28:44 +0000 (17:28 -0700)]
Adding note about installing mono packages built from source and not from the official location

9 years agoUpdate Windows instructions
Richard Lander [Tue, 14 Apr 2015 21:03:09 +0000 (14:03 -0700)]
Update Windows instructions

9 years agoUpdate instructions to match Linux
Richard Lander [Sat, 11 Apr 2015 19:56:41 +0000 (12:56 -0700)]
Update instructions to match Linux

9 years agoUpdated Linux instructions
Jan Kotas [Wed, 25 Mar 2015 02:34:49 +0000 (19:34 -0700)]
Updated Linux instructions

9 years agoUpdated Linux instructions
Jan Vorlicek [Tue, 24 Mar 2015 19:58:45 +0000 (20:58 +0100)]
Updated Linux instructions

9 years agoRename OSX instructions
Richard Lander [Tue, 24 Mar 2015 18:06:36 +0000 (11:06 -0700)]
Rename OSX instructions

9 years agoUpdated Linux instructions
Matt Ellis [Thu, 19 Mar 2015 20:53:37 +0000 (13:53 -0700)]
Updated Linux instructions

9 years agoImprove readability of Linux instructions
Richard Lander [Tue, 17 Mar 2015 16:26:34 +0000 (09:26 -0700)]
Improve readability of Linux instructions

9 years agoInitial OS X instructions
Richard Lander [Mon, 16 Mar 2015 07:18:26 +0000 (00:18 -0700)]
Initial OS X instructions

9 years agoCorrect test instructions
Richard Lander [Tue, 14 Apr 2015 21:02:50 +0000 (14:02 -0700)]
Correct test instructions
- Correct running test instructions
- Add links for Linux and Mac OS X builds.

9 years agoUpdated Building and Running CoreCLR on Linux
Matt Ellis [Wed, 4 Mar 2015 23:08:55 +0000 (15:08 -0800)]
Updated Building and Running CoreCLR on Linux

9 years agoUpdated Building and Running CoreCLR on Linux
Jan Vorlicek [Fri, 20 Feb 2015 23:33:52 +0000 (00:33 +0100)]
Updated Building and Running CoreCLR on Linux

9 years agoCreated Testing across repos
AlexGhiondea [Fri, 20 Feb 2015 20:18:14 +0000 (12:18 -0800)]
Created Testing across repos

9 years agoUpdated Building and Running CoreCLR on Linux
Jan Kotas [Sat, 7 Feb 2015 20:22:18 +0000 (12:22 -0800)]
Updated Building and Running CoreCLR on Linux

9 years agoCreated Building and Running CoreCLR on Linux
Matt Ellis [Sat, 7 Feb 2015 00:05:49 +0000 (16:05 -0800)]
Created Building and Running CoreCLR on Linux

9 years agoMerge pull request #702 from dotnet-bot/from-tfs
Jan Kotas [Tue, 14 Apr 2015 20:01:23 +0000 (13:01 -0700)]
Merge pull request #702 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoMerge pull request #703 from janvorli/implement-jit-tailcall
Jan Kotas [Tue, 14 Apr 2015 20:00:55 +0000 (13:00 -0700)]
Merge pull request #703 from janvorli/implement-jit-tailcall

Disable JIT_TailCall invocation on Unix

9 years agoMirror subfolders for unixcorerun.
Matt Ellis [Tue, 14 Apr 2015 17:14:26 +0000 (10:14 -0700)]
Mirror subfolders for unixcorerun.

My previous change introduced a new subfolder to unixcorerun, but I forgot to update the .gitmirror file to a .gitmirrrorall file.

[tfs-changeset: 1452317]

9 years agoMerge pull request #697 from mikem8361/dactablefix
Mike McLaughlin [Tue, 14 Apr 2015 16:51:19 +0000 (09:51 -0700)]
Merge pull request #697 from mikem8361/dactablefix

Add back security class vtables to dac global table

9 years agoMerge pull request #699 from jkotas/readonlycollections
Jan Kotas [Tue, 14 Apr 2015 15:36:25 +0000 (08:36 -0700)]
Merge pull request #699 from jkotas/readonlycollections

Enable generic IReadOnlyCollection interfaces on array for Unix

9 years agoDisable JIT_TailCall invocation on Unix
Jan Vorlicek [Tue, 14 Apr 2015 11:32:51 +0000 (13:32 +0200)]
Disable JIT_TailCall invocation on Unix

This change prevents jitter from performing tail calls in case the tail call
would require a tailcall helper.
The reason is that we don't have the JIT_TailCall function implemented for Unix
and even if we did, the underlying function to copy the arguments, the
StubLinkerCPU::CreateTailCallCopyArgsThunk, would be difficult to port to Unix due
to the fact that it assumes that va_list is represented as the parameters
being placed in memory one after another while on Unix, it is an opaque structure.
Jan Kotas has recommended to disable this kind of tail calls on Unix and
create a work item to refactor the way these tail calls are implemented.
Besides these Unix specific issues, the current implementation has performance
and maintainability issues, according to Jan Kotas.

9 years agoMerge pull request #696 from stephentoub/path_invalid_chars
Jan Vorlicek [Tue, 14 Apr 2015 08:18:57 +0000 (10:18 +0200)]
Merge pull request #696 from stephentoub/path_invalid_chars

Update Path.InvalidFileNameChars on Unix

9 years agoMerge pull request #694 from dotnet-bot/from-tfs
Jan Kotas [Tue, 14 Apr 2015 07:29:57 +0000 (00:29 -0700)]
Merge pull request #694 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoEnable generic IReadOnlyCollection interfaces on array for Unix
Jan Kotas [Tue, 14 Apr 2015 07:25:45 +0000 (00:25 -0700)]
Enable generic IReadOnlyCollection interfaces on array for Unix

IReadOnlyCollection support on array was incorrectly enabled for COM interop only

9 years agoAdd back security classes to dac global vtable.
Mike McLaughlin [Tue, 14 Apr 2015 01:27:46 +0000 (18:27 -0700)]
Add back security classes to dac global vtable.

9 years agoUpdate Path.InvalidFileNameChars on Unix
Stephen Toub [Tue, 14 Apr 2015 01:58:35 +0000 (21:58 -0400)]
Update Path.InvalidFileNameChars on Unix

Path.InvalidFileNameChars included '*', '?', and '\\', which are valid in filenames.

While fixing that, I also fixed up InvalidPathChars, even though it's obsolete and I don't think anything uses it on Unix.

9 years agoMerge pull request #690 from ellismg/fix-mac-build
Matt Ellis [Mon, 13 Apr 2015 16:16:22 +0000 (09:16 -0700)]
Merge pull request #690 from ellismg/fix-mac-build

Fix MacOS Build Break

9 years agoFixing the public key token that gets used to find System.Uri in System.Runtime durin...
Ryan Byington [Mon, 13 Apr 2015 15:36:34 +0000 (08:36 -0700)]
Fixing the public key token that gets used to find System.Uri in System.Runtime during marshaling.

[tfs-changeset: 1451527]

9 years agoMerge pull request #683 from janvorli/refactor-rctopo-awk
Jan Vorlicek [Mon, 13 Apr 2015 14:04:02 +0000 (16:04 +0200)]
Merge pull request #683 from janvorli/refactor-rctopo-awk

Refactor the windows text resources processing

9 years agoFix MacOS Build Break
Matt Ellis [Sun, 12 Apr 2015 07:26:54 +0000 (00:26 -0700)]
Fix MacOS Build Break

The newest version of XCode and the Command Line tools in OSX has an
issue where including some header files will issue an error because the
__debug header can not be included.  See
https://devforums.apple.com/message/1124445 for more context.

While a fix is being developed by apple, simple include a dummy version
of this header file so the build works with the new toolset.

9 years agoMerge pull request #687 from zhangkaizhao/master
Jan Kotas [Sun, 12 Apr 2015 08:52:54 +0000 (01:52 -0700)]
Merge pull request #687 from zhangkaizhao/master

C++11 requires a space between literal and identifier

9 years agoMerge pull request #649 from richlander/rich-dnx
Rich Lander [Sun, 12 Apr 2015 05:26:30 +0000 (22:26 -0700)]
Merge pull request #649 from richlander/rich-dnx

Add instructions to create custom DNX with CoreCLR

9 years agoAdd instructions to create custom DNX with CoreCLR
Richard Lander [Thu, 2 Apr 2015 18:01:03 +0000 (11:01 -0700)]
Add instructions to create custom DNX with CoreCLR

9 years agoMerge pull request #688 from dotnet-bot/from-tfs
Matt Ellis [Sat, 11 Apr 2015 21:41:14 +0000 (14:41 -0700)]
Merge pull request #688 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoWhen marshaling System.URI we to and from WinRT we use need to access System.URI...
Yi Zhang [Sat, 11 Apr 2015 18:39:55 +0000 (11:39 -0700)]
When marshaling System.URI we to and from WinRT we use need to access System.URI members(get_OriginalString, ctor). We currently use TypeName::GetTypeFromAsmQualifiedName to load the type and specify System.dll. The change is to simply use System.Runtime instead.

[tfs-changeset: 1451164]

9 years agoC++11 requires a space between literal and identifier
zhangkaizhao [Sat, 11 Apr 2015 15:50:59 +0000 (23:50 +0800)]
C++11 requires a space between literal and identifier

9 years agoMerge pull request #676 from dotnet-bot/from-tfs
Jan Kotas [Sat, 11 Apr 2015 11:45:01 +0000 (04:45 -0700)]
Merge pull request #676 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoMerge pull request #686 from jkotas/persian
Jan Kotas [Sat, 11 Apr 2015 11:13:39 +0000 (04:13 -0700)]
Merge pull request #686 from jkotas/persian

Add CAL_PERSIAN to portable System.Globalization

9 years agoAdd CAL_PERSIAN to portable System.Globalization
Jan Kotas [Sat, 11 Apr 2015 03:54:34 +0000 (20:54 -0700)]
Add CAL_PERSIAN to portable System.Globalization

9 years agoMerge pull request #685 from jkotas/prebuilt
Jan Kotas [Sat, 11 Apr 2015 03:13:45 +0000 (20:13 -0700)]
Merge pull request #685 from jkotas/prebuilt

Update prebuilt ETW headers

9 years agoUpdate prebuilt ETW headers
Jan Kotas [Sat, 11 Apr 2015 02:08:04 +0000 (19:08 -0700)]
Update prebuilt ETW headers

9 years agoRefactor the windows text resources processing
Jan Vorlicek [Fri, 10 Apr 2015 15:52:13 +0000 (17:52 +0200)]
Refactor the windows text resources processing

This change refactors the windows text resource processing into
a parsing script and a script with platform specific function
responsible for writing to the output file.

9 years agoMerge pull request #684 from libengu/GCTest
Matt Mitchell [Fri, 10 Apr 2015 18:49:25 +0000 (11:49 -0700)]
Merge pull request #684 from libengu/GCTest

Add JIT GC tests

9 years agoAdd JIT GC tests
Bengu Li [Fri, 10 Apr 2015 17:56:47 +0000 (10:56 -0700)]
Add JIT GC tests

Selected working JIT GC test cases from old test bed before ToF
for porting into CoreCLR.

Related proj, config, and sln files added and updated. Passed
build, buildtest, runtest.

Cleaned up the source code. Updated comments to remove internal
information such as reference to internal bug numbers etc, removed
some not useful comment. Code is re-formatted for consistent style.
Copyright added. Scrub tool SSS ran. Pragma warning about parenthesis
ignored.

9 years agoMerge pull request #674 from janvorli/fix-finally-issue
Jan Vorlicek [Fri, 10 Apr 2015 14:21:17 +0000 (16:21 +0200)]
Merge pull request #674 from janvorli/fix-finally-issue

Fix one more exception handling issue

9 years agoFix one more exception handling issue
Jan Vorlicek [Thu, 9 Apr 2015 18:56:37 +0000 (20:56 +0200)]
Fix one more exception handling issue

This change fixes exception handling issue that resulted in a finally block being invoked multiple
times in case of a rethrown exception in some specific cases.
The problem was caused by the ExceptionTracker::StackRange::CombineWith that was not handling
correctly the case when the current stack range was empty. It was copying only the upper limit
from the previous range and leaving the lower limit at the default (max) value.
This case happens in the interleaved exception handling when processing the first managed
frame after a block of native frames was unwound.
There is one additional fix in the UnwindManagedExceptionPass1 where we were popping one
frame from the thread's frame list before performing the native frames unwind. This was
not correct since in some cases, there can be more frames that need to be removed.

9 years agoMerge pull request #647 from josteink/bsd_fpregs
Sergiy Kuryata [Fri, 10 Apr 2015 05:20:24 +0000 (22:20 -0700)]
Merge pull request #647 from josteink/bsd_fpregs

PAL: Preliminary work on FPU/SSE-registers for FreeBSD x86_64.

9 years agoMerge pull request #675 from janvorli/remove-timezone-from-pal
Sergiy Kuryata [Fri, 10 Apr 2015 05:07:37 +0000 (22:07 -0700)]
Merge pull request #675 from janvorli/remove-timezone-from-pal

Remove timezone usage from PAL

9 years agoMerge pull request #671 from pgavlin/lldbfix
Matthew Whilden [Fri, 10 Apr 2015 03:26:56 +0000 (20:26 -0700)]
Merge pull request #671 from pgavlin/lldbfix

Fix a casing problem in lldbplugin/CMakeLists.txt

9 years agoMerge pull request #669 from josteink/freebsd-fixes
Jan Vorlicek [Thu, 9 Apr 2015 20:16:05 +0000 (22:16 +0200)]
Merge pull request #669 from josteink/freebsd-fixes

Fix various FreeBSD build-breakers.

9 years agoRemove timezone usage from PAL
Jan Vorlicek [Thu, 9 Apr 2015 19:53:03 +0000 (21:53 +0200)]
Remove timezone usage from PAL

This change removes all references to the timezone variable, all the functions that
transitively depended on it from PAL and all the related tests.
None of these was used outside of PAL and the tests.

9 years agoVarious FreeBSD fixes.
Jostein Kjønigsen [Wed, 8 Apr 2015 18:40:20 +0000 (18:40 +0000)]
Various FreeBSD fixes.

9 years agoMerge pull request #666 from richlander/rich-profile
Rich Lander [Thu, 9 Apr 2015 11:50:14 +0000 (04:50 -0700)]
Merge pull request #666 from richlander/rich-profile

Add Implementing Profilability BOTR doc

9 years agoMerge pull request #672 from Djuffin/dbi-linux
Eugene Zemtsov [Thu, 9 Apr 2015 09:19:17 +0000 (02:19 -0700)]
Merge pull request #672 from Djuffin/dbi-linux

Use new asm implementation of RtlRestoreContext for EE/debugger

9 years agoFix typo in the comment
Eugene Zemtsov [Thu, 9 Apr 2015 09:00:38 +0000 (02:00 -0700)]
Fix typo in the comment

9 years agoPreliminary work on FPU/SSE-registers for FreeBSD x86_64.
Jostein Kjønigsen [Thu, 9 Apr 2015 08:09:35 +0000 (08:09 +0000)]
Preliminary work on FPU/SSE-registers for FreeBSD x86_64.

This partially addresses https://github.com/dotnet/coreclr/issues/594

9 years agoUse new asm implementation of RtlRestoreContext for EE/debugger on POSIX system
Eugene Zemtsov [Thu, 9 Apr 2015 03:01:08 +0000 (20:01 -0700)]
Use new asm implementation of RtlRestoreContext for EE/debugger on POSIX system

9 years agoMerge pull request #668 from janvorli/rtl-restore-context-asm
Jan Vorlicek [Thu, 9 Apr 2015 00:41:39 +0000 (02:41 +0200)]
Merge pull request #668 from janvorli/rtl-restore-context-asm

Implement RtlRestoreContext in asm

9 years agoFix a casing problem in lldbplugin/CMakeLists.txt
Pat Gavlin [Thu, 9 Apr 2015 00:29:26 +0000 (17:29 -0700)]
Fix a casing problem in lldbplugin/CMakeLists.txt

On Linux, liblldb is installed by default as 'liblldb'. lldbplugin's CMake
file is currently looking for libLLDB, which is necessary for OS X. This
change allows either casing.

9 years agoMerge pull request #663 from janvorli/fix-issue-631
Jan Vorlicek [Thu, 9 Apr 2015 00:23:33 +0000 (02:23 +0200)]
Merge pull request #663 from janvorli/fix-issue-631

Fix hardware exception handling in interleaved handling case

9 years agoMerge pull request #664 from janvorli/refactor-pal-seh-registers-access
Jan Vorlicek [Thu, 9 Apr 2015 00:22:59 +0000 (02:22 +0200)]
Merge pull request #664 from janvorli/refactor-pal-seh-registers-access

Refactor context register access in seh-unwind.cpp

9 years agoUpdate code files to point to profiler doc
Richard Lander [Wed, 8 Apr 2015 14:45:00 +0000 (07:45 -0700)]
Update code files to point to profiler doc

9 years agoImplement RtlRestoreContext in asm
Jan Vorlicek [Wed, 8 Apr 2015 14:32:41 +0000 (16:32 +0200)]
Implement RtlRestoreContext in asm

This change implements the RtlRestoreContext in asm to get consistent and
reliable behavior on all platforms.

9 years agoAdd Implementing Profilability BOTR doc
dotnet-bot [Wed, 8 Apr 2015 14:09:01 +0000 (07:09 -0700)]
Add Implementing Profilability BOTR doc

9 years agoRefactor context register access in seh-unwind.cpp
Jan Vorlicek [Wed, 8 Apr 2015 11:15:32 +0000 (13:15 +0200)]
Refactor context register access in seh-unwind.cpp

This change refactors the native context register access to use the
MCREG_xxx macros so that it can compile on FreeBSD too.

9 years agoMerge pull request #660 from janvorli/fix-issue-633
Jan Vorlicek [Wed, 8 Apr 2015 10:33:59 +0000 (12:33 +0200)]
Merge pull request #660 from janvorli/fix-issue-633

Fix exception handling issue (#633)

9 years agoFix hardware exception handling in interleaved handling case
Jan Vorlicek [Wed, 8 Apr 2015 10:28:17 +0000 (12:28 +0200)]
Fix hardware exception handling in interleaved handling case

The issue is that HandleHardwareException doesn't actually throw an exception, but it calls
directly the DispatchManagedException. In case the exception propagation crosses managed to
native boundary, the exception dispatching code uses throw; to unwind the native frames.
But in this particular case, there was no exception thrown and so the rethrow aborts.
The fix is to add try / catch to the HandleHardwareException that throws the PAL_SEHException
that it got as a parameter, catches it right away and then calls the DispatchManagedException
from the catch handler.

9 years agoMerge changes from parent branch
dotnet-bot [Wed, 8 Apr 2015 00:23:32 +0000 (17:23 -0700)]
Merge changes from parent branch

[tfs-changeset: 1448103]

9 years agoMerge pull request #634 from josteink/exceptions
Jan Vorlicek [Tue, 7 Apr 2015 23:53:16 +0000 (01:53 +0200)]
Merge pull request #634 from josteink/exceptions

Make FreeBSD handle exceptions like Linux.

9 years agoMerge pull request #655 from josteink/freebsd-include
Jan Vorlicek [Tue, 7 Apr 2015 23:50:27 +0000 (01:50 +0200)]
Merge pull request #655 from josteink/freebsd-include

PAL: Use /usr/local/include for includes on FreeBSD.

9 years agoMerge pull request #129 from Knagis/master
Eric StJohn [Tue, 7 Apr 2015 22:55:36 +0000 (15:55 -0700)]
Merge pull request #129 from Knagis/master

StreamReader: Cache a single instance of StringBuilder for each reader to improve performance

9 years agoFix exception handling issue (#633)
Jan Vorlicek [Tue, 7 Apr 2015 22:27:21 +0000 (00:27 +0200)]
Fix exception handling issue (#633)

This change fixes exception handling issue #633. The problem was caused by the
fact that in interleaved exception handling (when exception propagates over
one or more native / managed stack frame boundaries), we were preserving the
m_ScannedStackRange and m_sfResumeStackFrame members of the exception tracker
after unwinding a sequence of native frames and moving on into next block of
managed ones. The m_ScannedStackRange in that case contained addresses of
frames that were already unwound and in case of a rethrown exception, there
could have been new frames in that range. That lead to improper detection
of already processed frames in some cases.
The proper solution is to start with an empty scanned stack range after the
partial unwind that unwinds managed and the adjacent native frames.