platform/upstream/coreclr.git
8 years agoImprove vtbl matching loop in DacGetVtNameW. (#5179)
Dmitri-Botcharnikov [Tue, 24 May 2016 21:59:24 +0000 (01:59 +0400)]
Improve vtbl matching loop in DacGetVtNameW. (#5179)

8 years agoFix filter funclet handling during stack walk on Unix (#5183)
Jan Vorlicek [Tue, 24 May 2016 21:43:49 +0000 (23:43 +0200)]
Fix filter funclet handling during stack walk on Unix (#5183)

The filter funclets are not handled correctly during stack walk on Unix. When
the funclet's parent frame is reached, the filter funclet was mistakenly handled
as a non-filter funclet by the Unix specific code that is used to figure out
parent frames of funclets from exception trackers.
The fix is to skip this Unix specific code when we are looking for a parent of
a filter funclet. Filter funclet frame is always on the stack when the stack
walk reaches its parent frame.

8 years agoMerge pull request #5153 from LLITCHEV/r2r_jitstress_jobs
Lubomir Litchev [Tue, 24 May 2016 21:26:27 +0000 (14:26 -0700)]
Merge pull request #5153 from LLITCHEV/r2r_jitstress_jobs

Add R2R JitStress, JitStressRegs, JITMinOpts and ForceRelocs jobs to CI.

8 years agoAdded jit related R2R jobs.
Lubomir Litchev [Tue, 24 May 2016 21:25:37 +0000 (14:25 -0700)]
Added jit related R2R jobs.

Added jobs for R2R jitstress, jitstressregs, JITMinOpts and ForceRelocs testing.

8 years agoMerge pull request #5192 from wtgodbe/updatePublishedVersions
William Godbe [Tue, 24 May 2016 19:42:30 +0000 (12:42 -0700)]
Merge pull request #5192 from wtgodbe/updatePublishedVersions

Add PowerShell script to update latest package version info in Versions repo

8 years agoAdd PowerShell script to update latest package version info in Versions repo
wtgodbe [Tue, 24 May 2016 19:13:18 +0000 (12:13 -0700)]
Add PowerShell script to update latest package version info in Versions repo

8 years agoMerge pull request #5129 from leemgs/upstream-diff-time-of-unittest
Aditya Mandaleeka [Tue, 24 May 2016 17:21:45 +0000 (10:21 -0700)]
Merge pull request #5129 from leemgs/upstream-diff-time-of-unittest

Linux/ARM: Display execution time of ./tests/runtest.sh

8 years agoMerge pull request #5171 from wtgodbe/syncFix
William Godbe [Tue, 24 May 2016 17:07:33 +0000 (10:07 -0700)]
Merge pull request #5171 from wtgodbe/syncFix

Update sync.cmd to download Azure Blobs. Also change publish.proj to …

8 years agoMerge pull request #5180 from RussKeldorph/jit32va
Russ Keldorph [Tue, 24 May 2016 15:09:22 +0000 (08:09 -0700)]
Merge pull request #5180 from RussKeldorph/jit32va

Exclude varags tests for JIT32

8 years agoExclude varags tests for JIT32
Russ Keldorph [Tue, 24 May 2016 14:00:02 +0000 (07:00 -0700)]
Exclude varags tests for JIT32

Add same exclusions as added for other platforms in #5124.  These were
missed because we don't have JIT32 testing on dotnet-ci.

8 years agoMerge pull request #5170 from kouvel/NamedMutexPalTestFix
Koundinya Veluri [Tue, 24 May 2016 07:41:22 +0000 (00:41 -0700)]
Merge pull request #5170 from kouvel/NamedMutexPalTestFix

Fix intermittent test failure in paltest_namedmutex_test1

8 years agoMerge pull request #5173 from kyulee1/ilasmpack
Kyungwoo Lee [Tue, 24 May 2016 05:02:34 +0000 (22:02 -0700)]
Merge pull request #5173 from kyulee1/ilasmpack

ILAsm/ILDAsm Package

8 years agoILAsm/ILDAsm Package
Kyungwoo Lee [Mon, 23 May 2016 22:33:23 +0000 (15:33 -0700)]
ILAsm/ILDAsm Package

Fixes #5172
This has dependency on CoreCLR.
Use the same version 1.0.3 as CoreCLR.

Tested both packages are produced in Windows/Linux locally.

8 years agoAdd R2R JitStress, JitStressRegs, JITMinOpts and ForceRelocs jobs to CI.
Lubomir Litchev [Sat, 21 May 2016 21:23:11 +0000 (14:23 -0700)]
Add R2R JitStress, JitStressRegs, JITMinOpts and ForceRelocs jobs to CI.

8 years agoMerge pull request #4884 from JeremyKuhne/JeremyKuhne-linuxhandles
Jeremy Kuhne [Mon, 23 May 2016 23:48:28 +0000 (16:48 -0700)]
Merge pull request #4884 from JeremyKuhne/JeremyKuhne-linuxhandles

Update file handle steps

8 years agoLinux/ARM: Add execution time of ./tests/runtest.sh
Geunsik Lim [Fri, 20 May 2016 13:31:32 +0000 (22:31 +0900)]
Linux/ARM: Add execution time of ./tests/runtest.sh

We have to wait for a long time to complete all unit tests on the ARM-based
embedded boards (e.g, Raspberry Pi, Odroid, Chromebook) compared to the
X86-based server environment. So, let's display execution time after finishing
the unit test.

* After PR:
128 minutes and 36 seconds taken to run CoreCLR tests.

ver1:
The existing measured time still includes overlay creation and some
package restoration. So, let's put time_start in front of
if($testDirectories).

Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
Reviewed-by: Aditya Mandaleeka <adityamandaleeka@microsoft.com>
Reviewed-by: Sergiy Kuryata <sergiy-k@microsoft.com>
8 years agoUpdate sync.cmd to download Azure Blobs. Also change publish.proj to publish packages...
wtgodbe [Mon, 23 May 2016 21:31:19 +0000 (14:31 -0700)]
Update sync.cmd to download Azure Blobs. Also change publish.proj to publish packages into symbol/pkg directories

8 years agoMerge pull request #5167 from dotnet-bot/from-tfs
Jan Kotas [Mon, 23 May 2016 21:20:22 +0000 (14:20 -0700)]
Merge pull request #5167 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoMerge pull request #5042 from leemgs/upstream-display-clang-ver
Aditya Mandaleeka [Mon, 23 May 2016 20:49:35 +0000 (13:49 -0700)]
Merge pull request #5042 from leemgs/upstream-display-clang-ver

Linux/ARM: display default clang version info at build-time

8 years agoFix intermittent test failure in paltest_namedmutex_test1
Koundinya Veluri [Mon, 23 May 2016 20:34:27 +0000 (13:34 -0700)]
Fix intermittent test failure in paltest_namedmutex_test1

Fixes #5169:
- Child thread/process was not closing their test mutex before indicating completion to the parent thread/process
- Fixed by enclosing the actual child test code in braces to force closing before the cleanup code runs. This is a minimal fix for the issue, I have a separate change that generally improves and refactors the tests further.

8 years agoChange Unix HW exception unwinding to not to go through signal trampoline (#5140)
Jan Vorlicek [Mon, 23 May 2016 18:22:35 +0000 (20:22 +0200)]
Change Unix HW exception unwinding to not to go through signal trampoline (#5140)

This change modifies the HW exception handling on Unix so that it doesn't unwind
from the context of the DispatchManagedException through the signal trampoline
to the actual location of the exception and uses the exception's context instead.
This fixes problem that some target systems like ARM Linux have with unwinding
through that trampoline.

8 years agoAdd missing #ifdef FEATURE_ICASTABLE
Jan Kotas [Mon, 23 May 2016 16:37:25 +0000 (09:37 -0700)]
Add missing #ifdef FEATURE_ICASTABLE

[tfs-changeset: 1607333]

8 years agoMerge pull request #5145 from kyulee1/newtest2
Kyungwoo Lee [Mon, 23 May 2016 14:29:58 +0000 (07:29 -0700)]
Merge pull request #5145 from kyulee1/newtest2

ARM64: Test Binary Update (afa7fe5486fc90fec7df52bd134b789c568c8b45)

8 years agoMerge pull request #5159 from dotnet-bot/from-tfs
Jan Kotas [Mon, 23 May 2016 02:05:27 +0000 (19:05 -0700)]
Merge pull request #5159 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoMerge pull request #5146 from dotnet-bot/from-tfs
Jan Kotas [Sun, 22 May 2016 23:49:18 +0000 (16:49 -0700)]
Merge pull request #5146 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoUpdate tests to build against rc3-24117-00 (#5154)
Jan Kotas [Sun, 22 May 2016 17:07:15 +0000 (10:07 -0700)]
Update tests to build against rc3-24117-00 (#5154)

8 years agoMerge pull request #5143 from AndyAyersMS/InlineXmlLock
Andy Ayers [Sun, 22 May 2016 16:45:06 +0000 (09:45 -0700)]
Merge pull request #5143 from AndyAyersMS/InlineXmlLock

Inliner: locks for xml read/write access

8 years agoExpose ResolveEventHandler and ResolveEventArgs in the mscorlib facade so that our...
Wes Haggard [Sun, 22 May 2016 05:25:52 +0000 (22:25 -0700)]
Expose ResolveEventHandler and ResolveEventArgs in the mscorlib facade so that our test host still function.

[tfs-changeset: 1607062]

8 years agoARM64: Test Binary Update (afa7fe5486fc90fec7df52bd134b789c568c8b45)
Kyungwoo Lee [Sat, 21 May 2016 00:11:28 +0000 (17:11 -0700)]
ARM64: Test Binary Update (afa7fe5486fc90fec7df52bd134b789c568c8b45)

- vararg tests are deleted.
- dll not found issues are addressed.

Total: 9740
EXPECTED_PASS: 9658(99.2%)
EXPECTED_FAIL: 82(0.8%)

8 years agoUpdate pre-release tags to RC4
Matt Ellis [Sat, 21 May 2016 01:19:30 +0000 (18:19 -0700)]
Update pre-release tags to RC4

The long term plan is to move our packages versions up and the
prerelease tag back down to something like -beta, but for now we just
need to pick something that isn't RC3 as that's what
the release/1.0.0 branches are using.

Doing this gives us time to do the right thing without having version
clashes on myget.

[tfs-changeset: 1606983]

8 years agoMerge pull request #5136 from adityamandaleeka/xrtinit_fix
Aditya Mandaleeka [Sat, 21 May 2016 00:04:33 +0000 (17:04 -0700)]
Merge pull request #5136 from adityamandaleeka/xrtinit_fix

Change how InitAppXRT loads the XRT DLL

8 years agoMerge pull request #4990 from pgavlin/gh4912
Pat Gavlin [Sat, 21 May 2016 00:03:14 +0000 (17:03 -0700)]
Merge pull request #4990 from pgavlin/gh4912

Remove some preprocessor usage from the JIT interface.

8 years agoMerge pull request #5122 from JohnChen0/timeout
John Chen [Fri, 20 May 2016 23:33:45 +0000 (16:33 -0700)]
Merge pull request #5122 from JohnChen0/timeout

Resolve two issues that cause pri1r2r test timeout on Ubuntu

8 years agoInliner: locks for xml read/write access
Andy Ayers [Thu, 19 May 2016 17:39:25 +0000 (10:39 -0700)]
Inliner: locks for xml read/write access

Move CritSecObject into util.h, and use it to lock around reading
and writing inline Xml. Introduce CritSecHolder for RAII management
of the locks.

Add a simple file position cache for methods to speed up replay
when the inline xml file is large.

8 years agoFix broken RHEL debug build link
Aditya Mandaleeka [Fri, 20 May 2016 23:07:48 +0000 (16:07 -0700)]
Fix broken RHEL debug build link

8 years agoMerge pull request #5142 from RussKeldorph/delexcl
Russ Keldorph [Fri, 20 May 2016 22:51:18 +0000 (15:51 -0700)]
Merge pull request #5142 from RussKeldorph/delexcl

Remove ryujit_x86_no_fallback_issues.targets

8 years agoRemove ryujit_x86_no_fallback_issues.targets
Russ Keldorph [Fri, 20 May 2016 22:34:53 +0000 (15:34 -0700)]
Remove ryujit_x86_no_fallback_issues.targets

We have decided this file isn't useful, so its continued presence
is just confusing.

8 years agoMerge pull request #5114 from sejongoh/mark_jit_opt_sensitive
Sejong Oh [Fri, 20 May 2016 22:24:26 +0000 (15:24 -0700)]
Merge pull request #5114 from sejongoh/mark_jit_opt_sensitive

Add JitOptimizationSensitive property to GC/API/WeakReference/IsAlive…

8 years agoMerge pull request #5133 from adiaaida/disableStringarr_cs_ro
Michelle McDaniel [Fri, 20 May 2016 21:54:24 +0000 (14:54 -0700)]
Merge pull request #5133 from adiaaida/disableStringarr_cs_ro

Disable stringarr_cs_ro for x86 RyuJIT

8 years agoMerge pull request #5139 from leculver/shutdown
Lee Culver [Fri, 20 May 2016 21:45:28 +0000 (14:45 -0700)]
Merge pull request #5139 from leculver/shutdown

Prevent core dumps at shutdown due to ETW subsystem

8 years agoDisable debugger termination to prevent shutdown race
Lee Culver [Fri, 20 May 2016 20:57:11 +0000 (13:57 -0700)]
Disable debugger termination to prevent shutdown race

Fixed another instance where debugger shutdown would race with ETW subsystem, causing segfaults.

8 years agoShrink AsyncMethodBuilder.MoveNextRunner by a field in common case (#5131)
Stephen Toub [Fri, 20 May 2016 20:50:38 +0000 (14:50 -0600)]
Shrink AsyncMethodBuilder.MoveNextRunner by a field in common case (#5131)

When an async method yields for the first time, there are several allocations, including a "MoveNextRunner" object that used to store the state machine and an ExecutionContext.  However, for the common case where a default ExecutionContext is being used, we can avoid needing that field.  For the simplest async method, this can reduce the total size of the allocations by ~4%.

(It would be nice in this case to be able to get rid of the MoveNextRunner entirely.  However, the Action delegate that gets created needs to be stored into the builder before the builder is boxed to the heap, so that the cached delegate gets boxed with it; otherwise, the second yield in the async method will end up needing to reallocate the delegate.  Since delegates are immutable, if the delegate was to point directly to a method on the boxed object, we would need to first have the object, a catch-22.  So the MoveNextRunner serves as an intermediary that lets us create the delegate, store it into the struct builder, then box the builder, and then store the boxed object into the runner.)

8 years agoMerge pull request #5124 from gkhanna79/Fix4940
Gaurav Khanna [Fri, 20 May 2016 20:50:11 +0000 (13:50 -0700)]
Merge pull request #5124 from gkhanna79/Fix4940

Throw InvalidProgramException when VarArgs are encountered

8 years agoFix multiple LTTng issues (#5068)
Lee Culver [Fri, 20 May 2016 20:26:19 +0000 (13:26 -0700)]
Fix multiple LTTng issues (#5068)

- Only emit LTTng events when LTTng is enabled.  We now use the tracepoint_enabled macro to check if an event is enabled...when the version of lttng is installed that supports it.
- Unsplit LTTng events.  Previously we split LTTng events when they exceeded the field limit of LTTng.  Now we emit those events as a raw byte array so that it matches their windows ETW counterparts byte-for-byte.
- Emit any event with a struct or embedded array as a raw byte array too.  The structure of memory that LTTng emits is incompatible with our ETW parsing.  Changing events with struct/array fields greatly simplifies the parsing of events.

8 years agoExpose GetUninitializedObject on RuntimeHelpers (#5104)
Jan Kotas [Fri, 20 May 2016 20:18:49 +0000 (13:18 -0700)]
Expose GetUninitializedObject on RuntimeHelpers  (#5104)

* In coreclr, expose GetUninitializedObject on RuntimeHelpers

* Include RuntimeHelpers.GetUninitializedObject in model.xml

8 years agoRemove some preprocessor usage from the JIT interface.
Pat Gavlin [Mon, 16 May 2016 18:16:07 +0000 (11:16 -0700)]
Remove some preprocessor usage from the JIT interface.

This fixes most of #4912.

- The usage of `USE_ASM_GC_WRITE_BARRIERS` has been removed. The type it guarded is
  now always defined.
- The JIT helpers that were guarded by `_TARGET_X86_` are now always defined.
- The intrinsic that was guarded by `_WIN64` is now always defined.

8 years agoMerge pull request #5123 from dotnet-bot/from-tfs
Pat Gavlin [Fri, 20 May 2016 19:57:58 +0000 (12:57 -0700)]
Merge pull request #5123 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoMerge pull request #5132 from kouvel/NamedMutexFix
Koundinya Veluri [Fri, 20 May 2016 19:39:21 +0000 (12:39 -0700)]
Merge pull request #5132 from kouvel/NamedMutexFix

Fix a few bugs in named mutexes

8 years agoResolve two issues that cause pri1r2r test timeout on Ubuntu
John Chen [Fri, 20 May 2016 18:12:38 +0000 (11:12 -0700)]
Resolve two issues that cause pri1r2r test timeout on Ubuntu

* Fix Ready-to-Run image for System.Numerics.Vectors.dll.
* Disable tests\src\Loader\classloader\generics\regressions\DD117522\Test.cs,
  which contains an infinite generic type recursion. It causes CrossGen to
  crash with stack overflow on Windows, and timeout on Ubuntu. Temporarily
  disabling this test until we can properly fix it.

8 years agoLoad XRT DLL from System32, and only on Win8+.
Aditya Mandaleeka [Fri, 20 May 2016 18:24:17 +0000 (11:24 -0700)]
Load XRT DLL from System32, and only on Win8+.

8 years agoMerge pull request #5105 from ellismg/fix-corefx-3467
Matt Ellis [Fri, 20 May 2016 17:57:26 +0000 (10:57 -0700)]
Merge pull request #5105 from ellismg/fix-corefx-3467

Ignore empty collation elements in EndsWith

8 years agoMerge remote-tracking branch 'upstream/master' into from-tfs
dotnet-bot [Fri, 20 May 2016 17:53:17 +0000 (10:53 -0700)]
Merge remote-tracking branch 'upstream/master' into from-tfs

8 years agoFix line endings in src/vm/jitinterface.h
dotnet-bot [Fri, 20 May 2016 17:50:20 +0000 (10:50 -0700)]
Fix line endings in src/vm/jitinterface.h

8 years agoDisable stringarr_cs_ro for x86 RyuJIT
Michelle McDaniel [Fri, 20 May 2016 17:33:45 +0000 (10:33 -0700)]
Disable stringarr_cs_ro for x86 RyuJIT

This tests fails intermittently in the CI.

8 years agoFix a few bugs in named mutexes
Koundinya Veluri [Fri, 20 May 2016 06:03:06 +0000 (23:03 -0700)]
Fix a few bugs in named mutexes

- When using pthread mutexes, if the mutex tells us that it was abandoned (due to owning process abruptly shutting down), it was calling ReleaseMutex (which takes a handle) on the pthread mutex object. It shouldn't be releasing the lock anyway.
- When a locked mutex is closed, it wasn't being removed from the owner thread's list of owned named mutexes. This case should be treated as abandoned.
  - Since this could potentially happen from a different thread too, added the lock owner thread to the process data, added a critical section around list operations, and I now remove the process data from the owner thread's list on Close.
- Parent/child named mutex pal tests:
  - Cleaned up tests by refactoring the setup/cleanup code
  - Fixed a race where the parent may start a new child test before the previous child test closes its events
  - Added new tests for verifying that a mutex is locked after it reports that it was abandoned, and abandoning by closing a locked mutex

8 years agoAdd gchist SOS commands for Unix (#5127)
Jan Vorlicek [Fri, 20 May 2016 16:49:48 +0000 (18:49 +0200)]
Add gchist SOS commands for Unix (#5127)

This change adds HistClear, HistInit, HistObj, HistObjFind and HistRoot
commands to SOS on Unix

8 years agoUpdating the version of buildtools we use to add commit hashes to native binaries...
Jose Perez Rodriguez [Fri, 20 May 2016 16:04:50 +0000 (09:04 -0700)]
Updating the version of buildtools we use to add commit hashes to native binaries (#5103)

8 years agoMerge pull request #5052 from JohnChen0/r2r
John Chen [Fri, 20 May 2016 15:01:41 +0000 (08:01 -0700)]
Merge pull request #5052 from JohnChen0/r2r

Initial Ready-to-Run tests for generics

8 years agoMerge pull request #5109 from jashook/b103058_exclude
Jarret Shook [Fri, 20 May 2016 14:39:47 +0000 (07:39 -0700)]
Merge pull request #5109 from jashook/b103058_exclude

Mark b103058 as stress sensitive

8 years agoMerge pull request #5108 from jashook/locals_exclude_min_opts
Jarret Shook [Fri, 20 May 2016 14:38:04 +0000 (07:38 -0700)]
Merge pull request #5108 from jashook/locals_exclude_min_opts

Mark opt/perf/doublealign/Locals stress sensitive

8 years agoFix typo in runtest.sh (#5125)
Hanjoung Lee [Fri, 20 May 2016 14:37:48 +0000 (23:37 +0900)]
Fix typo in runtest.sh (#5125)

Signed-off-by: Hanjoung Lee hanjoung.lee@samsung.com
8 years agoThrow InvalidProgramException when a method with varargs is encountered.
Gaurav Khanna [Wed, 18 May 2016 04:57:21 +0000 (21:57 -0700)]
Throw InvalidProgramException when a method with varargs is encountered.

8 years agoPrevent core dumps at shutdown when the ETW subsystem races with debugger cleanup...
Lee Culver [Fri, 20 May 2016 06:46:00 +0000 (23:46 -0700)]
Prevent core dumps at shutdown when the ETW subsystem races with debugger cleanup. (#5066)

8 years agoDocumentation: Add CoreCLR binary folder to test results (#5084)
Geunsik Lim [Fri, 20 May 2016 06:43:33 +0000 (15:43 +0900)]
Documentation: Add CoreCLR binary folder to test results (#5084)

When we get the test result with ./coreclr/tests/runtest.sh,
it is difficult to classify the build mode that we used after some days.

Let's add information of the CoreCLR binary folder in order to
know easily the build mode between debug-build and release-build mode.

Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
8 years agoImplementation of the following generic dictionary entries for R2R: (#5079)
Fadi Hanna [Fri, 20 May 2016 06:42:02 +0000 (23:42 -0700)]
Implementation of the following generic dictionary entries for R2R: (#5079)

MethodDescSlot
        MethodEntrySlot
        DispatchStubAddrSlot

8 years agoMerge pull request #5111 from dotnet-bot/from-tfs
Jan Kotas [Fri, 20 May 2016 06:39:35 +0000 (23:39 -0700)]
Merge pull request #5111 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoMerge pull request #5121 from dotnet/revert-5075-Fix4940
Jan Kotas [Fri, 20 May 2016 06:39:22 +0000 (23:39 -0700)]
Merge pull request #5121 from dotnet/revert-5075-Fix4940

Revert "Change to reject varag methods"

8 years agoMerge pull request #5030 from kouvel/NamedMutex
Koundinya Veluri [Fri, 20 May 2016 04:57:09 +0000 (21:57 -0700)]
Merge pull request #5030 from kouvel/NamedMutex

Add named mutex for cross-process synchronization

8 years agoMerge pull request #5115 from brianrob/corelib_perfmap
Brian Robbins [Fri, 20 May 2016 04:05:43 +0000 (21:05 -0700)]
Merge pull request #5115 from brianrob/corelib_perfmap

Generate perfmap symbol file for System.Private.CoreLib

8 years agoRevert "Change to reject varag methods"
Gaurav Khanna [Fri, 20 May 2016 04:03:33 +0000 (21:03 -0700)]
Revert "Change to reject varag methods"

8 years agoMerge pull request #5075 from gkhanna79/Fix4940
Gaurav Khanna [Fri, 20 May 2016 03:54:08 +0000 (20:54 -0700)]
Merge pull request #5075 from gkhanna79/Fix4940

Change to reject varag methods

8 years agoMerge pull request #5118 from ramarag/fixexchangeTStest
Rama krishnan Raghupathy [Fri, 20 May 2016 03:06:31 +0000 (20:06 -0700)]
Merge pull request #5118 from ramarag/fixexchangeTStest

Removing ' from bash command line

8 years agoMerge pull request #5092 from yizhang82/icastable-fix2
Yi Zhang (CLR) [Fri, 20 May 2016 03:01:43 +0000 (20:01 -0700)]
Merge pull request #5092 from yizhang82/icastable-fix2

Fix x86 only ICastable feature bug when we pass RuntimeTypeHandles

8 years agoMerge pull request #5085 from sivarv/tcfix
Sivarv [Fri, 20 May 2016 02:13:49 +0000 (19:13 -0700)]
Merge pull request #5085 from sivarv/tcfix

Tail call test failure fixes.

8 years agoAdd some quirk and versioning flags and change some preprocessor symbols into fields...
Pat Gavlin [Fri, 20 May 2016 02:05:53 +0000 (19:05 -0700)]
Add some quirk and versioning flags and change some preprocessor symbols into fields of CORINFO_EE_INFO.

The quirk flags--CORJIT_FLG2_JIT32_QUIRKS and CORJIT_FLG2_JIT64_QUIRKS--are passed by the EE to request that the JIT
generate appropriately compatible executable code. These flags are only passed on x86/Windows and x64/Desktop/Windows,
respectively.

Version numbers for GC and EH info have been added to CORINFO_EE_INFO. The EE sets these versions to indicate the
formats of the aforementioned data that it supports.

CORINFO_PAGE_SIZE and MAX_UNCHECKED_OFFSET_FOR_NULL_OBJECT have been converted to fields on CORINFO_EE_INFO.

[tfs-changeset: 1606533]

8 years agoRemoving ' from bash command line
Rama Krishnan Raghupathy [Fri, 20 May 2016 01:45:16 +0000 (18:45 -0700)]
Removing ' from bash command line

8 years agoGenerate perfmap symbol file for System.Private.CoreLib.
Brian Robbins [Thu, 19 May 2016 23:08:32 +0000 (16:08 -0700)]
Generate perfmap symbol file for System.Private.CoreLib.

8 years agoMerge pull request #5067 from AndyAyersMS/CalleeHashInXml
Andy Ayers [Fri, 20 May 2016 00:33:10 +0000 (17:33 -0700)]
Merge pull request #5067 from AndyAyersMS/CalleeHashInXml

Inliner: small changes to inline xml

8 years agoBaseline more tests
Gaurav Khanna [Fri, 20 May 2016 00:21:40 +0000 (17:21 -0700)]
Baseline more tests

8 years agoFix case-sensitive issue on Linux (#5086)
Jiyoung Giuliana Yun [Fri, 20 May 2016 00:01:53 +0000 (09:01 +0900)]
Fix case-sensitive issue on Linux (#5086)

Fix #5035

The file paths should be case-sensitive on Linux.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
8 years agoAdd JitOptimizationSensitive property to GC/API/WeakReference/IsAlive.csproj and...
Sejong Oh [Thu, 19 May 2016 23:56:14 +0000 (16:56 -0700)]
Add JitOptimizationSensitive property to GC/API/WeakReference/IsAlive.csproj and GC/API/GCHandle/Weak.csproj

The testcases could fail if a reference is assigned to a stack temp.

8 years agoAdd named mutex for cross-process synchronization
Koundinya Veluri [Wed, 20 Apr 2016 13:57:19 +0000 (06:57 -0700)]
Add named mutex for cross-process synchronization

Fixes #3422

- On systems that support pthread process-shared robust recursive mutexes, they will be used
- On other systems, file locks are used. File locks unfortunately don't have a timeout in the blocking wait call, and I didn't find any other sync object with a timed wait with the necessary properties, so polling is done for timed waits.

Shared memory files:
- Session-scoped mutexes (name not prefixed, or prefixed with Local\) go in /tmp/coreclr/shm/session<sessionId>/<mutexName>
- Globally-scoped mutexes (name prefixed with Global\) go in /tmp/coreclr/shm/global/<mutexName>
- Contains shared state, and is mmap'ped into the process, see SharedMemorySharedDataHeader and NamedMutexSharedData for data stored
- Creation and deletion is synchronized using an exclusive file lock on the shm directory
- Any process using the shared memory file holds a shared file lock on the shared memory file
- Upon creation, if the shared memory file already exists, an exclusive file lock is attempted on it, to see if the file data is valid. If no other processes have the mutex open, the file is reinitialized.
- Upon releasing the last reference to a mutex in a process, it will try to get an exclusive lock on the shared memory file to see if any other processes have the mutex opened. If not, the file is deleted, along with the session directory if it's empty. The coreclr and shm directories are not deleted.
- This allows managing the lifetime of mutex state based on active processes that have the mutex open. Depending on how the process terminated, the file may still be left over in the tmp directory, I haven't found anything that can be done about that.

Lock files when using file locks:
- In addition to the shared memory file, we need another file for the actual synchronization file lock, since a file lock on the shared memory file is used for lifetime purposes.
- These files go in /tmp/coreclr/lockfiles/session<sessionId>|global/<mutexName>
- The file is empty, and is only used for file locks

Process data
- See SharedMemoryProcessDataHeader and NamedMutexProcessData for data stored
- Per mutex name, there is only one instance of process data that is ref-counted. They are currently stored in a linked list in SharedMemoryManager. It should use a hash table, but of the many hash table implementations that are already there, none seem to be easily usable in the PAL. I'll look into that and will fix later.
- Refers to the associated shared memory, and knows how to clean up both the process data and shared data
- When using file locks for synchronization, a process-local mutex is also created for synchronizing threads, since file locks are owned at the file descriptor level and there is only one open file descriptor in the process per mutex name. The process-local mutex is locked around the file lock, so that only one thread per process is ever trying to flock on a given file descriptor.

Abandon detection
- When a lock is acquired, the process data is added to a linked list on the owning thread
- When a thread exits, the list is walked, each mutex is flagged as abandoned and released
- For detecting process abruptly terminating, pthread robust mutexes give us that. When using file locks, the file lock is automatically released by the system. Upon acquiring a lock, the lock owner info in the shared memory is checked to see if the mutex was abandoned.

Miscellaneous
- CreateMutex and OpenMutex both create new handles for each mutex opened. Each handle just refers to the process data header for the mutex name.
- Some of the above features are already available in the PAL, but not quite in a way that I can use for this purpose. The existing shared memory, naming, and waiting infrastructure is not suitable for this purpose, and is not used.

8 years agoMerge pull request #4963 from sejongoh/vector3_clear_upperbits
Sejong Oh [Thu, 19 May 2016 23:21:42 +0000 (16:21 -0700)]
Merge pull request #4963 from sejongoh/vector3_clear_upperbits

Vector3 clear upperbits

8 years agoIgnore empty collation elements in EndsWith
Matt Ellis [Thu, 19 May 2016 18:48:56 +0000 (11:48 -0700)]
Ignore empty collation elements in EndsWith

We should ignore empty collaction elements at the end of the string
when doing our EndsWith checks.  This means the match ICU finds might
not span to the end of string, but the only elements after the match
before the end are completely ignorable.

U+00AD (SOFT HYPHEN) is one such case where the codepoint is completely
ignorable.

Fixes dotnet/corefx#3467

8 years agoRemove the wrong optimization from the string initialization (#5107)
Tarek Mahmoud Sayed [Thu, 19 May 2016 23:09:03 +0000 (16:09 -0700)]
Remove the wrong optimization from the string initialization (#5107)

The string initilaization misteknly setting some flag for characters under 0x80
the fix here is just remove this part (per Jan Kotas recommendation)

8 years agoMerge pull request #5106 from dotnet-bot/from-tfs
Jan Kotas [Thu, 19 May 2016 23:08:39 +0000 (16:08 -0700)]
Merge pull request #5106 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoFix x86 only ICastable feature bug.
Yi Zhang [Thu, 19 May 2016 06:05:53 +0000 (23:05 -0700)]
Fix x86 only ICastable feature bug.
When we call ICastable.IsInstanceOfInterface, we treat RuntimeTypeHandle as a OBJECTREF, which is incorrect as-per x86 calling convention since RuntimeTypehandle is a struct that contains a RuntimeType ref field and needs to be passed in stack. Our VM simple call helpers CALL_MANAGED_METHOD doesn't handle this correctly (it does the simple thing that always assume all the arguments are passed in register first). I'm fixing this by using a static method that takes RuntimeType instead of RuntimeTypeHandle, then convert it to RuntimeTypehandle.
Also switch to use PREPARE_NONVIRTUAL_CALLSITE(METHODID) as per Jan's suggestion.
ICastable test is now enabled in x86 for both JITs.

8 years agoMerge pull request #5074 from jhendrixMSFT/master
Joel Hendrix [Thu, 19 May 2016 22:18:56 +0000 (15:18 -0700)]
Merge pull request #5074 from jhendrixMSFT/master

Add sign.builds projects to facilitate real signing in official builds.

8 years agoMissing a check in the Unix part of the code.
Jeremy Kuhne [Thu, 19 May 2016 22:14:51 +0000 (15:14 -0700)]
Missing a check in the Unix part of the code.

[tfs-changeset: 1606433]

8 years agoTail call test failure fixes.
sivarv [Thu, 19 May 2016 00:15:53 +0000 (17:15 -0700)]
Tail call test failure fixes.

8 years agoThrow InvalidProgramException when a method with varargs is encountered.
Gaurav Khanna [Wed, 18 May 2016 04:57:21 +0000 (21:57 -0700)]
Throw InvalidProgramException when a method with varargs is encountered.

8 years agoMark b103058 as stress sensitive
Jarret Shook [Thu, 19 May 2016 21:52:58 +0000 (14:52 -0700)]
Mark b103058 as stress sensitive

This test will not work under min opts, disable it under stress scenarios to address this.

8 years agoMerge pull request #5099 from kyulee1/fixr2r
Kyungwoo Lee [Thu, 19 May 2016 21:48:42 +0000 (14:48 -0700)]
Merge pull request #5099 from kyulee1/fixr2r

ARM64: Fix R2R EntryPoint for Intrinsic

8 years agoMark opt/perf/doublealign/Locals stress sensitive
Jarret Shook [Thu, 19 May 2016 21:44:53 +0000 (14:44 -0700)]
Mark opt/perf/doublealign/Locals stress sensitive

The test is known to not work correctly under JitMinOpts. Disable it from running in that configuration.

8 years agoMerge pull request #5098 from RussKeldorph/objects
Russ Keldorph [Thu, 19 May 2016 21:39:49 +0000 (14:39 -0700)]
Merge pull request #5098 from RussKeldorph/objects

Mark doublealign test as incompatible with GCStress

8 years agoMerge pull request #5100 from RussKeldorph/gcstress
Russ Keldorph [Thu, 19 May 2016 21:39:09 +0000 (14:39 -0700)]
Merge pull request #5100 from RussKeldorph/gcstress

Fix GCStress=0xC when build(tests).cmd called from outside root

8 years agoMerge pull request #5091 from gkhanna79/Fix4531
Gaurav Khanna [Thu, 19 May 2016 19:54:30 +0000 (12:54 -0700)]
Merge pull request #5091 from gkhanna79/Fix4531

Make Microsoft.NetCore.JIT package dependency of CoreCLR package

8 years agoInitialize unused upper bits of Vector3 arguments and return registers for
Sejong OH [Fri, 13 May 2016 00:06:45 +0000 (17:06 -0700)]
Initialize unused upper bits of Vector3 arguments and return registers for
Linux

JIT requires the unused upper bits to be cleared but native compiler
doesn't clear the upper bits. This changes clear those bits for Reverse
PInvoke arguments and PInvoke return.

8 years agoInitial Ready-to-Run tests for generics
John Chen (CLR) [Wed, 18 May 2016 06:58:14 +0000 (23:58 -0700)]
Initial Ready-to-Run tests for generics

* Added some generics tests intended for testing Ready-to-Run feature.
* Added capability to set ZapRequire=1, to  ensure methods are
  pre-compiled.
* Fix spelling of environment variables for case-sensitive platforms.

8 years agoChecking in on behalf of JKuhne
Alex Ghiondea [Thu, 19 May 2016 19:17:41 +0000 (12:17 -0700)]
Checking in on behalf of JKuhne

Fixing build break in K caused by the long file path work.

[tfs-changeset: 1606374]