platform/upstream/coreclr.git
8 years agoMerge pull request #5863 from adityamandaleeka/generate_core_dumps_runtest
Aditya Mandaleeka [Sat, 18 Jun 2016 02:38:35 +0000 (19:38 -0700)]
Merge pull request #5863 from adityamandaleeka/generate_core_dumps_runtest

Add option to runtest.sh to enable limited dump generation.

8 years agoMerge pull request #5868 from AndyAyersMS/BooleansRule
Andy Ayers [Sat, 18 Jun 2016 01:45:25 +0000 (18:45 -0700)]
Merge pull request #5868 from AndyAyersMS/BooleansRule

JIT: standardize on bool for return type of GenTree OperIs methods

8 years agoMerge pull request #5862 from adityamandaleeka/remove_dead_code
Aditya Mandaleeka [Sat, 18 Jun 2016 01:30:06 +0000 (18:30 -0700)]
Merge pull request #5862 from adityamandaleeka/remove_dead_code

Remove some dead code in notifyexternals

8 years agoMerge pull request #5831 from briansull/fix-5759
Brian Sullivan [Fri, 17 Jun 2016 23:27:25 +0000 (16:27 -0700)]
Merge pull request #5831 from briansull/fix-5759

Fix for issue 5795

8 years agoJIT: standardize on bool for return type of GenTree OperIs methods
Andy Ayers [Fri, 17 Jun 2016 22:31:32 +0000 (15:31 -0700)]
JIT: standardize on bool for return type of GenTree OperIs methods

We had a mixture of bool and int return types. Standardize on bool.
Otherwise callers must match the mixed typing to avoid the fatal
C4800 warning on windows.

8 years agoRemove dead code in notifyexternals
Aditya Mandaleeka [Fri, 17 Jun 2016 19:42:27 +0000 (12:42 -0700)]
Remove dead code in notifyexternals

8 years agoEnable core dump generation in CI test jobs
Aditya Mandaleeka [Fri, 17 Jun 2016 22:13:19 +0000 (15:13 -0700)]
Enable core dump generation in CI test jobs

8 years agoMerge pull request #5836 from RussKeldorph/nogcsosx
Russ Keldorph [Fri, 17 Jun 2016 22:02:55 +0000 (15:02 -0700)]
Merge pull request #5836 from RussKeldorph/nogcsosx

Disable GCStress=C periodic triggers for OSX

8 years agoMerge pull request #5856 from AndyAyersMS/ConstantObservations
Andy Ayers [Fri, 17 Jun 2016 21:42:02 +0000 (14:42 -0700)]
Merge pull request #5856 from AndyAyersMS/ConstantObservations

JIT: Cleanup code in and around fgFindJumpTargets

8 years agoAdd option to runtest.sh to enable limited dump generation.
Aditya Mandaleeka [Fri, 17 Jun 2016 20:49:53 +0000 (13:49 -0700)]
Add option to runtest.sh to enable limited dump generation.

8 years agoFix for issue 5795
Brian Sullivan [Thu, 16 Jun 2016 17:06:55 +0000 (10:06 -0700)]
Fix for issue 5795

We incorrectly pass the ret buf arg in x9 instead of x8

It is required that we call SortArgs and EvalArgsToTemps whenever we have any register arguments
We were not doing that when we only had a retBufArg argument in x8.

Fix for UNIX_AMD64 structs

8 years agoMerge pull request #5854 from dotnet-bot/from-tfs
Jan Kotas [Fri, 17 Jun 2016 17:43:24 +0000 (10:43 -0700)]
Merge pull request #5854 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoJIT: Cleanup code in and around fgFindJumpTargets
Andy Ayers [Thu, 16 Jun 2016 22:33:48 +0000 (15:33 -0700)]
JIT: Cleanup code in and around fgFindJumpTargets

Reorder code to remove gotos. Extract two large chunks of logic as
subroutines. Add braces and update comments. Bring `fgStack` class up
to current Jit coding conventions.  Reunite some orphaned comments for
fgFindJumpTargets.

No behavior change expected. No diffs seen via jit-diff tool. No diffs
seen in desktop testing.

8 years agoMerge pull request #5839 from swgillespie/gc-batch-fix
Sean Gillespie [Fri, 17 Jun 2016 16:55:33 +0000 (09:55 -0700)]
Merge pull request #5839 from swgillespie/gc-batch-fix

Fix GC test batch script skip conditions that were behaving unexpectedly

8 years agoMerge pull request #5852 from gkhanna79/Fix5837
Gaurav Khanna [Fri, 17 Jun 2016 15:09:45 +0000 (08:09 -0700)]
Merge pull request #5852 from gkhanna79/Fix5837

Correctly resolve binding from Resolving event for static load

8 years agoChanges to update TFS packages post 1.0
Eric St. John [Fri, 17 Jun 2016 14:16:31 +0000 (07:16 -0700)]
Changes to update TFS packages post 1.0

[tfs-changeset: 1613358]

8 years agoAdd missing check to allow assembly bound using the Resolving event to be used during...
Gaurav Khanna [Fri, 17 Jun 2016 13:29:41 +0000 (06:29 -0700)]
Add missing check to allow assembly bound using the Resolving event to be used during static binding scenario

8 years agoMerge pull request #5843 from dotnet-bot/UpdateDependencies20160617052045
Gaurav Khanna [Fri, 17 Jun 2016 12:32:04 +0000 (05:32 -0700)]
Merge pull request #5843 from dotnet-bot/UpdateDependencies20160617052045

Updating External dependencies to rc4-24217-00

8 years agoUse LEAF_END_MARKED instead of LEAF_END for ARM64 debugbreak.S (#5850)
Jonghyun Park [Fri, 17 Jun 2016 11:36:07 +0000 (20:36 +0900)]
Use LEAF_END_MARKED instead of LEAF_END for ARM64 debugbreak.S (#5850)

This commit applies the changes in #5847 (which fixes #5845) into ARM64
stub.

8 years agoUse Use LEAF_END_MARKED instead of LEAF_END for various functions (#5849)
Jonghyun Park [Fri, 17 Jun 2016 08:55:43 +0000 (17:55 +0900)]
Use Use LEAF_END_MARKED instead of LEAF_END for various functions (#5849)

This commit fixes #5848.

8 years agoUse LEAF_END_MARKED instead of LEAF_END for DBG_DebugBreak (#5847)
Jonghyun Park [Fri, 17 Jun 2016 08:55:24 +0000 (17:55 +0900)]
Use LEAF_END_MARKED instead of LEAF_END for DBG_DebugBreak (#5847)

This commit tries to fix #5845

8 years agoMerge pull request #5842 from prajwal-aithal/devel/arm-ci-emul-fix
Jarret Shook [Fri, 17 Jun 2016 06:21:43 +0000 (23:21 -0700)]
Merge pull request #5842 from prajwal-aithal/devel/arm-ci-emul-fix

ARM-CI: Create mount path if not already present

8 years agoUpdating External dependencies to rc4-24217-00
dotnet-bot [Fri, 17 Jun 2016 05:20:45 +0000 (05:20 +0000)]
Updating External dependencies to rc4-24217-00

8 years agoARM-CI: Create mount path if not already present
Prajwal A N [Fri, 17 Jun 2016 03:24:24 +0000 (12:24 +0900)]
ARM-CI: Create mount path if not already present

* Previous PRs assumed that the mount path is already created on the CI machine
* This results in errors if the same is not true

Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
8 years agoMerge pull request #5841 from rahku/master
Rahul Kumar [Fri, 17 Jun 2016 01:05:11 +0000 (18:05 -0700)]
Merge pull request #5841 from rahku/master

Fix arm64 build break

8 years agoFix arm64 build break
Rahul Kumar [Fri, 17 Jun 2016 00:59:06 +0000 (17:59 -0700)]
Fix arm64 build break

8 years agoMerge pull request #5822 from adityamandaleeka/setup-runtime-dependencies_changes
Aditya Mandaleeka [Thu, 16 Jun 2016 23:36:36 +0000 (16:36 -0700)]
Merge pull request #5822 from adityamandaleeka/setup-runtime-dependencies_changes

Remove set -x from tests/setup-runtime-dependencies.sh.

8 years agoFix GC test batch script skip conditions that were behaving unexpectedly
Sean Gillespie [Thu, 16 Jun 2016 23:30:54 +0000 (16:30 -0700)]
Fix GC test batch script skip conditions that were behaving unexpectedly

8 years agoDisable GCStress=C periodic triggers for OSX
Russ Keldorph [Thu, 16 Jun 2016 22:29:19 +0000 (15:29 -0700)]
Disable GCStress=C periodic triggers for OSX

Fixes #5763

8 years agoMerge pull request #5835 from wtgodbe/buildFix
William Godbe [Thu, 16 Jun 2016 22:05:19 +0000 (15:05 -0700)]
Merge pull request #5835 from wtgodbe/buildFix

Fix error when passing msbuild args to build.cmd/buildtest.cmd

8 years agoFix error when passing msbuild args to build.cmd/buildtest.cmd
wtgodbe [Thu, 16 Jun 2016 19:47:06 +0000 (12:47 -0700)]
Fix error when passing msbuild args to build.cmd/buildtest.cmd

8 years agoMark Volatile methods with NonVersionable attribute (#5830)
Jan Kotas [Thu, 16 Jun 2016 19:32:16 +0000 (12:32 -0700)]
Mark Volatile methods with NonVersionable attribute (#5830)

8 years agoFix some typos in setup-runtime-dependencies.cmd
Aditya Mandaleeka [Thu, 16 Jun 2016 18:57:06 +0000 (11:57 -0700)]
Fix some typos in setup-runtime-dependencies.cmd

8 years agoMerge pull request #5821 from kyulee1/fixwb
Kyungwoo Lee [Thu, 16 Jun 2016 18:08:16 +0000 (11:08 -0700)]
Merge pull request #5821 from kyulee1/fixwb

ARM64: Fix WriteBarrier

8 years agoARM64: Fix WriteBarrier
Kyungwoo Lee [Wed, 15 Jun 2016 22:57:19 +0000 (15:57 -0700)]
ARM64: Fix WriteBarrier

I think this finally fixes most of long outstanding GC issues that appear in different
forms so far that include #4877, #4879, #4890 and more.

The issues was WriteBarrier implementation.
When we update card table, the address has been already incremented by 8.

With this fix, all corefx tests seem to run on xunit framework without crashing.
I verified this with an out-of-date build locally, so there are not found
assembly errors like System.Runtime.Extensions with different versions, though.
These are what I tested so far that safely finished all runs with very high percentage of pass.
System.Collections.Tests
System.Dynamic.Runtime.Tests
System.Linq.Expressions.Tests
System.Linq.Parallel.Tests

Potentially more coreclr tests will pass. I will update them as tests go.

8 years agoMerge pull request #5824 from dotnet-bot/UpdateDependencies20160616051753
Wes Haggard [Thu, 16 Jun 2016 17:04:18 +0000 (10:04 -0700)]
Merge pull request #5824 from dotnet-bot/UpdateDependencies20160616051753

Updating External dependencies to rc4-24216-00

8 years agoRemove end labels from regular asm procs on Unix (#5777)
Jan Vorlicek [Thu, 16 Jun 2016 13:15:08 +0000 (15:15 +0200)]
Remove end labels from regular asm procs on Unix (#5777)

All ASM proc now unnecessarily have xxx_End label marking
the end of the proc. This causes confusing stack traces in
some cases, especially on OSX, when instead of a name of
an actual function, a name of the previous one with the
_End attached to it is shown.
This change fixes that by modifying the LEAF_END macro to
not to be defined as an equivalent of the LEAF_END_MARKED.

8 years agoMerge pull request #5819 from AndyAyersMS/InlineTestsV1
Andy Ayers [Thu, 16 Jun 2016 05:53:47 +0000 (22:53 -0700)]
Merge pull request #5819 from AndyAyersMS/InlineTestsV1

Inliner: simple performance tests

8 years agoUpdating External dependencies to rc4-24216-00
dotnet-bot [Thu, 16 Jun 2016 05:17:53 +0000 (05:17 +0000)]
Updating External dependencies to rc4-24216-00

8 years agoMerge pull request #5794 from briansull/vm-retbuf
Brian Sullivan [Thu, 16 Jun 2016 01:10:01 +0000 (18:10 -0700)]
Merge pull request #5794 from briansull/vm-retbuf

Fixes for two JIT helpers that should not use the x8 RetBuf argument on ARM64

8 years agoRemove set -x from tests/setup-runtime-dependencies.sh.
Aditya Mandaleeka [Thu, 16 Jun 2016 00:26:05 +0000 (17:26 -0700)]
Remove set -x from tests/setup-runtime-dependencies.sh.

8 years agoFixes for two JIT helpers that should not use the x8 RetBuf argument on ARM64
Brian Sullivan [Mon, 13 Jun 2016 21:06:14 +0000 (14:06 -0700)]
Fixes for two JIT helpers that should not use the x8 RetBuf argument on ARM64

Fixes these two JIT helpers" CORINFO_HELP_GETFIELDSTRUCT and CORINFO_HELP_UNBOX_NULLABLE
We no longer set GTF_CALL_M_RETBUFFARG for the two special Jit helpers
We insert the extra byref argument in the x0 position for these two JIT helpers

8 years agoMerge pull request #5820 from wtgodbe/groovyR2R
William Godbe [Wed, 15 Jun 2016 22:57:56 +0000 (15:57 -0700)]
Merge pull request #5820 from wtgodbe/groovyR2R

Update crossgen strings for coreclr coverage tests

8 years agoUpdate crossgen strings for coreclr coverage tests
wtgodbe [Wed, 15 Jun 2016 22:54:33 +0000 (15:54 -0700)]
Update crossgen strings for coreclr coverage tests

8 years agoMerge pull request #5815 from BruceForstall/RemoveAmd64Legacy
Bruce Forstall [Wed, 15 Jun 2016 22:54:22 +0000 (15:54 -0700)]
Merge pull request #5815 from BruceForstall/RemoveAmd64Legacy

Remove AMD64 code from legacy code path

8 years agoMerge pull request #5814 from JohnChen0/r2rtest
John Chen [Wed, 15 Jun 2016 22:29:56 +0000 (15:29 -0700)]
Merge pull request #5814 from JohnChen0/r2rtest

Modify CrossGen test script to work around cmd.exe bug

8 years agoInliner: simple performance tests
Andy Ayers [Fri, 10 Jun 2016 21:58:11 +0000 (14:58 -0700)]
Inliner: simple performance tests

Tests that demonstrate that constant arguments passed to callees can
lead to inlining performance wins. All numeric types are tested, as
well as strings.

Tests are generally written as positive/negative pairs with calls to
the same inlinee. This exposes the call site sensitivity. Performance
of the positive test should be better than the negative test.

The overall benchmarking approach used here is something that we might
consider adopting for other small-scale codegen performance tests.

8 years agoFix exception stacktrace when ulimit is hit OSX. (#5802)
Mike McLaughlin [Wed, 15 Jun 2016 22:03:57 +0000 (15:03 -0700)]
Fix exception stacktrace when ulimit is hit OSX. (#5802)

* Fix exception stacktrace when ulimit is hit OSX.

Issue #5782.

Wrap the everything in try/catch replacing the existing try/finally
and removed the recursion protection thread var.

* Restore recursion protection.

8 years agoMerge pull request #5786 from prajwal-aithal/devel/arm-ci-cross-build-fix
Jarret Shook [Wed, 15 Jun 2016 21:38:29 +0000 (14:38 -0700)]
Merge pull request #5786 from prajwal-aithal/devel/arm-ci-cross-build-fix

ARM-CI: Convert Linux ARM emulator CI check to cross build (fixes PR #5680)

8 years agoRemove AMD64 code from legacy code path
Bruce Forstall [Wed, 15 Jun 2016 19:44:19 +0000 (12:44 -0700)]
Remove AMD64 code from legacy code path

There were some AMD64 #ifdefs and code in the legacy code path from an
ancient AMD64 porting effort. They are unused, and were confusing to me
when searching the code base, so I removed them.

8 years agoUpdate SpecializeComparer for enums (#5805)
James Ko [Wed, 15 Jun 2016 19:15:12 +0000 (15:15 -0400)]
Update SpecializeComparer for enums (#5805)

Fixes #5751

8 years agoFix sos.DumpIL on LP64 systems with s/long/LONG/g (#5810)
Ivan Baravy [Wed, 15 Jun 2016 19:14:52 +0000 (23:14 +0400)]
Fix sos.DumpIL on LP64 systems with s/long/LONG/g (#5810)

sos.DumpIL command used readData<long> to disassemble CIL,
this failed on LP64 systems like Linux where long is 8 bytes.

This commit tries to fix #5457.

8 years agoMerge pull request #5807 from Maoni0/obj_addr
Maoni Stephens [Wed, 15 Jun 2016 18:13:02 +0000 (11:13 -0700)]
Merge pull request #5807 from Maoni0/obj_addr

Need to filter addresses not in the heap range in NextObj

8 years agoModify CrossGen test script to work around cmd.exe bug
John Chen (CLR) [Wed, 15 Jun 2016 18:11:37 +0000 (11:11 -0700)]
Modify CrossGen test script to work around cmd.exe bug

8 years agoMerge pull request #5682 from lemmaa/fix-error-index-must-be-an-integer-in-range
Rahul Kumar [Wed, 15 Jun 2016 17:44:16 +0000 (10:44 -0700)]
Merge pull request #5682 from lemmaa/fix-error-index-must-be-an-integer-in-range

[ARM64/Linux] Fix `error: index must be an integer in range.`

8 years agoInitial support of breakpoint setting by source file + line on Linux using portable...
Evgeny Pavlov [Wed, 15 Jun 2016 16:23:30 +0000 (19:23 +0300)]
Initial support of breakpoint setting by source file + line on Linux using portable pdb reader (#5688)

* Initial support of breakpoint setting by source + line on Linux

* Fix macro redefinition error in OSX build

* Fix after review from Mike McLaughlin

8 years ago[ARM64/Linux] Fix `error: index must be an integer in range.`
Sung-Jae Lee [Fri, 10 Jun 2016 07:33:17 +0000 (16:33 +0900)]
[ARM64/Linux] Fix `error: index must be an integer in range.`

- Fix invalid varible name `*X19_X28' to '*X19_X29'
- Remove code for capturing `fp` status.

8 years agoNeed to filter addresses not in the heap range in the NextObj verification function.
Maoni0 [Tue, 14 Jun 2016 02:28:03 +0000 (19:28 -0700)]
Need to filter addresses not in the heap range in the NextObj verification function.

8 years agoMerge pull request #5773 from Maoni0/grow_card_2
Maoni Stephens [Wed, 15 Jun 2016 00:38:55 +0000 (17:38 -0700)]
Merge pull request #5773 from Maoni0/grow_card_2

Making the fix of runtime suspension check complete

8 years agoMerge pull request #5803 from dotnet-bot/from-tfs
Jan Kotas [Wed, 15 Jun 2016 00:33:12 +0000 (17:33 -0700)]
Merge pull request #5803 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoMy last fix of checking whether the runtime was suspended was incomplete.
Maoni0 [Mon, 13 Jun 2016 21:57:12 +0000 (14:57 -0700)]
My last fix of checking whether the runtime was suspended was incomplete.
I needed to check at the 3 other places. Before the software write watch
implementation, this check was in the write barrier code itself and was
doing the right thing. So I am just using the same thing (ie, IsGCThread)
to check whether the runtime is suspended.

8 years agoFix full framework build break
Jan Kotas [Tue, 14 Jun 2016 22:48:53 +0000 (15:48 -0700)]
Fix full framework build break

[tfs-changeset: 1612754]

8 years agoMerge pull request #5798 from wtgodbe/remCovr
William Godbe [Tue, 14 Jun 2016 21:18:36 +0000 (14:18 -0700)]
Merge pull request #5798 from wtgodbe/remCovr

Remove unecessary coverage arg passed to coreclr test run

8 years agoRemove unecessary coverage arg passed to coreclr test run
wtgodbe [Tue, 14 Jun 2016 21:06:45 +0000 (14:06 -0700)]
Remove unecessary coverage arg passed to coreclr test run

8 years agoAdd missing inttypes header for musl-libc (#5729)
Peter Jas [Tue, 14 Jun 2016 20:56:27 +0000 (23:56 +0300)]
Add missing inttypes header for musl-libc (#5729)

Also replaced the usages of `__unit64_t` and `__int64_t` with
`uint64_t` and `int64_t` respectively.

8 years agoMerge pull request #5791 from swgillespie/bash-bracket
Sean Gillespie [Tue, 14 Jun 2016 19:59:10 +0000 (12:59 -0700)]
Merge pull request #5791 from swgillespie/bash-bracket

Fix bracket spacing in runtest script

8 years agoFix incorrect buffer limits in Module.FullyQualifiedName QCall (#5753)
Jan Kotas [Tue, 14 Jun 2016 19:21:45 +0000 (12:21 -0700)]
Fix incorrect buffer limits in Module.FullyQualifiedName QCall (#5753)

8 years agoMerge pull request #5695 from AlexGhiondea/DefaultToLatest
Wes Haggard [Tue, 14 Jun 2016 18:33:21 +0000 (11:33 -0700)]
Merge pull request #5695 from AlexGhiondea/DefaultToLatest

Default to latest behavior when a TFM is not specified

8 years agoMerge pull request #5792 from wtgodbe/groovyQuote
William Godbe [Tue, 14 Jun 2016 17:49:02 +0000 (10:49 -0700)]
Merge pull request #5792 from wtgodbe/groovyQuote

Remove extra quote from runtest arg in coverage job

8 years agoRemove extra quote from runtest arg in coverage job
wtgodbe [Tue, 14 Jun 2016 17:45:49 +0000 (10:45 -0700)]
Remove extra quote from runtest arg in coverage job

8 years agoFix bracket spacing in runtest script
Sean Gillespie [Tue, 14 Jun 2016 17:40:21 +0000 (10:40 -0700)]
Fix bracket spacing in runtest script

8 years agoMerge pull request #5789 from kyulee1/fixgchole
Kyungwoo Lee [Tue, 14 Jun 2016 17:00:20 +0000 (10:00 -0700)]
Merge pull request #5789 from kyulee1/fixgchole

ARM64: Fix a GC hole for Indirect Branch

8 years agoMerge pull request #5787 from dotnet-bot/UpdateDependencies20160614051831
Wes Haggard [Tue, 14 Jun 2016 15:48:40 +0000 (08:48 -0700)]
Merge pull request #5787 from dotnet-bot/UpdateDependencies20160614051831

Updating External dependencies to rc4-24214-00

8 years agoARM64: Fix a GC hole for Indirect Branch
Kyungwoo Lee [Tue, 14 Jun 2016 14:50:40 +0000 (07:50 -0700)]
ARM64: Fix a GC hole for Indirect Branch

`br reg` was handled like a regular call under `IF_BR_1B` resulting in
`emitOutputCall` which updates GC vars/regs.
This is only true when this branch is used for a tail-call.
We used the same logic for indirect jump for switch expansion, which is
incorrect.
The fix is to correct instruction category so that such indirect jump is
handled same as an normal instruction under `IF_BR_1A`.

This fixes a part of https://github.com/dotnet/coreclr/issues/4877.
The failing point from the description is now passed, but still another
consistency failure far later on after tests are discovered/started.

8 years agoLink libintl in case of Alpine (#5731)
Peter Jas [Tue, 14 Jun 2016 12:19:40 +0000 (15:19 +0300)]
Link libintl in case of Alpine (#5731)

This delta detects Alpine Linux by using `uname -v` (kernel version)
and add the `libintl` in the linker list. This is because `gettext` is
not part of (per-installed in) Alpine Linux but available via the
package manager. To build CoreCLR, `gettext-dev` is one unlisted
per-requisite.

8 years agoUpdating External dependencies to rc4-24214-00
dotnet-bot [Tue, 14 Jun 2016 05:18:31 +0000 (05:18 +0000)]
Updating External dependencies to rc4-24214-00

8 years agoARM-CI: Convert Linux ARM emulator CI check to cross build (fixes PR #5680)
Prajwal A N [Fri, 10 Jun 2016 06:03:16 +0000 (15:03 +0900)]
ARM-CI: Convert Linux ARM emulator CI check to cross build (fixes PR #5680)

* Previously used emulated build took a lot of time leading to timeout errors
* Changing this CI check to build using cross build
* Resolves CI issues caused by previous identical PR #5680

Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
8 years agoRefactor MethodTable::ContainsStackPtr (#5754)
Jan Kotas [Tue, 14 Jun 2016 02:33:53 +0000 (19:33 -0700)]
Refactor MethodTable::ContainsStackPtr (#5754)

- Rename ContainsStackPtr to IsByRefLike. It is the term used for this kind of types in ECMA spec.
- Change the check to be based on flag instead of hard coded list of types
- Remove redundant unused method of the same name on EEClass

8 years agoFix PAL executable allocator locking (#5770)
Jan Vorlicek [Mon, 13 Jun 2016 23:11:09 +0000 (01:11 +0200)]
Fix PAL executable allocator locking (#5770)

We call the ExecutableAllocator from two places in PAL. One is the
VirtualAlloc when the allocation type contains MEM_RESERVE_EXECUTABLE.
The other is MAPMapPEFile.
While the former is called inside of the virtual_critsec critical section,
the latter doesn't take that critical section and so in some race cases,
we were returning the same address twice - once for VirtualAlloc and
once for MAPMapPEFile. That resulted in strange memory corruption cases.
The fix is to use the same critical section for the MAPMapPEFile too.

I am also reverting the change in the virtual commit that was made when
we have thought that the culprit might be in the mprotect.

8 years agoMerge pull request #5702 from mjsabby/master
Kshama Pawar [Mon, 13 Jun 2016 22:48:02 +0000 (15:48 -0700)]
Merge pull request #5702 from mjsabby/master

Add Profiling APIs that fail on non-Windows OS

8 years agoMerge pull request #5766 from dotnet/revert-5680-devel/arm-ci-cross-build
Jarret Shook [Mon, 13 Jun 2016 20:23:57 +0000 (13:23 -0700)]
Merge pull request #5766 from dotnet/revert-5680-devel/arm-ci-cross-build

Revert "ARM-CI: Convert Linux ARM emulator CI check to cross build"

8 years agoRevert "ARM-CI: Convert Linux ARM emulator CI check to cross build"
Matt Mitchell [Mon, 13 Jun 2016 20:20:46 +0000 (13:20 -0700)]
Revert "ARM-CI: Convert Linux ARM emulator CI check to cross build"

8 years agoMerge pull request #5764 from wtgodbe/coverage
William Godbe [Mon, 13 Jun 2016 20:08:10 +0000 (13:08 -0700)]
Merge pull request #5764 from wtgodbe/coverage

Update coverage test to have correct configuration for coreFX tests

8 years agoMerge pull request #5762 from swgillespie/ci-longgc
Sean Gillespie [Mon, 13 Jun 2016 20:04:37 +0000 (13:04 -0700)]
Merge pull request #5762 from swgillespie/ci-longgc

Pass --long-gc and --gcsimulator to long GC and GCSimulator CI jobs, respectively

8 years agoUpdate coverage test to have correct configuration for coreFX tests
wtgodbe [Mon, 13 Jun 2016 20:03:46 +0000 (13:03 -0700)]
Update coverage test to have correct configuration for coreFX tests

8 years agoDelete bad assert (#5757)
Jan Kotas [Mon, 13 Jun 2016 19:46:15 +0000 (12:46 -0700)]
Delete bad assert (#5757)

8 years agoMerge pull request #5713 from wtgodbe/mutex
William Godbe [Mon, 13 Jun 2016 18:37:38 +0000 (11:37 -0700)]
Merge pull request #5713 from wtgodbe/mutex

Keep mutex alive to avoid race condition in openmutexpos4 test

8 years agoDelete unnecessary cruft from internal mscorlib reference assembly (#5756)
Jan Kotas [Mon, 13 Jun 2016 18:01:02 +0000 (11:01 -0700)]
Delete unnecessary cruft from internal mscorlib reference assembly (#5756)

8 years agoPass --long-gc and --gcsimulator to long GC and GCSimulator CI jobs, respectively
Sean Gillespie [Mon, 13 Jun 2016 17:36:12 +0000 (10:36 -0700)]
Pass --long-gc and --gcsimulator to long GC and GCSimulator CI jobs, respectively

8 years agoKeep mutex alive to avoid race condition in openmutexpos4 test
wtgodbe [Fri, 10 Jun 2016 22:57:07 +0000 (15:57 -0700)]
Keep mutex alive to avoid race condition in openmutexpos4 test

8 years agoSpecialize Comparer<T> for enums to avoid boxing (#5503)
James Ko [Mon, 13 Jun 2016 01:41:33 +0000 (21:41 -0400)]
Specialize Comparer<T> for enums to avoid boxing (#5503)

8 years agoPartial revert "Fix problem with virtual memory commit in OOM scenario on Linux ...
Jan Kotas [Sun, 12 Jun 2016 14:18:22 +0000 (07:18 -0700)]
Partial revert "Fix problem with virtual memory commit in OOM scenario on Linux (#5609)" (#5744)

#5609 is suspect to cause intermittent crashes on OS X. Keep the fix for Linux, but revert to using the original code on OS X.

8 years agoUndo StompWriteBarrierResize reordering (#5740)
Jan Kotas [Sun, 12 Jun 2016 04:27:51 +0000 (21:27 -0700)]
Undo StompWriteBarrierResize reordering (#5740)

The recent commit introduced race by changing where StompWriteBarrierResize is called relative to other global state updates. Revert this change to fix the intermittent crashes that we are seeing because of that. We will look at fixing the theoretical problem that this reordering was trying to address in better way separately.

8 years agoAdd check for gnu/lib-names.h (#5727)
Peter Jas [Sun, 12 Jun 2016 02:00:54 +0000 (05:00 +0300)]
Add check for gnu/lib-names.h (#5727)

The header `<gnu/lib-names.h>` is not present on musl-libc based OSes.
Those names are not listed in any system header and this is deemed
irrelevant to have such a header in musl according to:
http://www.openwall.com/lists/musl/2013/11/09/1

8 years agoCheck for unavailable cache-size macro (#5728)
Peter Jas [Sun, 12 Jun 2016 01:59:50 +0000 (04:59 +0300)]
Check for unavailable cache-size macro (#5728)

In musl-libc world _SC_LEVEL1_DCACHE_SIZE is undefined.

8 years agoCorrect comment (#5738)
Jan Kotas [Sun, 12 Jun 2016 01:59:28 +0000 (18:59 -0700)]
Correct comment (#5738)

8 years agoMerge pull request #5544 from vancem/EtwSessionFix
Vance Morrison [Sat, 11 Jun 2016 19:37:08 +0000 (12:37 -0700)]
Merge pull request #5544 from vancem/EtwSessionFix

Fix a problem where stale old, closed ETW sessions might be turned on.

8 years agoTypedef __ptrace_request for musl-libc (#5730)
Peter Jas [Sat, 11 Jun 2016 18:23:03 +0000 (21:23 +0300)]
Typedef __ptrace_request for musl-libc (#5730)

Ref: http://www.openwall.com/lists/musl/2015/10/01/3

8 years agoAdd check for sys/sysctl.h (#5726)
Peter Jas [Sat, 11 Jun 2016 18:05:47 +0000 (21:05 +0300)]
Add check for sys/sysctl.h (#5726)

On some operating systems `<sys/sysctl.h>`is not present yet `sysct`
function in available. One example is Alpine Linux which uses musl-libc
as opposed to GNU libc.

Ref: dotnet/corefx#6253

8 years agoAdd Profiling APIs that fail on non-Windows OS
Mukul Sabharwal [Fri, 10 Jun 2016 20:36:07 +0000 (13:36 -0700)]
Add Profiling APIs that fail on non-Windows OS