platform/upstream/coreclr.git
8 years agoMerge pull request #5382 from davmason/filtering
David Mason [Fri, 3 Jun 2016 19:02:08 +0000 (12:02 -0700)]
Merge pull request #5382 from davmason/filtering

Add filtering logic to XplatEventLogger

8 years agoMerge pull request #5432 from RussKeldorph/fix5428
Russ Keldorph [Fri, 3 Jun 2016 18:47:49 +0000 (11:47 -0700)]
Merge pull request #5432 from RussKeldorph/fix5428

Remove unnecessary dependencies from JIT tests causing R2R failures

8 years agoFix failing tests on Ubuntu R2R configuration (#5435)
Fadi Hanna [Fri, 3 Jun 2016 18:29:54 +0000 (11:29 -0700)]
Fix failing tests on Ubuntu R2R configuration (#5435)

8 years agoMerge pull request #5453 from dotnet-bot/from-tfs
Matt Ellis [Fri, 3 Jun 2016 16:10:15 +0000 (09:10 -0700)]
Merge pull request #5453 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoMerge pull request #5436 from joperezr/DisableNativeResourceCompileForManagedCode
Jose Perez Rodriguez [Fri, 3 Jun 2016 16:09:15 +0000 (09:09 -0700)]
Merge pull request #5436 from joperezr/DisableNativeResourceCompileForManagedCode

Disabling NativeResourceCompile Target for Managed libraries

8 years agoFix readytorun tests asking for user input (#5459)
mkborg [Fri, 3 Jun 2016 14:20:06 +0000 (18:20 +0400)]
Fix readytorun tests asking for user input (#5459)

'readytorun/mainv1' and 'readytorun/mainv2' tests on Linux wait for human
response asking permission to remove write-protected file:

    rm: remove write-protected regular file 'test.dll'?

'rm' command shall be used with '-f' flag to make it non-interactive.

8 years agoFix CFI annotation of AMD64 assembler helpers on Unix (#5446)
Jan Vorlicek [Fri, 3 Jun 2016 10:57:16 +0000 (12:57 +0200)]
Fix CFI annotation of AMD64 assembler helpers on Unix (#5446)

This change fixes annotations of AMD64 assembler helpers on Unix. The helpers that
don't use RBP as a stack frame were missing setting the RSP as a CFA register and
unwinding through them was failing.
This was hit in R2R scenarios, with the DelayLoad_Helper_Obj not being unwindable.

8 years agoAvoid calling prestub through wrong MethodDesc (#5439)
John Chen [Fri, 3 Jun 2016 04:59:01 +0000 (21:59 -0700)]
Avoid calling prestub through wrong MethodDesc (#5439)

While fixing up a call from a Ready-to-Run method, we don't always
have the right implementation MethodDesc for the target of the call.
Thus it is potentially unsafe to DoPrestub using the MethodDesc we have,
causing a test failue (Loader.classloader_regressions_429802_CMain)
in issue #5366. This is fixed by not calling DoPrestub from
ExternalMethodFixupWorker.

8 years agoSome types were only supposed to be present when FEATURE_COMINTEROP was set.
Alex Ghiondea [Fri, 3 Jun 2016 02:31:04 +0000 (19:31 -0700)]
Some types were only supposed to be present when FEATURE_COMINTEROP was set.

This change fixes that.

[tfs-changeset: 1610157]

8 years agoLinux/ARM: Support -O3 optimization level in release build (#5396)
Geunsik Lim [Fri, 3 Jun 2016 01:43:31 +0000 (10:43 +0900)]
Linux/ARM: Support -O3 optimization level in release build (#5396)

Currently, we can build coreclr with -O1 flag of clang in release
build mode for Linux/ARM. This instruction is to enable -O3 optimization
level of clang on ARM/Linux by fixing the bug of llvm.

Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
8 years agoMerge pull request #5443 from swaroop-sridhar/CDTver
Swaroop Sridhar [Fri, 3 Jun 2016 01:40:43 +0000 (18:40 -0700)]
Merge pull request #5443 from swaroop-sridhar/CDTver

CoreDisTools Package: Make minor version generic

8 years agoMerge pull request #5402 from AndyAyersMS/InlineAllowCpBlk
Andy Ayers [Fri, 3 Jun 2016 01:23:05 +0000 (18:23 -0700)]
Merge pull request #5402 from AndyAyersMS/InlineAllowCpBlk

Inliner: enable inlining of methods with cpblk

8 years agoCoreDisTools Package: Make minor version generic
Swaroop Sridhar [Thu, 2 Jun 2016 23:29:11 +0000 (16:29 -0700)]
CoreDisTools Package: Make minor version generic

Change the version requirement of CoreDisTools package
from 1.0.1-prerelease-00001 to 1.0.1-prerelease-*
so that the test infrastructure picks up the latest
available version.

If only the 1.0.1-prerelease-xxxxx number changes,
there is no change in the library API. There may be
a change in the implementation.

The current need for this change is that we need to pick up
a new version of the CoreDisTools package (with an
implementation fix) for X86 testing.

8 years agoIntroduce additional types to the reference assembly for mscorlib and typeforwards...
Alex Ghiondea [Thu, 2 Jun 2016 23:20:39 +0000 (16:20 -0700)]
Introduce additional types to the reference assembly for mscorlib and typeforwards for those type to the right assembly.

[tfs-changeset: 1610086]

8 years agoMerge pull request #5433 from jashook/abs_single
Jarret Shook [Thu, 2 Jun 2016 22:39:43 +0000 (15:39 -0700)]
Merge pull request #5433 from jashook/abs_single

Disable perf_codequality_math_functions

8 years agoDisabling NativeResourceCompile Target for Managed libraries
Jose Perez Rodriguez [Thu, 2 Jun 2016 22:38:59 +0000 (15:38 -0700)]
Disabling NativeResourceCompile Target for Managed libraries

8 years agoDisable perf_codequality_math_functions
Jarret Shook [Thu, 2 Jun 2016 22:22:29 +0000 (15:22 -0700)]
Disable perf_codequality_math_functions

abssingle relies on a certain level of floating point precision and fails if the diff is outside of that precision.

8 years agoRemove unnecessary dependencies from JIT tests causing R2R failures
Russ Keldorph [Thu, 2 Jun 2016 22:09:28 +0000 (15:09 -0700)]
Remove unnecessary dependencies from JIT tests causing R2R failures

b05623 did basically nothing so I deleted it.

I removed a presumably useless VisualBasic attribute and other unnecessary
assembly references from the other two tests.

Fixes #5428

8 years agoMerge pull request #5411 from pgavlin/RVAStaticsUnix
Pat Gavlin [Thu, 2 Jun 2016 20:03:59 +0000 (20:03 +0000)]
Merge pull request #5411 from pgavlin/RVAStaticsUnix

Disable RVA statics tests outside Windows.

8 years agoMerge pull request #5417 from kyulee1/fixdetail
Kyungwoo Lee [Thu, 2 Jun 2016 19:46:45 +0000 (12:46 -0700)]
Merge pull request #5417 from kyulee1/fixdetail

Fix Details for ILAsm/ILDasm/ClrJit Binaries

8 years agoFixing GUID_NULL. (#5415)
Rajkumar Janakiraman [Thu, 2 Jun 2016 19:10:13 +0000 (12:10 -0700)]
Fixing GUID_NULL. (#5415)

8 years agoMerge pull request #5356 from swaroop-sridhar/Trap
Swaroop Sridhar [Thu, 2 Jun 2016 19:01:57 +0000 (12:01 -0700)]
Merge pull request #5356 from swaroop-sridhar/Trap

GCStress: Fix a race-condition

8 years agoMerge pull request #5394 from erozenfeld/TailCallBug5164
Eugene Rozenfeld [Thu, 2 Jun 2016 18:46:43 +0000 (11:46 -0700)]
Merge pull request #5394 from erozenfeld/TailCallBug5164

Fix for methods that tail call via helpers

8 years agoFixing an error in PAL_pow that caused it to return an incorrect value for a couple...
Tanner Gooding [Thu, 2 Jun 2016 18:29:59 +0000 (11:29 -0700)]
Fixing an error in PAL_pow that caused it to return an incorrect value for a couple scenarios. (#5399)

* Fixing an error in PAL_pow that caused it to return an incorrect value for a couple scenarios.

* Adding additional PAL_pow tests.

8 years agoFix Details for ILAsm/ILDasm/ClrJit Binaries
Kyungwoo Lee [Thu, 2 Jun 2016 17:02:58 +0000 (10:02 -0700)]
Fix Details for ILAsm/ILDasm/ClrJit Binaries

Fixes https://github.com/dotnet/coreclr/issues/5408

8 years agoMerge pull request #5409 from gkhanna79/FixDetails
Gaurav Khanna [Thu, 2 Jun 2016 16:21:07 +0000 (09:21 -0700)]
Merge pull request #5409 from gkhanna79/FixDetails

Fix details for CoreCLR binary

8 years agoMerge pull request #5400 from weshaggard/FixPackageLicenseFiles
Wes Haggard [Thu, 2 Jun 2016 15:38:14 +0000 (08:38 -0700)]
Merge pull request #5400 from weshaggard/FixPackageLicenseFiles

Include license files into the packages

8 years agoDisable RVA statics tests outside Windows.
Pat Gavlin [Thu, 2 Jun 2016 15:21:13 +0000 (08:21 -0700)]
Disable RVA statics tests outside Windows.

These tests are not supported in general and are already disabled
for Windows. Disable them for *nix as well.

8 years agoFix details for CoreCLR binary
Gaurav Khanna [Thu, 2 Jun 2016 14:07:50 +0000 (07:07 -0700)]
Fix details for CoreCLR binary

8 years agoEnable FEATURE_HIJACK for ARM (#5404)
Jonghyun Park [Thu, 2 Jun 2016 13:57:13 +0000 (22:57 +0900)]
Enable FEATURE_HIJACK for ARM (#5404)

Currently, FEATURE_HIJACK is disabled for ARM, and thus CoreCLR got
stuck if GC is invoked from JITed code.

This commit attempts to port FEATURE_HIJACK from ARM (windows) in order
to fix #5403.

8 years agoValidate new object construction in Ready to Run (#5398)
John Chen [Thu, 2 Jun 2016 13:43:23 +0000 (06:43 -0700)]
Validate new object construction in Ready to Run (#5398)

Existing Ready to Run implementation doesn't fully validate requests
to create object instances, and allows some invalidate requests (e.g.,
to create an instance of an abstract class). This causes failure of
test case Loader.classloader_generics_Instantiation_Negative_abstract01
in issue #5366.

8 years agoInclude license files into the packages
Wes Haggard [Thu, 2 Jun 2016 06:14:13 +0000 (23:14 -0700)]
Include license files into the packages

8 years agoAdd filtering logic to XplatEventLogger
David Mason [Tue, 31 May 2016 22:07:09 +0000 (15:07 -0700)]
Add filtering logic to XplatEventLogger

8 years agoMerge pull request #5386 from briansull/arm32-hfa-fix
Brian Sullivan [Thu, 2 Jun 2016 02:49:53 +0000 (19:49 -0700)]
Merge pull request #5386 from briansull/arm32-hfa-fix

Fix for HFA args on ARM32

8 years agoAdd limit to number of generics methods to compile by CrossGen (#5383)
John Chen [Thu, 2 Jun 2016 01:36:23 +0000 (18:36 -0700)]
Add limit to number of generics methods to compile by CrossGen (#5383)

Recursive generic definitions can easily make CrossGen take very
long time to complete. This is the cause of a failure in issue #5366.
This is fixed by limiting the number of methods to compile by CrossGen.

8 years agoAdded additional fix for ARM32 in lvHfaSlots
Brian Sullivan [Thu, 2 Jun 2016 01:27:30 +0000 (18:27 -0700)]
Added additional fix for ARM32 in lvHfaSlots

8 years agoImprovements to System.Math InternalCall code. (#4847)
Tanner Gooding [Thu, 2 Jun 2016 01:17:24 +0000 (18:17 -0700)]
Improvements to System.Math InternalCall code. (#4847)

* Adding some basic System.Math performance tests.

* Renaming 'floatnative' to 'floatdouble'.

* Removing outdated workarounds in the floatdouble interop code.

* Renaming 'finite.cpp' to 'math.cpp'

* Updating the double-precision math tests.

* Updating PAL_EPSILON to be more precise.

8 years agoJIT_TailCall helper has an implicit assumption that all tail call arguments live
Eugene Rozenfeld [Thu, 2 Jun 2016 00:38:53 +0000 (17:38 -0700)]
JIT_TailCall helper has an implicit assumption that all tail call arguments live

on the caller's frame. If an argument lives on the caller caller's frame, it may get
overwritten if that frame is reused for the tail call. Therefore, we should always copy
struct parameters if they are passed as arguments to a tail call.

The simple il regression test has a scenario similar to that of the F# repro in #5164.

Closes #5164.

8 years agoImport `new` multi-dimmensional array using the non-vararg helper (#5313)
Jan Kotas [Thu, 2 Jun 2016 00:09:15 +0000 (17:09 -0700)]
Import `new` multi-dimmensional array using the non-vararg helper (#5313)

* Factor out import of `new` multi-dimmensional array
* Implement import of `new` multi-dimmensional array using the non-vararg helper
* Delete RETURN_TYPE_IS_COMPOSITE inlining observation because of it is never hit.
* Add R2R id for non-vararg helper
* Reformat affected code to follow coding conventions

8 years agoMerge pull request #5375 from pgavlin/CSECleanup
Pat Gavlin [Wed, 1 Jun 2016 23:58:48 +0000 (23:58 +0000)]
Merge pull request #5375 from pgavlin/CSECleanup

Remove some lexical-CSE-related code.

8 years agoGCStress: Fix a race-condition
Swaroop Sridhar [Wed, 1 Jun 2016 04:15:07 +0000 (21:15 -0700)]
GCStress: Fix a race-condition

This change ensures that calls to CORINFO_HELP_STOP_FOR_GC() themselves
are not converted to GC-Stress traps -- thus preventing the race between
the GC thread, and a managed thread under GCStress.

Identification of calls to CORINFO_HELP_STOP_FOR_GC():
Since this is a GCStress only requirement, its not worth special identification in the GcInfo
Since CORINFO_HELP_STOP_FOR_GC() calls are realized as indirect calls by the JIT, we cannot identify
them by address at the time of SprinkleBreakpoints().
So, we actually let the SprinkleBreakpoints() replace the call to CORINFO_HELP_STOP_FOR_GC()
with a trap, and revert it back to the original instruction the first time we hit the trap in
OnGcCoverageInterrupt().

Upside: No change to GCInfo or JIT is necessary
Downside: Need to decode a few bytes on every GCStress interrupt.

Fixes #4794

8 years agoMerge pull request #5365 from kouvel/NamedMutexTests
Koundinya Veluri [Wed, 1 Jun 2016 22:18:30 +0000 (15:18 -0700)]
Merge pull request #5365 from kouvel/NamedMutexTests

Named mutexes: fix handle leak, add stress tests

8 years agoMerge pull request #5384 from wtgodbe/publishing
William Godbe [Wed, 1 Jun 2016 22:11:37 +0000 (15:11 -0700)]
Merge pull request #5384 from wtgodbe/publishing

Publish pkg/symbolpkg folders within Release/Debug folders

8 years agoPublish pkg/symbolpkg folders within Release/Debug folders
wtgodbe [Wed, 1 Jun 2016 22:04:46 +0000 (15:04 -0700)]
Publish pkg/symbolpkg folders within Release/Debug folders

8 years agoProposed fix for HFA args on ARM32
Brian Sullivan [Wed, 1 Jun 2016 20:50:55 +0000 (13:50 -0700)]
Proposed fix for HFA args on ARM32

8 years agoRemove some lexical-CSE-related code.
Pat Gavlin [Wed, 1 Jun 2016 18:11:26 +0000 (11:11 -0700)]
Remove some lexical-CSE-related code.

Lexical CSE is no more; remove some related code:
- Remove the `lexicalCSE` parameter and related checks from `optConfigDisableCSE`.
- Remove the `VALNUM_CSE_ENABLED` symbol: this symbol is unconditionally
  set to 1 and doesn't control much other than the behavior of
  `optConfigDisableCSE`

8 years agoSpeed up CreateComparer in Comparer/EqualityComparer (#5315)
James Ko [Wed, 1 Jun 2016 20:19:47 +0000 (16:19 -0400)]
Speed up CreateComparer in Comparer/EqualityComparer (#5315)

8 years agoFix for issue 5343: Assert Failure: !"Cannot take the address of an uninstantiated...
Fadi Hanna [Wed, 1 Jun 2016 20:05:45 +0000 (13:05 -0700)]
Fix for issue 5343: Assert Failure: !"Cannot take the address of an uninstantiated generic method." (#5347)

The problem was that the delegates code base was not correctly instantiating interface GVMs on target types
(after finding the target method on the target type using slot numbers), and ended up calling uninstantiated
generic method definitions on delegate invokes.

8 years agoMerge pull request #5372 from kyulee1/eh11
Kyungwoo Lee [Wed, 1 Jun 2016 19:37:34 +0000 (12:37 -0700)]
Merge pull request #5372 from kyulee1/eh11

ARM64: eh11_large exclusion

8 years agoMerge pull request #5376 from wtgodbe/publishFix
William Godbe [Wed, 1 Jun 2016 19:19:32 +0000 (12:19 -0700)]
Merge pull request #5376 from wtgodbe/publishFix

Publish packages into folders named for their configuration

8 years agoPublish packages into folders named for their configuration
wtgodbe [Wed, 1 Jun 2016 19:18:33 +0000 (12:18 -0700)]
Publish packages into folders named for their configuration

8 years agoMerge pull request #5306 from jamesqo/jitdump-docs
Andy Ayers [Wed, 1 Jun 2016 19:02:21 +0000 (12:02 -0700)]
Merge pull request #5306 from jamesqo/jitdump-docs

Add new document on how to setup/view JIT dumps

8 years agoARM64: eh11_large exclusion
Kyungwoo Lee [Wed, 1 Jun 2016 17:24:39 +0000 (10:24 -0700)]
ARM64: eh11_large exclusion

This test often fails in release run.

8 years agoMerge pull request #4918 from stephentoub/task_parent_size
Stephen Toub [Wed, 1 Jun 2016 17:24:34 +0000 (13:24 -0400)]
Merge pull request #4918 from stephentoub/task_parent_size

Shrink Task size by 10%

8 years agoAdd new document on how to setup/view JIT dumps
James Ko [Wed, 1 Jun 2016 17:19:22 +0000 (17:19 +0000)]
Add new document on how to setup/view JIT dumps

8 years agoRemove duplicate avoid in comments from a few files (#5363)
James Singleton [Wed, 1 Jun 2016 16:27:43 +0000 (17:27 +0100)]
Remove duplicate avoid in comments from a few files (#5363)

Remove double avoid in comments

8 years agoMerge pull request #4909 from lemmaa/unit-test-enhancement
Aditya Mandaleeka [Wed, 1 Jun 2016 16:15:10 +0000 (09:15 -0700)]
Merge pull request #4909 from lemmaa/unit-test-enhancement

Add extra options to 'runtest.sh' for effective test monitoring.

8 years agoAdd more Ready-to-Run generics tests (#5190)
John Chen [Wed, 1 Jun 2016 14:59:52 +0000 (07:59 -0700)]
Add more Ready-to-Run generics tests (#5190)

8 years agoAdd named mutex stress tests
Koundinya Veluri [Mon, 23 May 2016 17:42:08 +0000 (10:42 -0700)]
Add named mutex stress tests

- The existing PAL tests are run in parallel, each in a separate thread, for a specified duration

8 years agoFix handle leak when creating or opening named mutex fails
Koundinya Veluri [Mon, 23 May 2016 17:42:08 +0000 (10:42 -0700)]
Fix handle leak when creating or opening named mutex fails

- After the pal object is registered, it gets a second reference from the handle. Upon an error after that, the handle needs to be revoked in addition to releasing the initial reference.

8 years agoARM/Linux: Fix Exception Handler PAL Test Fail (#5360)
MyungJoo Ham [Wed, 1 Jun 2016 10:22:10 +0000 (19:22 +0900)]
ARM/Linux: Fix Exception Handler PAL Test Fail (#5360)

The return address should be kept intact, not recovered
just yet. It is going to be recovered by libgcc's
rescore_core_regs much later, few instructions before
heading back to "catch".

Fixes #5358

8 years agoComment typo fix: removed double word (#5359)
Kurt Aadnoy [Wed, 1 Jun 2016 10:20:54 +0000 (12:20 +0200)]
Comment typo fix: removed double word (#5359)

The overflow check comment for AllocateStringFastMP_InlineGetThread contained an extra "avoid".

8 years agoFix JIT PInvoke Check Failure on Linux/ARM (#5322)
Jonghyun Park [Wed, 1 Jun 2016 10:19:55 +0000 (19:19 +0900)]
Fix JIT PInvoke Check Failure on Linux/ARM (#5322)

Disable SP check on ARM

8 years agoMerge pull request #5350 from pgavlin/gh5292and5286
Pat Gavlin [Wed, 1 Jun 2016 03:50:35 +0000 (03:50 +0000)]
Merge pull request #5350 from pgavlin/gh5292and5286

Mark two tests as always optimized and exclude two others from x86/JI…

8 years agoAdd options to 'runtest.sh'
Sung-Jae Lee [Wed, 11 May 2016 10:42:50 +0000 (19:42 +0900)]
Add options to 'runtest.sh'

- '--show-time'
   display execution sequence and approximate running time for each
   test cases.
- '--no-lf-conversion'
   skip LF conversion for each test case script.

Note: `date` on Mac OS X doesn't support `%N` format specifiler.
In this case, we don't need precise time, so just ignore the time
less then a second.

8 years agoMerge pull request #5353 from ramarag/windowsr2r
Rama krishnan Raghupathy [Wed, 1 Jun 2016 01:02:34 +0000 (18:02 -0700)]
Merge pull request #5353 from ramarag/windowsr2r

Refactoring Arguments passed to runtest.cmd

8 years agoInliner: enable inlining of methods with cpblk
Andy Ayers [Sun, 29 May 2016 05:42:39 +0000 (22:42 -0700)]
Inliner: enable inlining of methods with cpblk

Allow jit to inline methods with the cpblk IL opcode. Add a test case
where such an inline happens.

8 years agoRefactoring Arguments passed to runtest.cmd
Rama Krishnan Raghupathy [Wed, 1 Jun 2016 00:35:36 +0000 (17:35 -0700)]
Refactoring Arguments passed to runtest.cmd

8 years agoMerge pull request #5340 from pgavlin/ComputeFPlvls
Pat Gavlin [Tue, 31 May 2016 22:29:42 +0000 (22:29 +0000)]
Merge pull request #5340 from pgavlin/ComputeFPlvls

Refactor fgComputeFPlvls

8 years agoMark two tests as always optimized and exclude two others from x86/JIT32.
Pat Gavlin [Tue, 31 May 2016 22:27:05 +0000 (15:27 -0700)]
Mark two tests as always optimized and exclude two others from x86/JIT32.

The former tests require optimization in order to pass and the latter require further
deliberation re: the appropriate fix (see #5286 for more info).

Fixes #5292.

8 years agoMerge pull request #5339 from kyulee1/fixmemset
Kyungwoo Lee [Tue, 31 May 2016 21:44:51 +0000 (14:44 -0700)]
Merge pull request #5339 from kyulee1/fixmemset

ARM64: Fix JIT_MemSet

8 years agoMerge pull request #5335 from swgillespie/gcstress-disable
Sean Gillespie [Tue, 31 May 2016 21:22:09 +0000 (14:22 -0700)]
Merge pull request #5335 from swgillespie/gcstress-disable

Disable a large number of GC tests from running under GCStress

8 years agoMerge pull request #5294 from ellismg/enable-other-distros-for-building
Matt Ellis [Tue, 31 May 2016 21:07:44 +0000 (14:07 -0700)]
Merge pull request #5294 from ellismg/enable-other-distros-for-building

Enable other distros for building

8 years agoMerge pull request #5334 from pgavlin/LongMathRegparam
Pat Gavlin [Tue, 31 May 2016 20:50:54 +0000 (20:50 +0000)]
Merge pull request #5334 from pgavlin/LongMathRegparam

Remove LONG_MATH_REGPARAM from the JIT.

8 years agoFix for issue 5241: [RTM] Interop\ICastable\Castable\Castable.cmd CONTRACT VIOLATION...
Fadi Hanna [Tue, 31 May 2016 19:58:02 +0000 (12:58 -0700)]
Fix for issue 5241: [RTM] Interop\ICastable\Castable\Castable.cmd CONTRACT VIOLATION by ReadyToRunInfo::TryLookupTypeTokenFromName (#5296)

8 years agoMerge pull request #5301 from RussKeldorph/try2
Russ Keldorph [Tue, 31 May 2016 19:47:07 +0000 (12:47 -0700)]
Merge pull request #5301 from RussKeldorph/try2

Second attempt to properly modify environment for stress test modes

8 years agoSupport building on all supported distros
Matt Ellis [Fri, 27 May 2016 21:59:43 +0000 (14:59 -0700)]
Support building on all supported distros

With the updated buildtools, we should now be able to build on all the supported distros:

 - Centos 7
 - Fedora 23
 - openSUSE 13.2
 - RHEL 7.2
 - Ubuntu 14.04
 - Ubuntu 16.06

I also cleaned up how we compute the RID for the tools to restore.

8 years agoMove gtComputeFPlvls next to gtSetEvalOrder.
Pat Gavlin [Tue, 31 May 2016 18:38:30 +0000 (11:38 -0700)]
Move gtComputeFPlvls next to gtSetEvalOrder.

8 years agoRename fg{FPstLvlRedo,ComputeFPlvls} to gt*.
Pat Gavlin [Tue, 31 May 2016 18:35:31 +0000 (11:35 -0700)]
Rename fg{FPstLvlRedo,ComputeFPlvls} to gt*.

This variable and function are more appropriately grouped with the GenTree-related
funcaionality, as they are peers of gtSetEvalOrder.

8 years agoARM64: Fix JIT_MemSet
Kyungwoo Lee [Tue, 31 May 2016 18:20:35 +0000 (11:20 -0700)]
ARM64: Fix JIT_MemSet

Init value should be treated as an unsigned char.

8 years agoDisable a large number of GC tests from running under GCStress
Sean Gillespie [Tue, 31 May 2016 18:05:40 +0000 (11:05 -0700)]
Disable a large number of GC tests from running under GCStress

8 years agoRemove LONG_MATH_REGPARAM from the JIT.
Pat Gavlin [Tue, 31 May 2016 18:01:20 +0000 (11:01 -0700)]
Remove LONG_MATH_REGPARAM from the JIT.

This symbol was never defined as true, and as such the various bits of code predicated
on it were dead. This change removes the symbol and its associated code.

8 years agoMerge pull request #5189 from AlexGhiondea/buildPackage
AlexGhiondea [Tue, 31 May 2016 17:54:23 +0000 (10:54 -0700)]
Merge pull request #5189 from AlexGhiondea/buildPackage

Include the targeting pack in the build process.

8 years agoPort String.IndexOf(char) and LastIndexOf(char) from CoreRT (#5327)
Bruce Bowyer-Smyth [Tue, 31 May 2016 14:29:05 +0000 (00:29 +1000)]
Port String.IndexOf(char) and LastIndexOf(char) from CoreRT (#5327)

8 years agoUpdate Windows instructions (#5312)
Petr Onderka [Tue, 31 May 2016 03:48:01 +0000 (05:48 +0200)]
Update Windows instructions (#5312)

* Small improvements to Windows instructions

* copy missing System.Private.CoreLib.dll

* syntax highlighting

* Use ref assemblies from CoreFX instead of NuGet

* Used AnyOS directories for CoreFX assemblies

Also use built facade assemblies.

AnyOS directories are safer, since they don't rely on tests to be built.

(Building main project usually creates just AnyOS, building test project creates the Windows_NT version.)

8 years agoUpdate tryrun.cmake for arm-softfp (#5323)
chunseoklee [Tue, 31 May 2016 03:46:12 +0000 (12:46 +0900)]
Update tryrun.cmake for arm-softfp (#5323)

8 years agoUpdates tryrun.cmake for ARM cross build (#5317)
Jonghyun Park [Tue, 31 May 2016 03:45:48 +0000 (12:45 +0900)]
Updates tryrun.cmake for ARM cross build (#5317)

8 years agoEnable 'System.Private.CoreLib.dll' build on cross build mode (#5320)
Jonghyun Park [Tue, 31 May 2016 03:44:20 +0000 (12:44 +0900)]
Enable 'System.Private.CoreLib.dll' build on cross build mode (#5320)

Currently, build.sh uses 'BuildOS' and 'BuildArch' to determine whether
it is possible to build 'System.Private.CorLib.dll'.

This commit revises build.sh to use 'HostOS' and 'HostArch' instead of
'BuildOS' and 'BuildArch' when it checkes whether it is possible to
build 'System.Private.CoreLib.dll', which allows to build
'System.Private.CoreLib.dll' in cross build mode.

8 years agoFix: if errorlevel 0 is almost always true (#5308)
James Ko [Mon, 30 May 2016 17:36:10 +0000 (13:36 -0400)]
Fix: if errorlevel 0 is almost always true (#5308)

Explanation: if errorlevel n actually tests if the errorlevel is
greater than or equal to n. See: http://ss64.com/nt/if.html

8 years agoMerge pull request #5240 from wateret/mscorlib-arm-softfp
Jan Kotas [Mon, 30 May 2016 17:33:47 +0000 (10:33 -0700)]
Merge pull request #5240 from wateret/mscorlib-arm-softfp

Support CoreLib build for arm-softfp

8 years agoMerge pull request #5087 from myungjoo/fix/4859/janvorli_suggestion
Jan Kotas [Mon, 30 May 2016 17:30:14 +0000 (10:30 -0700)]
Merge pull request #5087 from myungjoo/fix/4859/janvorli_suggestion

Fix/4859 Unit Test 143837 Fail

8 years agoAvoid unnecessary ContingentProperties allocations
stephentoub [Mon, 2 May 2016 04:42:32 +0000 (00:42 -0400)]
Avoid unnecessary ContingentProperties allocations

We don't need to allocate it for child tasks if there isn't actually a parent.

8 years agoMake m_contingentProperties non-volatile
stephentoub [Sun, 1 May 2016 23:11:40 +0000 (19:11 -0400)]
Make m_contingentProperties non-volatile

Most accesses, including those to get the recently moved m_parent field, do not need to be volatile.  This commit makes the field non-volatile and then adds usage of Volatile.Read only where needed.

8 years agoMove Task's m_parent to ContingentProperties
stephentoub [Sun, 1 May 2016 22:25:07 +0000 (18:25 -0400)]
Move Task's m_parent to ContingentProperties

Shrinks the size of Task by 10% in the common case (when ContingentProperties doesn't need to be expanded).

8 years agoFix ucol_setMaxVariable detection for Gentoo Linux (#5309)
Peter Jas [Mon, 30 May 2016 09:54:02 +0000 (12:54 +0300)]
Fix ucol_setMaxVariable detection for Gentoo Linux (#5309)

The issue was the symbol is exported by the ICU lib. Including headers
was not enough. The linker requires the libraries to succeed.

With this fix, CoreCLR successfully builds on Gentoo Linux 100%.
Tested with LXC gentoo container on Ubuntu machine.

Steps to configure and build:
https://gist.github.com/jasonwilliams200OK/1a2e2c0e904ffa95faf6333fcd88d9b8

Fix #5160

8 years agoDon't use libstdc++ wrappers for stdlib.h (#5304)
Jürgen Hötzel [Mon, 30 May 2016 09:45:49 +0000 (11:45 +0200)]
Don't use libstdc++ wrappers for stdlib.h (#5304)

This prevents #undef of min/max macros. Refs #5006.

8 years agoARM: Remove workaround no more required
MyungJoo Ham [Wed, 25 May 2016 10:06:50 +0000 (19:06 +0900)]
ARM: Remove workaround no more required

With recent concrete unwinding/exception handling routines
of coreclr-arm-linux, we no longer need this workaround.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agoARM/THUMB PC Least Bit Set for Range Check
MyungJoo Ham [Thu, 19 May 2016 02:23:51 +0000 (11:23 +0900)]
ARM/THUMB PC Least Bit Set for Range Check

Fix #4859

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agoMerge pull request #5093 from wateret/fix-returnstruct-arm-softfp
Russ Keldorph [Mon, 30 May 2016 06:34:08 +0000 (23:34 -0700)]
Merge pull request #5093 from wateret/fix-returnstruct-arm-softfp

Fix Assert Error "Unexpected size when returning struct by value" on …

8 years agoMerge pull request #5307 from ellismg/fix-rhel-build
Sergiy Kuryata [Sun, 29 May 2016 20:52:53 +0000 (13:52 -0700)]
Merge pull request #5307 from ellismg/fix-rhel-build

Fix RHEL 7 Build