platform/upstream/coreclr.git
9 years agoMerge pull request #1066 from jkotas/gcsample
Jan Kotas [Thu, 28 May 2015 20:13:28 +0000 (13:13 -0700)]
Merge pull request #1066 from jkotas/gcsample

Fix GCSample

9 years agoMerge pull request #1067 from pgavlin/jitsln
Pat Gavlin [Thu, 28 May 2015 19:30:51 +0000 (12:30 -0700)]
Merge pull request #1067 from pgavlin/jitsln

Add new JIT tests to the test solution file.

9 years agoMerge pull request #1048 from josteink/gitignore-emacs
Aditya Mandaleeka [Thu, 28 May 2015 18:50:30 +0000 (11:50 -0700)]
Merge pull request #1048 from josteink/gitignore-emacs

Improve .gitignore-file

9 years agoAdd new JIT tests to the test solution file.
Pat Gavlin [Thu, 28 May 2015 18:04:54 +0000 (11:04 -0700)]
Add new JIT tests to the test solution file.

9 years agoFix GCSample
Jan Kotas [Thu, 28 May 2015 15:05:22 +0000 (08:05 -0700)]
Fix GCSample

9 years agoImprove .gitignore-file
Jostein Kjønigsen [Sun, 24 May 2015 19:05:50 +0000 (21:05 +0200)]
Improve .gitignore-file

Currently all emacs-temp files are tracked.
TAGS is for emacs' etags used to track symbols in code-files.
Generated Makefiles from the build-process should also be ignored.

9 years agoMerge pull request #1061 from janvorli/pal-error-strings
Aditya Mandaleeka [Wed, 27 May 2015 22:30:30 +0000 (15:30 -0700)]
Merge pull request #1061 from janvorli/pal-error-strings

Add PAL error message strings

9 years agoMerge pull request #1064 from pgavlin/JITjit64
Pat Gavlin [Wed, 27 May 2015 20:40:34 +0000 (13:40 -0700)]
Merge pull request #1064 from pgavlin/JITjit64

Import JIT tests.

9 years agoMerge pull request #1057 from janvorli/flush-process-write-buffers-page
Jan Vorlicek [Wed, 27 May 2015 20:39:55 +0000 (22:39 +0200)]
Merge pull request #1057 from janvorli/flush-process-write-buffers-page

Implement FlushProcessWriteBuffers using the page protection mechanism

9 years agoMerge pull request #1059 from libengu/JITRegression1
Bengu Li [Wed, 27 May 2015 20:00:43 +0000 (13:00 -0700)]
Merge pull request #1059 from libengu/JITRegression1

Add Regression/VS-ia64-JIT test cases for JIT.

9 years agoImplement FlushProcessWriteBuffers using the page protection mechanism
Jan Vorlicek [Fri, 22 May 2015 18:11:32 +0000 (20:11 +0200)]
Implement FlushProcessWriteBuffers using the page protection mechanism

9 years agoAdd PAL error message strings
Jan Vorlicek [Wed, 27 May 2015 12:50:37 +0000 (14:50 +0200)]
Add PAL error message strings

This change adds PAL error message strings to PAL. Until now, the
FormatMessage in PAL formatted the PAL error codes as "Error xxx".
With this change, it inserts textual form of the messages.

9 years agoImport JIT tests.
Pat Gavlin [Wed, 27 May 2015 00:41:38 +0000 (17:41 -0700)]
Import JIT tests.

This imports the remainder of the tests under JIT/jit64 that are able
to target CoreCLR.

9 years agoAdd Regression/VS-ia64-JIT test cases for JIT.
Bengu Li [Wed, 27 May 2015 00:39:16 +0000 (17:39 -0700)]
Add Regression/VS-ia64-JIT test cases for JIT.

Add Regression/VS-ia64-JIT test cases for JIT. Related proj, config files added.
AllTestProjects.sln update delayed for a batch adding. Passed build, buildtest, runtest.

9 years agoMerge pull request #1055 from janvorli/cleanup-unused-members
Jan Vorlicek [Tue, 26 May 2015 23:08:14 +0000 (01:08 +0200)]
Merge pull request #1055 from janvorli/cleanup-unused-members

Cleanup several unused class members

9 years agoMerge pull request #1056 from dotnet-bot/from-tfs
Jan Kotas [Tue, 26 May 2015 23:06:04 +0000 (16:06 -0700)]
Merge pull request #1056 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoCleanup several unused class members
Jan Vorlicek [Tue, 26 May 2015 19:30:32 +0000 (21:30 +0200)]
Cleanup several unused class members

The change removes few unused class members and puts few others
under appropriate FEATURE_xxx ifdefs

9 years agoMerge pull request #1054 from dotnet-bot/from-tfs
Matt Ellis [Tue, 26 May 2015 20:47:21 +0000 (13:47 -0700)]
Merge pull request #1054 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoMerge pull request #1050 from janvorli/fix-warning-no-overloaded-virtual
Jan Vorlicek [Tue, 26 May 2015 19:50:48 +0000 (21:50 +0200)]
Merge pull request #1050 from janvorli/fix-warning-no-overloaded-virtual

Fix warning no-overloaded-virtual

9 years agoFix warning no-overloaded-virtual
Jan Vorlicek [Mon, 25 May 2015 19:04:31 +0000 (21:04 +0200)]
Fix warning no-overloaded-virtual

This warning is issued when a derived class defines a virtual method with the
same name as its base class, but different set of parameters. The base class
virtual method is hidden in that case. Clang issues a warning here.
To fix the warning, I have added "using Base::Method" to the private section
of all the derived classes.

9 years agoMerge pull request #1052 from janvorli/fix-warnings-delete-non-virtual-dtor
Jan Kotas [Tue, 26 May 2015 18:10:26 +0000 (11:10 -0700)]
Merge pull request #1052 from janvorli/fix-warnings-delete-non-virtual-dtor

Fix the virtual destructor warning

9 years agoFix resource string
Matt Ellis [Tue, 26 May 2015 18:06:39 +0000 (11:06 -0700)]
Fix resource string

One of the resource strings used by mscorlib had a wrong character
in it, this brings the data back into alignment with what is provided
by the Windows Globalization folks.

[tfs-changeset: 1476903]

9 years agoMerge pull request #1049 from janvorli/fix-warning-implicit-exception-spec-mismatch
Jan Kotas [Tue, 26 May 2015 17:42:13 +0000 (10:42 -0700)]
Merge pull request #1049 from janvorli/fix-warning-implicit-exception-spec-mismatch

Fix the implicit-exception-spec-mismatch warning

9 years agoMerge pull request #1045 from libengu/JITGenerics
Bengu Li [Tue, 26 May 2015 16:02:06 +0000 (09:02 -0700)]
Merge pull request #1045 from libengu/JITGenerics

Add all JIT/Generics test cases

9 years agoFix the virtual destructor warning
Jan Vorlicek [Fri, 22 May 2015 22:42:43 +0000 (00:42 +0200)]
Fix the virtual destructor warning

This change changes destructors to be virtual or adds virtual ones where they were
missing based on the clang warnings.

9 years agoFix the implicit-exception-spec-mismatch warning
Jan Vorlicek [Mon, 25 May 2015 11:05:52 +0000 (13:05 +0200)]
Fix the implicit-exception-spec-mismatch warning

Fix the warning. Since VC++ until VS2015 doesn't support the noexcept keyword,
define a NOEXCEPT macro as empty for VC++ older than VS2015 and as noexcept for others.

9 years agoAdd all JIT/Generics test cases
Bengu Li [Fri, 22 May 2015 20:42:04 +0000 (13:42 -0700)]
Add all JIT/Generics test cases

Add all remaining JIT/Generics test cases for JIT. Related proj, config,
and sln files added and updated. Passed build, buildtest, runtest.

9 years agoMerge pull request #1042 from janvorli/remove-setlocale
Jan Vorlicek [Fri, 22 May 2015 19:21:44 +0000 (21:21 +0200)]
Merge pull request #1042 from janvorli/remove-setlocale

Remove the InitializeStringResources function

9 years agoRemove the InitializeStringResources function
Jan Vorlicek [Fri, 22 May 2015 09:50:55 +0000 (11:50 +0200)]
Remove the InitializeStringResources function

Now that the default string resources are embedded in the libcoreclr, it is no longer necessary to
set the LC_MESSAGES locale to en_US in the PAL.

9 years agoMerge pull request #1041 from pgavlin/JITMethodical
Pat Gavlin [Thu, 21 May 2015 22:14:32 +0000 (15:14 -0700)]
Merge pull request #1041 from pgavlin/JITMethodical

Import more JIT tests.

9 years agoAdds support for per-branch symbol indexing customization
Noah Falk [Thu, 21 May 2015 20:34:31 +0000 (13:34 -0700)]
Adds support for per-branch symbol indexing customization

Adds an option so that each branch can specify a unique set of files that should be published to the symbol server. This is done by setting Release.SymbolServer.CustomPublishListDataFile = <path_to_file_in_the_build_that_lists_paths_to_publish>. This would be used by ProjectK and ProjectN branches which need to index/archive files that are different from what desktop CLR ships. Making the central build logic extensible means we shouldn't need to edit this tool in the future as the file list changes or yet other new SKUs are created.

The changes should be strictly opt-in on a per-branch basis, so no existing branch will change behavior. If a branch does opt-in then this new behavior overrides the CLRDebugSupportFiles option, regardless of whether that is enabled on the branch or not. All the unit tests, including the new ones I added as part of this feature, are passing when I run them locally.

There is also an initial trivial implementation to create the file list for ProjectK. I could easily imagine us changing the mechanism  to something more integrated in the future.

[tfs-changeset: 1475109]

9 years agoMerge pull request #1030 from josteink/freebsd-tests
Aditya Mandaleeka [Thu, 21 May 2015 20:32:02 +0000 (13:32 -0700)]
Merge pull request #1030 from josteink/freebsd-tests

CoreClr: Make tests run on FreeBSD and document how to run them.

9 years agoImport more JIT tests.
Pat Gavlin [Thu, 21 May 2015 17:41:53 +0000 (10:41 -0700)]
Import more JIT tests.

This imports the remainder of the tests under JIT\Methodical that are
able to target CoreCLR.

This also contains build fixes for tests under
JIT\Directed\coverage\oldtests that were mangled during a previous import.

9 years agoCoreClr: Make tests run on FreeBSD and document how to run them.
Jostein Kjønigsen [Thu, 21 May 2015 13:23:33 +0000 (23:23 +1000)]
CoreClr: Make tests run on FreeBSD and document how to run them.

Not all platforms have bash in /bin/.

Documentation added to the general FreeBSD build-instructions.

9 years agoMerge pull request #1028 from mmitche/fix-cmd-exit-codes
Pat Gavlin [Thu, 21 May 2015 18:32:04 +0000 (11:32 -0700)]
Merge pull request #1028 from mmitche/fix-cmd-exit-codes

Fix cmd exit codes

9 years agoDisable tests failing at runtime and remove tests failing to compile.
Matt Mitchell [Thu, 21 May 2015 16:53:11 +0000 (09:53 -0700)]
Disable tests failing at runtime and remove tests failing to compile.

See #1036, #1037 and #1038

9 years agoMerge pull request #1007 from AlexGhiondea/updateBuildToolsVersion
Jan Kotas [Thu, 21 May 2015 06:41:46 +0000 (23:41 -0700)]
Merge pull request #1007 from AlexGhiondea/updateBuildToolsVersion

Update Microsoft.DotNet.BuildTools.CoreCLR to version 1.0.2.

9 years agoMerge pull request #1029 from dotnet-bot/from-tfs
Jan Kotas [Thu, 21 May 2015 06:41:13 +0000 (23:41 -0700)]
Merge pull request #1029 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoReadyToRun bugfixes
Jan Kotas [Wed, 20 May 2015 23:05:59 +0000 (16:05 -0700)]
ReadyToRun bugfixes

Fix bugs found by desktop tests

[tfs-changeset: 1474260]

9 years agoMerge pull request #1024 from JohnChen0/master
John Chen [Wed, 20 May 2015 23:03:04 +0000 (16:03 -0700)]
Merge pull request #1024 from JohnChen0/master

Clarify that the final mscorlib.dll is in bin\Product

9 years agoUpdate Microsoft.DotNet.BuildTools.CoreCLR to version 1.0.2.
Alex Ghiondea [Fri, 15 May 2015 19:27:38 +0000 (12:27 -0700)]
Update Microsoft.DotNet.BuildTools.CoreCLR to version 1.0.2.

This version updates BclRewriter.exe with a copy that can run on Dev15 RC

9 years agoFix exit codes in build/test scripts
Matt Mitchell [Wed, 20 May 2015 22:38:31 +0000 (15:38 -0700)]
Fix exit codes in build/test scripts

The use of goto :eof in numerous places in the build and test scripts is problematic.  If preceded by an echo or other command, it will overwrite the exit code and the script may return incorrectly.  This was happening for buildtest, masking a recent ycompilation error in one of the tests.

Change all of the goto :eof's to exit /b.

9 years agoMerge pull request #1025 from AndyAyersMS/TypedReferenceTest
Andy Ayers [Wed, 20 May 2015 22:32:14 +0000 (15:32 -0700)]
Merge pull request #1025 from AndyAyersMS/TypedReferenceTest

Add simple JIT test for typed references.

9 years agoAdd simple JIT test for typed references.
Andy Ayers [Wed, 20 May 2015 21:01:04 +0000 (14:01 -0700)]
Add simple JIT test for typed references.

This compiles directly against mscorlib since TypedReference is not part of any contract assembly.

9 years agoMerge pull request #1021 from pgavlin/JITDirected
Pat Gavlin [Wed, 20 May 2015 17:16:53 +0000 (10:16 -0700)]
Merge pull request #1021 from pgavlin/JITDirected

Import JIT tests.

9 years agoClarify that the final mscorlib.dll is in bin\Product
John Chen (JOCHEN7) [Wed, 20 May 2015 16:30:56 +0000 (09:30 -0700)]
Clarify that the final mscorlib.dll is in bin\Product

9 years agoMerge pull request #1023 from janvorli/add-readytorun-to-glossary
Jan Kotas [Wed, 20 May 2015 15:48:50 +0000 (08:48 -0700)]
Merge pull request #1023 from janvorli/add-readytorun-to-glossary

Add ReadyToRun term to the glossary

9 years agoAdd ReadyToRun term to the glossary
Jan Vorlicek [Wed, 20 May 2015 14:35:11 +0000 (16:35 +0200)]
Add ReadyToRun term to the glossary

9 years agoMerge pull request #1022 from janvorli/readytorun-linux
Jan Kotas [Wed, 20 May 2015 12:10:07 +0000 (05:10 -0700)]
Merge pull request #1022 from janvorli/readytorun-linux

Enable ReadyToRun feature on Unix

9 years agoEnable ReadyToRun feature on Unix
Jan Vorlicek [Thu, 30 Apr 2015 20:32:25 +0000 (13:32 -0700)]
Enable ReadyToRun feature on Unix

This change enables building the ReadyToRun feature on Unix systems.

9 years agoMerge pull request #1004 from BruceForstall/JitCodingConventions
Carol Eidt [Tue, 19 May 2015 23:52:16 +0000 (16:52 -0700)]
Merge pull request #1004 from BruceForstall/JitCodingConventions

Add JIT Coding Conventions document in markdown format

9 years agoAdd JIT Coding Conventions document in markdown format
Bruce Forstall [Wed, 13 May 2015 22:40:12 +0000 (15:40 -0700)]
Add JIT Coding Conventions document in markdown format

9 years agoImport JIT tests.
Pat Gavlin [Mon, 18 May 2015 16:53:47 +0000 (09:53 -0700)]
Import JIT tests.

This brings over most of the tests from `JIT/Directed` that can
target CoreCLR.

9 years agoMerge pull request #1020 from dotnet-bot/from-tfs
Jan Kotas [Tue, 19 May 2015 20:21:10 +0000 (13:21 -0700)]
Merge pull request #1020 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoMerge pull request #1009 from adityamandaleeka/string-resources-linux
Aditya Mandaleeka [Tue, 19 May 2015 19:59:52 +0000 (12:59 -0700)]
Merge pull request #1009 from adityamandaleeka/string-resources-linux

Ensure fallback to English resources on non-Windows platforms

9 years agoSimplify logic for ensuring minimum hex length in rctocpp
Aditya Mandaleeka [Tue, 19 May 2015 19:19:28 +0000 (12:19 -0700)]
Simplify logic for ensuring minimum hex length in rctocpp

Simplified the logic for ensuring that a hex string has 8 characters after
the '0x' prefix. Also clarified a comment about potential loss of numeric
precision when using numbers as indices in awk arrays.

9 years agoFix potential null pointer dereference
Jan Kotas [Tue, 19 May 2015 07:55:02 +0000 (00:55 -0700)]
Fix potential null pointer dereference

Calling WriteFile with both lpOverlapped and lpNumberOfBytesWritten set to null is invalid combination on Windows 7

[tfs-changeset: 1472978]

9 years agoEnsure fallback to English resources on non-Windows platforms
Aditya Mandaleeka [Fri, 15 May 2015 23:56:23 +0000 (16:56 -0700)]
Ensure fallback to English resources on non-Windows platforms

Take the resources in RC files and build a static library that contains
the ID->English string mappings. Use those strings as the key to gettext
so that when gettext is not able to find a suitable string in the desired
language, it falls back on returning the English string.

9 years agoMerge pull request #966 from libengu/TestNan
Bengu Li [Mon, 18 May 2015 20:54:25 +0000 (13:54 -0700)]
Merge pull request #966 from libengu/TestNan

Add Methodical/NaN test cases for JIT.

9 years agoMerge pull request #1014 from JohnChen0/master
Jan Kotas [Mon, 18 May 2015 20:12:17 +0000 (13:12 -0700)]
Merge pull request #1014 from JohnChen0/master

Fix register used in method fixup stubs

9 years agoFix register used in method fixup stubs
John Chen (CLR) [Mon, 18 May 2015 17:18:21 +0000 (10:18 -0700)]
Fix register used in method fixup stubs

On x64, Linux uses rsi instead of rdx to pass the second parameter.

9 years agoMerge pull request #1013 from dotnet-bot/from-tfs
Jan Kotas [Mon, 18 May 2015 15:57:03 +0000 (08:57 -0700)]
Merge pull request #1013 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoMerge pull request #1001 from dotnet-bot/from-tfs
Jan Kotas [Mon, 18 May 2015 15:06:24 +0000 (08:06 -0700)]
Merge pull request #1001 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoRollback error handling change in CorHost2::SetStartupFlags
Jan Kotas [Mon, 18 May 2015 14:33:51 +0000 (07:33 -0700)]
Rollback error handling change in CorHost2::SetStartupFlags

This change is breaking existing CoreCLR hosts.

[tfs-changeset: 1472596]

9 years agoFix contract for PEFile::IsILImageReadyToRun
Jan Kotas [Mon, 18 May 2015 14:29:18 +0000 (07:29 -0700)]
Fix contract for PEFile::IsILImageReadyToRun

[tfs-changeset: 1472594]

9 years agoHandle NULL explicitly in VirtualCallStubManager::getStubKind
Jan Kotas [Mon, 18 May 2015 14:27:20 +0000 (07:27 -0700)]
Handle NULL explicitly in VirtualCallStubManager::getStubKind

[tfs-changeset: 1472593]

9 years agoMerge pull request #1006 from pgavlin/JitInterfaceNullRef
Pat Gavlin [Fri, 15 May 2015 23:05:43 +0000 (16:05 -0700)]
Merge pull request #1006 from pgavlin/JitInterfaceNullRef

Fix a null dereference in the JIT interface.

9 years agoFix a null dereference in the JIT interface.
Pat Gavlin [Fri, 15 May 2015 20:45:57 +0000 (13:45 -0700)]
Fix a null dereference in the JIT interface.

9 years agoMerge pull request #998 from kangaroo/gitignore-updates
Jan Kotas [Fri, 15 May 2015 13:41:15 +0000 (06:41 -0700)]
Merge pull request #998 from kangaroo/gitignore-updates

Add atom-build and ctags to gitignore

9 years agoUpdate the OSS mscorlib to match the closed one by doing the following
Pallavi Taneja [Fri, 15 May 2015 00:37:35 +0000 (17:37 -0700)]
Update the OSS mscorlib to match the closed one by doing the following

1. Updated the location from where we pick up the whitelists.
2. Updated the debug flag to debug+ debug:pdbOnly
3. Removed the CODE_ANALYSIS flag from the ret builds.

[tfs-changeset: 1471259]

9 years agoMerge changes from parent branch
Wes Haggard [Fri, 15 May 2015 02:50:18 +0000 (19:50 -0700)]
Merge changes from parent branch

[tfs-changeset: 1471040]

9 years agoMerge pull request #999 from dotnet-bot/from-tfs
Jan Kotas [Thu, 14 May 2015 21:45:50 +0000 (14:45 -0700)]
Merge pull request #999 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoMerge pull request #996 from dotnet-bot/from-tfs
Jan Kotas [Thu, 14 May 2015 20:48:06 +0000 (13:48 -0700)]
Merge pull request #996 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoMerge pull request #997 from tony/chmod-x-freebsd-install-lldb
Jan Kotas [Thu, 14 May 2015 20:47:57 +0000 (13:47 -0700)]
Merge pull request #997 from tony/chmod-x-freebsd-install-lldb

[trivial] chmod +x freebsd lldb script

9 years agoAdd atom-build and ctags to gitignore
Geoff Norton [Thu, 14 May 2015 17:49:51 +0000 (10:49 -0700)]
Add atom-build and ctags to gitignore

9 years agochmod +x freebsd lldb script
Tony Narlock [Thu, 14 May 2015 02:48:33 +0000 (21:48 -0500)]
chmod +x freebsd lldb script

9 years agoRemove circular dependency from System.Diagnostics.Tracing
Eric St. John [Wed, 13 May 2015 22:05:57 +0000 (15:05 -0700)]
Remove circular dependency from System.Diagnostics.Tracing

EventSource was recently changed to depend on System.Collections.Concurrent, which is a problem since System.Collections.Concurrent itself uses eventsource.  This cycle caused issues during package resolution (NUGET/DNX fails fast when it finds  a cycle) and would also cause problems during cross-gen.

Desktop & CoreCLR do not have this cycle since ConcurrentDictionary and EventSource both live in mscorlib.  This is only a problem for N.

According to @VanceM the FEATURE_ACTIVITYSAMPLING that requires ConcurrentDictionary is not needed for ProjectN so we are disabling it.  The feature is not needed for CoreCLR either, so even though we don't care about the cycle we'll remove the feature for consistency.

[tfs-changeset: 1470229]

9 years agoRemoving System.dll from ProjectK and NetCoreForCoreCLR
Ryan Byington [Wed, 13 May 2015 21:24:23 +0000 (14:24 -0700)]
Removing System.dll from ProjectK and NetCoreForCoreCLR

Updating the runtime to find the necessary marshing helpers in the new assemblies for CoreCLR builds.

[tfs-changeset: 1470196]

9 years agoMerge pull request #994 from dotnet-bot/from-tfs
Jan Kotas [Wed, 13 May 2015 18:44:37 +0000 (11:44 -0700)]
Merge pull request #994 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoWhile trying to throw MissingManifestResourceException in NetCoreForCoreCLR we try...
Pallavi Taneja [Wed, 13 May 2015 17:20:39 +0000 (10:20 -0700)]
While trying to throw MissingManifestResourceException in NetCoreForCoreCLR we try to load MissingManifestResource_ResWFileNotLoaded, which is not present in the CoreCLR version of the mscorlib, resulting in throwing ArgumentNullException instead. This change simply adds the two resources to the CoreCLR version of the assembly.

[tfs-changeset: 1469999]

9 years agoMerge pull request #992 from dotnet-bot/from-tfs
Jan Kotas [Tue, 12 May 2015 23:42:45 +0000 (16:42 -0700)]
Merge pull request #992 from dotnet-bot/from-tfs

Merge changes from TFS

9 years agoMinor fix: add 'const' inadvertently omitted from CS #1467781.
Carol Eidt [Tue, 12 May 2015 23:00:55 +0000 (16:00 -0700)]
Minor fix: add 'const' inadvertently omitted from CS #1467781.

[tfs-changeset: 1469457]

9 years agoMerge pull request #981 from CarolEidt/EnableSIMDAndAVX
Carol Eidt [Tue, 12 May 2015 22:28:50 +0000 (15:28 -0700)]
Merge pull request #981 from CarolEidt/EnableSIMDAndAVX

Enable FEATURE_SIMD and FEATURE_AVX_SUPPORT in the JIT

9 years agoEnable FEATURE_SIMD and FEATURE_AVX_SUPPORT in the JIT
Carol Eidt [Tue, 12 May 2015 04:25:51 +0000 (21:25 -0700)]
Enable FEATURE_SIMD and FEATURE_AVX_SUPPORT in the JIT

For amd64 processors, the JIT supports SIMD intrinsics and supports generating AVX instructions when the processor support is available.

Fix # 977

9 years agoMerge pull request #982 from AndreyAkinshin/master
Carol Eidt [Tue, 12 May 2015 21:11:14 +0000 (14:11 -0700)]
Merge pull request #982 from AndreyAkinshin/master

Documentation/ryujit-overview.md: small improvements

9 years agoDocumentation/ryujit-overview.md: small improvements
Andrey Akinshin [Tue, 12 May 2015 07:59:37 +0000 (10:59 +0300)]
Documentation/ryujit-overview.md: small improvements

9 years agoMerge pull request #988 from pgavlin/GcInfoConst
Pat Gavlin [Tue, 12 May 2015 19:43:51 +0000 (12:43 -0700)]
Merge pull request #988 from pgavlin/GcInfoConst

Fix some const-correctness issues in the GC info encoder.

9 years agoMerge pull request #986 from janvorli/fix-osx-personality
Jan Vorlicek [Tue, 12 May 2015 19:40:38 +0000 (21:40 +0200)]
Merge pull request #986 from janvorli/fix-osx-personality

Fix OSX personality routines encoding

9 years agoFix some const-correctness issues in the GC info encoder.
Pat Gavlin [Tue, 12 May 2015 18:27:16 +0000 (11:27 -0700)]
Fix some const-correctness issues in the GC info encoder.

9 years agoMerge pull request #985 from jkotas/cachefullname
Jan Kotas [Tue, 12 May 2015 17:26:05 +0000 (10:26 -0700)]
Merge pull request #985 from jkotas/cachefullname

Cache Type.FullName in StackTrace

9 years agoFix OSX personality routines encoding
Jan Vorlicek [Tue, 12 May 2015 15:31:09 +0000 (17:31 +0200)]
Fix OSX personality routines encoding

This change fixes a crash that occured in case a managed callback
called from a native code throws an exception. The correct behavior
is to exit the process and dump the managed call stack. It works ok
on Linux, but on OSX, it crashes with segmentation violation trying
to execute code at address 4.
The problem is caused by the fact that either the assembler or
the linker ignores personality routines specified using the encoding
0 (absolute pointer) and stores value 4 instead of the routine address
no matter what routine is specified.
Fortunatelly, there is another encoding that can be used and that works.
It is an indirect PC relative encoding (code 0x9b).
However, there is another problem. The linker issues a warning when there
are more than 3 personality routines in the whole libcoreclr.dylib:
ld: warning: too many personality routines for compact unwind to encode
As for now, I have removed the ExceptionHijackPersonalityRoutine from
the ExceptionHijack asm helper to fix this problem.
We will need to figure out what to do about it once we enable the thread
hijacking on Unix. This personality routine's purpose is to make stack
walker walk stack of a highjacked function as if the highhack routine was
called from it. It seems we can use a different technique for that -
to create a helper frame that would have IP pointing to a function that
is never called, but has an unwind info that ensures that we walk
through the hijack correctly. The same technique is used for hardware
exception handling on OSX.

9 years agoCache Type.FullName in StackTrace
Jan Kotas [Tue, 12 May 2015 16:00:23 +0000 (09:00 -0700)]
Cache Type.FullName in StackTrace

9 years agoMerge pull request #929 from justinvp/stacktrace_stringallocations
Jan Kotas [Tue, 12 May 2015 15:47:26 +0000 (08:47 -0700)]
Merge pull request #929 from justinvp/stacktrace_stringallocations

Removes some string-related allocations from StackTrace and StackFrame

9 years agoMerge pull request #979 from stephentoub/export_opensemaphorew
Jan Kotas [Tue, 12 May 2015 02:34:40 +0000 (19:34 -0700)]
Merge pull request #979 from stephentoub/export_opensemaphorew

Export OpenSemaphoreW from PAL

9 years agoMerge pull request #975 from jkotas/missingrc
Jan Kotas [Tue, 12 May 2015 02:34:17 +0000 (19:34 -0700)]
Merge pull request #975 from jkotas/missingrc

Update assertion failure message

9 years agoUpdate assertion failure message
Jan Kotas [Mon, 11 May 2015 18:49:22 +0000 (11:49 -0700)]
Update assertion failure message

9 years agoMerge pull request #980 from janvorli/fix-vm-range-issue
Jan Kotas [Tue, 12 May 2015 01:42:38 +0000 (18:42 -0700)]
Merge pull request #980 from janvorli/fix-vm-range-issue

Fix VM total space issue

9 years agoFix VM total space issue
Jan Vorlicek [Tue, 12 May 2015 00:43:48 +0000 (02:43 +0200)]
Fix VM total space issue

This change fixes an issue that caused brick table corruption due to
an incorrectly reported VM total space and the gc_heap::grow_brick_card_tables
not being resilient against that.
This change updates the GlobalMemoryStatusEx PAL function to return appropriate
VM user space size value and also modifies the gc_heap::grow_brick_card_tables
so that in case an end address of a new GC heap segment is larger than the
approximate maximum obtained using the GlobalMemoryStatusEx, we don't
clip down the range that the new card_table / brick_table will cover.
Otherwise an object allocated above that range would cause indexing into the
card_table to overrun the end of the table.

9 years agoExport OpenSemaphoreW from PAL
Stephen Toub [Mon, 11 May 2015 22:59:19 +0000 (18:59 -0400)]
Export OpenSemaphoreW from PAL

Semaphore.OpenExisting uses OpenSemaphoreW from the PAL, but it's not being exported, resulting in EntryPointNotFoundExceptions.

9 years agoRemove unnecessary allocations
Justin Van Patten [Tue, 5 May 2015 16:36:22 +0000 (09:36 -0700)]
Remove unnecessary allocations

I noticed some string allocations that can be trivially avoided in
StackTrace and StackFrame.