platform/upstream/coreclr.git
5 years agoFixing some naming conventions and removing dead code.
Tanner Gooding [Mon, 17 Sep 2018 21:29:49 +0000 (14:29 -0700)]
Fixing some naming conventions and removing dead code.

5 years agoRemoving bcltype/fp.h from native code.
Tanner Gooding [Mon, 17 Sep 2018 16:45:13 +0000 (09:45 -0700)]
Removing bcltype/fp.h from native code.

5 years agoMaking Number.Grisu3.DigitGen slightly more efficient.
Tanner Gooding [Mon, 17 Sep 2018 16:28:30 +0000 (09:28 -0700)]
Making Number.Grisu3.DigitGen slightly more efficient.

5 years agoRemoving the Grisu3 native implementation.
Tanner Gooding [Mon, 17 Sep 2018 07:03:26 +0000 (00:03 -0700)]
Removing the Grisu3 native implementation.

5 years agoPorting the Grisu3 algorithm to managed code.
Tanner Gooding [Mon, 17 Sep 2018 06:55:18 +0000 (23:55 -0700)]
Porting the Grisu3 algorithm to managed code.

5 years agoPorting bcltype/diyfp.cpp to managed code as shared/System/Number.DiyFp.cs
Tanner Gooding [Mon, 17 Sep 2018 06:16:36 +0000 (23:16 -0700)]
Porting bcltype/diyfp.cpp to managed code as shared/System/Number.DiyFp.cs

5 years agoRemoving the Dragon4 and DoubleToNumber native implementation.
Tanner Gooding [Mon, 17 Sep 2018 05:35:26 +0000 (22:35 -0700)]
Removing the Dragon4 and DoubleToNumber native implementation.

5 years agoPorting the Dragon4 algorithm to managed code.
Tanner Gooding [Mon, 17 Sep 2018 05:34:40 +0000 (22:34 -0700)]
Porting the Dragon4 algorithm to managed code.

5 years agoPorting bcltype/bignum.cpp to managed code as shared/System/Number.BigInteger.cs
Tanner Gooding [Mon, 17 Sep 2018 05:30:56 +0000 (22:30 -0700)]
Porting bcltype/bignum.cpp to managed code as shared/System/Number.BigInteger.cs

5 years agoRevert "Move smoketests to use Helix queue (#20017)" (#20058)
Michelle McDaniel [Thu, 20 Sep 2018 16:58:01 +0000 (09:58 -0700)]
Revert "Move smoketests to use Helix queue (#20017)" (#20058)

This reverts commit d529163b2dbc880117f436d8a824d531b1506346.

5 years agoMerge pull request #20035 from echesakovMSFT/CrossBitnessLinuxPerfMap
Egor Chesakov [Thu, 20 Sep 2018 16:53:13 +0000 (09:53 -0700)]
Merge pull request #20035 from echesakovMSFT/CrossBitnessLinuxPerfMap

Make Hostx64/arm crossgen /CreatePerfMap behave the same as Hostarm/arm crossgen

5 years agoMerge pull request #20071 from BruceForstall/FixViews
Bruce Forstall [Thu, 20 Sep 2018 15:27:58 +0000 (08:27 -0700)]
Merge pull request #20071 from BruceForstall/FixViews

Fix arm/arm64 Jenkins views

5 years agoCleans up error message caching in DuplicateWaitObjectException (#20073)
Marek Safar [Thu, 20 Sep 2018 15:05:17 +0000 (17:05 +0200)]
Cleans up error message caching in DuplicateWaitObjectException (#20073)

5 years agoFix arm/arm64 Jenkins views
Bruce Forstall [Thu, 20 Sep 2018 07:22:40 +0000 (00:22 -0700)]
Fix arm/arm64 Jenkins views

Filter out the non-flow jobs, especially the corefx builds that are
consumed by corefx flow jobs.

5 years agoMerge pull request #20069 from dotnet/dev/unix_test_workflow
Bruce Forstall [Thu, 20 Sep 2018 07:58:57 +0000 (00:58 -0700)]
Merge pull request #20069 from dotnet/dev/unix_test_workflow

Refine Linux arm64 "limited hardware" designation

5 years agoMerge pull request #20070 from BruceForstall/FixLimited
Bruce Forstall [Thu, 20 Sep 2018 07:41:46 +0000 (00:41 -0700)]
Merge pull request #20070 from BruceForstall/FixLimited

Exclude Windows from arm64 daily corefx job scheduling

5 years agoExclude Windows from arm64 daily corefx job scheduling
Bruce Forstall [Thu, 20 Sep 2018 07:40:45 +0000 (00:40 -0700)]
Exclude Windows from arm64 daily corefx job scheduling

5 years agoMerge pull request #20068 from BruceForstall/FixLimitedHardware
Bruce Forstall [Thu, 20 Sep 2018 07:17:40 +0000 (00:17 -0700)]
Merge pull request #20068 from BruceForstall/FixLimitedHardware

Refine Linux arm64 "limited hardware" designation

5 years agoRefine Linux arm64 "limited hardware" designation
Bruce Forstall [Thu, 20 Sep 2018 06:51:50 +0000 (23:51 -0700)]
Refine Linux arm64 "limited hardware" designation

Add Linux arm64 to the limited hardware category, meaning non-PR jobs
only run in the master branch.

However, allow non-corefx JIT stress jobs to be scheduled daily,
as they are fast. If corefx jobs are changes to run in parallel
(and thus are faster), they can also possibly be made to run daily.

5 years agoMerge pull request #20065 from BruceForstall/FixArm64Innerloop
Bruce Forstall [Thu, 20 Sep 2018 06:33:57 +0000 (23:33 -0700)]
Merge pull request #20065 from BruceForstall/FixArm64Innerloop

Fix arm64 Linux innerloop triggered jobs

5 years agoFix arm64 Linux innerloop triggered jobs
Bruce Forstall [Thu, 20 Sep 2018 00:27:07 +0000 (17:27 -0700)]
Fix arm64 Linux innerloop triggered jobs

Only trigger flow job, not build job.

5 years agoMerge pull request #20064 from BruceForstall/FixSpace
Bruce Forstall [Thu, 20 Sep 2018 00:07:50 +0000 (17:07 -0700)]
Merge pull request #20064 from BruceForstall/FixSpace

Remove extra space from verbose context strings

5 years agoRemove extra space from verbose context strings
Bruce Forstall [Wed, 19 Sep 2018 23:48:19 +0000 (16:48 -0700)]
Remove extra space from verbose context strings

5 years agoMerge pull request #20002 from mikedn/undef-printf
Carol Eidt [Wed, 19 Sep 2018 23:37:59 +0000 (16:37 -0700)]
Merge pull request #20002 from mikedn/undef-printf

Always define printf/fprintf in JIT

5 years agoMerge pull request #20038 from CarolEidt/Fix20031
Carol Eidt [Wed, 19 Sep 2018 23:25:15 +0000 (16:25 -0700)]
Merge pull request #20038 from CarolEidt/Fix20031

Fix MultiReg methods on GenTree

5 years agoMerge pull request #19811 from pentp/xcnt-false-dep
Carol Eidt [Wed, 19 Sep 2018 21:45:16 +0000 (14:45 -0700)]
Merge pull request #19811 from pentp/xcnt-false-dep

Improved fix for target register false dependency of lzcnt/tzcnt/popcnt

5 years agoMove smoketests to use Helix queue (#20017)
Michelle McDaniel [Wed, 19 Sep 2018 21:25:15 +0000 (14:25 -0700)]
Move smoketests to use Helix queue (#20017)

5 years agoMerge pull request #19993 from dotnet/dev/unix_test_workflow
Bruce Forstall [Wed, 19 Sep 2018 21:18:30 +0000 (14:18 -0700)]
Merge pull request #19993 from dotnet/dev/unix_test_workflow

Enable arm64 Linux testing in CI

Testing is enabled on a set of Qualcomm Centriq arm64 servers running Ubuntu 16.04.
The set of jobs enabled almost matches the set run for arm32 Linux testing,
including innerloop, JIT and GC Stress, corefx, and R2R. Temporarily, the
innerloop jobs are commit jobs (invoked when a PR is merged) instead of
"default trigger" jobs (invoked when a PR is submitted), until we get more
experience with the robustness of the machines and jobs. The machines are
fast enough that they are not marked as "limited hardware" (like arm32 Linux
machines). That means that many jobs are run daily, not weekly, as periodic jobs.

Notes about the changes:
1. The Linux arm64 machines are managed by Helix, which allocates them to Jenkins.
2. The arm64 OS used has been renamed from "small_page_size" to "Ubuntu16.04". If we
add large page size machines, we'll need to add a differentiator.
3. The Jenkins "copy artifacts" plug-in runs ridiculously slowly on this hardware,
for unknown reasons, so we copy artifacts directly using "wget".
4. Tests are built using "build-test.sh" on the (cross) build machine; we don't use
Windows-built tests.
5. Added Jenkins archiving of build .log/.wrn/.err files.
6. Various tests were disabled in issues.targets, and with a new
arm64/corefx_linux_test_exclusions.txt file, to get jobs to run clean. (Several
issues have been opened to track these and other known failures.)

5 years agoCleanup registry usage within CoreLib (#20050)
Jan Kotas [Wed, 19 Sep 2018 21:12:40 +0000 (14:12 -0700)]
Cleanup registry usage within CoreLib (#20050)

- Ensure that the registry keys are always disposed
- Use smaller subset of registry APIs
- Reduce diffs with CoreCLR/CoreFX
- Contributes to #11009 and #17899

5 years agoTurns Math/MathF RoundLimit into a constant (#20044)
Marek Safar [Wed, 19 Sep 2018 18:37:17 +0000 (20:37 +0200)]
Turns Math/MathF RoundLimit into a constant (#20044)

5 years agoEnable arm64 Linux testing in CI
Bruce Forstall [Wed, 22 Aug 2018 20:55:53 +0000 (13:55 -0700)]
Enable arm64 Linux testing in CI

Testing is enabled on a set of Qualcomm Centriq arm64 servers running Ubuntu 16.04.
The set of jobs enabled almost matches the set run for arm32 Linux testing,
including innerloop, JIT and GC Stress, corefx, and R2R. Temporarily, the
innerloop jobs are commit jobs (invoked when a PR is merged) instead of
"default trigger" jobs (invoked when a PR is submitted), until we get more
experience with the robustness of the machines and jobs. The machines are
fast enough that they are not marked as "limited hardware" (like arm32 Linux
machines). That means that many jobs are run daily, not weekly, as periodic jobs.

Notes about the changes:
1. The Linux arm64 machines are managed by Helix, which allocates them to Jenkins.
2. The arm64 OS used has been renamed from "small_page_size" to "Ubuntu16.04". If we
add large page size machines, we'll need to add a differentiator.
3. The Jenkins "copy artifacts" plug-in runs ridiculously slowly on this hardware,
for unknown reasons, so we copy artifacts directly using "wget".
4. Tests are built using "build-test.sh" on the (cross) build machine; we don't use
Windows-built tests.
5. Added Jenkins archiving of build .log/.wrn/.err files.
6. Various tests were disabled in issues.targets, and with a new
arm64/corefx_linux_test_exclusions.txt file, to get jobs to run clean. (Several
issues have been opened to track these and other known failures.)

5 years agoRemove Sse2 ConvertTo* tests from Tests.lst files for arm and arm64 Windows targets
Jacek Blaszczynski [Thu, 6 Sep 2018 21:15:19 +0000 (23:15 +0200)]
Remove Sse2 ConvertTo* tests from Tests.lst files for arm and arm64 Windows targets

5 years agoAdd generated code for Convert Sse2 ConvertTo* and ConvertToVector128* tests
Jacek Blaszczynski [Thu, 6 Sep 2018 10:42:27 +0000 (12:42 +0200)]
Add generated code for Convert Sse2 ConvertTo* and ConvertToVector128* tests

Removed old tests, changed GenerateTests.csx layout

5 years agoConvert Sse2 ConvertTo* and ConvertToVector128* tests to template based
Jacek Blaszczynski [Thu, 6 Sep 2018 10:31:56 +0000 (12:31 +0200)]
Convert Sse2 ConvertTo* and ConvertToVector128* tests to template based

Changes comprise addition of new templates, new test generation logic
which supports test cases which have to be differentiated based
on both return VectorNNN baset type and source VectorNNN base type.
This commit is skipping all code which was generated or changed
due to code layout adjustment (white space changes).

5 years agoFix perf scenarios in the min_opt config (#20010)
Koundinya Veluri [Wed, 19 Sep 2018 10:30:49 +0000 (03:30 -0700)]
Fix perf scenarios in the min_opt config (#20010)

The appropriate environment variables were not being set due to a name mismatch

5 years agoReplace assert in Precode::SetTargetInterlocked (#20007)
Koundinya Veluri [Wed, 19 Sep 2018 10:30:01 +0000 (03:30 -0700)]
Replace assert in Precode::SetTargetInterlocked (#20007)

Fixes https://github.com/dotnet/coreclr/issues/19954
- `SetTargetInterlocked` can be soon followed by `ResetTargetInterlocked`, so the assert at the end of `SetTargetInterlocked` is invalid
- Removed the assert and instead just verified that the specified target is not the default prestub target

5 years agoAdd 2.2 sdk/runtime to JitBench (#19778)
Koundinya Veluri [Wed, 19 Sep 2018 10:29:01 +0000 (03:29 -0700)]
Add 2.2 sdk/runtime to JitBench (#19778)

Add 2.2 sdk/runtime to JitBench

5 years agoIndentation
Andon Andonov [Tue, 18 Sep 2018 17:31:38 +0000 (10:31 -0700)]
Indentation

5 years agoDisable outdated Enumerator tests
Andon Andonov [Tue, 18 Sep 2018 17:25:06 +0000 (10:25 -0700)]
Disable outdated Enumerator tests

5 years ago* Revert the changes to TryInsert() introduced by https://github.com/dotnet/coreclr...
dotnet-bot [Mon, 17 Sep 2018 23:21:25 +0000 (16:21 -0700)]
* Revert the changes to TryInsert() introduced by https://github.com/dotnet/coreclr/pull/17096 completely, which only showed modest size improvement

* Removing the _version increment from Clear() entirely to bring it in line with the behavior in Remove() and to keep size gains

[tfs-changeset: 1714543]

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
5 years agoInclude in alphabetical order (#20028)
Sven Boemer [Wed, 19 Sep 2018 03:50:57 +0000 (20:50 -0700)]
Include in alphabetical order (#20028)

For consistency with https://github.com/dotnet/coreclr/pull/20005

5 years agoMerge pull request #19996 from dotnetrt/jit-update-headers
Carol Eidt [Tue, 18 Sep 2018 23:57:31 +0000 (16:57 -0700)]
Merge pull request #19996 from dotnetrt/jit-update-headers

Update clrjit headers files included via CMakeList.txt into clrjit.vcxproj

5 years agoUse 32-bit address format string during crossgen in src/vm/perfmap.cpp
Egor Chesakov [Tue, 18 Sep 2018 02:41:16 +0000 (19:41 -0700)]
Use 32-bit address format string during crossgen in src/vm/perfmap.cpp

5 years agoReplace sizeof(PVOID) with TARGET_POINTER_SIZE in src/vm/readytoruninfo.cpp
Egor Chesakov [Tue, 18 Sep 2018 17:46:42 +0000 (10:46 -0700)]
Replace sizeof(PVOID) with TARGET_POINTER_SIZE in src/vm/readytoruninfo.cpp

5 years agoUse HasNativeOrReadyToRunImage in src/vm/compile.cpp
Egor Chesakov [Tue, 18 Sep 2018 15:58:58 +0000 (08:58 -0700)]
Use HasNativeOrReadyToRunImage in src/vm/compile.cpp

5 years agoFix MultiReg methods on GenTree
Carol Eidt [Tue, 18 Sep 2018 22:40:32 +0000 (15:40 -0700)]
Fix MultiReg methods on GenTree

The Copy/Reload case was not being handled for 64-bit targets with multireg ops.
Also, the methods `IsMultiRegNode`, `GetMultiRegCount`, `GetRegByIndex` and `GetRegTypeByIndex` should be in sync.

Fix #20031

5 years agoPort Formatting Japanese First Year of Era (#19976)
Tarek Mahmoud Sayed [Tue, 18 Sep 2018 21:02:57 +0000 (14:02 -0700)]
Port Formatting Japanese First Year of Era (#19976)

5 years agoDo not add invalid masm flags in cordbdi.vcxproj for x64 Windows (#19995)
Jacek Blaszczynski [Tue, 18 Sep 2018 18:20:35 +0000 (20:20 +0200)]
Do not add invalid masm flags in cordbdi.vcxproj for x64 Windows (#19995)

Fixes #19902

5 years agoAdd headers to cee_wks, cee_dac vcxprojs to improve developer experience (#20011)
Jacek Blaszczynski [Tue, 18 Sep 2018 18:15:38 +0000 (20:15 +0200)]
Add headers to cee_wks, cee_dac vcxprojs to improve developer experience (#20011)

5 years agoFix Buffer.cs formatting to follow coding guidelines (#20020)
Jan Kotas [Tue, 18 Sep 2018 15:52:12 +0000 (08:52 -0700)]
Fix Buffer.cs formatting to follow coding guidelines (#20020)

Reduces diffs with CoreRT

5 years agoAdd gc header files to vcxproj file to improve user experience (#19980)
Jacek Blaszczynski [Tue, 18 Sep 2018 13:57:42 +0000 (15:57 +0200)]
Add gc header files to vcxproj file to improve user experience (#19980)

Work toward #14884

5 years agoAdd EH info support to R2RDump (#20000)
Tomáš Rylek [Tue, 18 Sep 2018 12:41:05 +0000 (14:41 +0200)]
Add EH info support to R2RDump (#20000)

* Add EH info support to R2RDump

This change expands runtime function dump to include the exception
handling info looked up via the EXCEPTION_INFO R2R header table.

* Address Zach's PR feedback

1) Base EHClause.Length on sizeof(uint) instead of sizeof(int)
for consistency with the asctual data types in the class.

2) Fix my overlooking that Zach spotted - in the EHLookupTable
ctor, we need to assign rva2 and eh2 to rva1 and eh1 at the end
of the loop block as we need to traverse consecutive pairs
of CORCOMPILE_EXCEPTION_LOOKUP_TABLE_ENTRY elements.

* Addressed Bruce Forstall's PR feedback

1) I modified the EH info method ctors to accept the R2RReader
instead of the raw byte[] image as the reader can be used to
provide textual representations of metadata tokens.

2) I changed the mask test to a switch that throws an exception
if multiple of the three lowest bits are set which is illegal
according to Bruce.

* Addressed additional Bruce Forstall's PR feedback

Remove interpretation of ClassTokenOrFilterOffset as it's not applicable
in the FINALLY and FAULT cases.

Thanks

Tomas

5 years agoUse elaborated type specifiers to prevent meaning changes (#20019)
Jan Kotas [Tue, 18 Sep 2018 05:42:40 +0000 (22:42 -0700)]
Use elaborated type specifiers to prevent meaning changes (#20019)

Port https://github.com/dotnet/corert/pull/6341/ to CoreCLR

5 years agoUpdating Buffer.ZeroMemory to call SpanHelpers.ClearWithoutReferences
Tanner Gooding [Mon, 17 Sep 2018 22:23:13 +0000 (15:23 -0700)]
Updating Buffer.ZeroMemory to call SpanHelpers.ClearWithoutReferences

5 years agoMerge pull request #15657 from mikedn/fp-divmul-binary
Carol Eidt [Tue, 18 Sep 2018 00:46:46 +0000 (17:46 -0700)]
Merge pull request #15657 from mikedn/fp-divmul-binary

Move FP DIV/MUL handling to genCodeForBinary

5 years agoFix spmi environment reset. (#19943)
Sergey Andreenko [Mon, 17 Sep 2018 21:59:07 +0000 (14:59 -0700)]
Fix spmi environment reset. (#19943)

* Dump spmi string environment variables with -d key.

Sometimes it is not clear which environment variables are set during a replay. Add a possibility to dump all active string environment variables with "-v d" key.

It is especially useful when you debug one method and can't get output that you want (for example JitDump) because altJit was set during the collection.

* Dump int spmi environment variables with -d key.

The same change but for int variables that need an additional parsing.

* Fix environment reset in spmi.

The previous changes revealed that we have a problem with environment reset. The reset was added in #13596 to support a correct replay of mch files with mc that had different env variables during the collection.

It was based on Environment that was later deprecated by #13110.

That caused the environment to be reset for each mc file. The fix updates env only when it is necessary and decreases the replay time of an mch file with 200000 methods from 500s to 370s.

* Fix dumpHelp.

Fix formating and adds note that all keys and values are case sensetive.

* Delete retired packages logic.

These packages were retired a long time ago and there is no value to have a special logic for them.

5 years agoMerge pull request #19949 from fiigii/fixhwapis
Carol Eidt [Mon, 17 Sep 2018 20:54:41 +0000 (13:54 -0700)]
Merge pull request #19949 from fiigii/fixhwapis

Fix inconsistent Intel hardware intrinsic APIs

5 years agoJit: ensure objp properly updated by SpillRetExprHelper (#19974)
Andy Ayers [Mon, 17 Sep 2018 17:44:38 +0000 (10:44 -0700)]
Jit: ensure objp properly updated by SpillRetExprHelper (#19974)

We need to arrange to actually update the call objp in the SpillRetExprHelper,
otherwise the changes don't propagate back into the tree.

5 years agoAlways define printf/fprintf in JIT
Mike Danes [Mon, 17 Sep 2018 15:37:18 +0000 (18:37 +0300)]
Always define printf/fprintf in JIT

In PAL based builds the stdio printf is already a macro so JIT's host.h fails to replace it with logf/flogf.

5 years agoUpdate clrjit headers files included into clrjit.vcxproj
Jacek Blaszczynski [Sun, 16 Sep 2018 13:16:19 +0000 (15:16 +0200)]
Update clrjit headers files included into clrjit.vcxproj

5 years agoSystem.Private.CoreLib: Move ResoureReader/ResourceSet to shared. (#19994)
Filip Navara [Sun, 16 Sep 2018 03:51:28 +0000 (05:51 +0200)]
System.Private.CoreLib: Move ResoureReader/ResourceSet to shared. (#19994)

* Move ResoureReader/ResourceSet to shared.

* Remove unnecessary cast to RuntimeType from ResoureReader.

5 years agoCorrectly disable varargsupport for windows x86 (#19981)
Jarret Shook [Sat, 15 Sep 2018 21:37:00 +0000 (14:37 -0700)]
Correctly disable varargsupport for windows x86 (#19981)

5 years agoMerge pull request #19988 from BruceForstall/Disable18989
Bruce Forstall [Sat, 15 Sep 2018 18:12:38 +0000 (11:12 -0700)]
Merge pull request #19988 from BruceForstall/Disable18989

Disable arm64 float_cs_ro.cmd

5 years agoDisable arm64 float_cs_ro.cmd
Bruce Forstall [Sat, 15 Sep 2018 18:11:06 +0000 (11:11 -0700)]
Disable arm64 float_cs_ro.cmd

Tracked by #18989

5 years agoLayout native test components correctly on unix (#19918)
Jarret Shook [Sat, 15 Sep 2018 15:57:22 +0000 (08:57 -0700)]
Layout native test components correctly on unix (#19918)

* Enable native test build and add skipmanaged

* Fix adding native components to test dir

* Clean pri1/pri0 builds with native lib copy

This change disables the build of several tests which have native
dependencies; however, would not build the native dependencies on
unix. At copy time this would result in a build-test failure. In
addition, it fixes, adding executables and dynamic/static libraries
to the test's location.

It has been tested with build-test.sh priority1.

* Fix comment wording

* Remove buildagainstpackage arg

* Fix default clang version

* Clean pri1 run OSX

* Correct test count on unix

* Address typo

* Merge runtest.proj

5 years agoFix build break in P1 tests (#19975)
Vitek Karas [Sat, 15 Sep 2018 04:18:21 +0000 (21:18 -0700)]
Fix build break in P1 tests (#19975)

5 years agoAdd short guide for using tiered compilation and how to provide feedback (#19773)
Koundinya Veluri [Sat, 15 Sep 2018 04:00:04 +0000 (21:00 -0700)]
Add short guide for using tiered compilation and how to provide feedback (#19773)

* Add short guide for using tiered compilation and how to provide feedback

* Suggested changes

* Update to say that it's enabled by default

* Add info about target framework/runtime

5 years agoconvert HandleStore::_underlyingBucket to a pointer (#19935)
David Mason [Sat, 15 Sep 2018 03:44:58 +0000 (20:44 -0700)]
convert HandleStore::_underlyingBucket to a pointer (#19935)

* convert HandleStore::_underlyingBucket to a pointer

* undo _underlyingBucket pointer change and delete Ref_CreateHandleTableBucket

* update comment

5 years agoMerge pull request #19125 from mikedn/cse-extract
Brian Sullivan [Fri, 14 Sep 2018 23:58:03 +0000 (16:58 -0700)]
Merge pull request #19125 from mikedn/cse-extract

[WIP] Fix CSE side effect and definition extraction

5 years agoExpand CrossGen Comparison script to able to run on DotNetSdk archive (#19929)
Egor Chesakov [Fri, 14 Sep 2018 22:41:30 +0000 (15:41 -0700)]
Expand CrossGen Comparison script to able to run on DotNetSdk archive (#19929)

* Set platform_assemblies_paths_sep based on OS
* Add crossgen_dotnet_sdk command in tests/scripts/crossgen_comparison.py
* Add example for running crossgen_dotnet_sdk command
* Add OutputFileSizeInBytes property
* Improve crossgen_comparison "compare" command reporting

5 years agoMerge pull request #19845 from briansull/vn-enhancements
Brian Sullivan [Fri, 14 Sep 2018 20:01:37 +0000 (13:01 -0700)]
Merge pull request #19845 from briansull/vn-enhancements

Value Number Enhancements:

5 years agodon't force float->double->int cast for x86 (#19833)
Clinton Ingram [Fri, 14 Sep 2018 17:47:06 +0000 (10:47 -0700)]
don't force float->double->int cast for x86 (#19833)

5 years agoMerge pull request #19951 from vitek-karas/MoveAssertionsToCommon
Vitek Karas [Fri, 14 Sep 2018 14:40:40 +0000 (07:40 -0700)]
Merge pull request #19951 from vitek-karas/MoveAssertionsToCommon

Move Assert class from Interop into the CoreCLRTestLibrary

5 years agoFixed TimeoutHelper typos (#19956)
Joseph Musser [Fri, 14 Sep 2018 11:36:07 +0000 (07:36 -0400)]
Fixed TimeoutHelper typos (#19956)

5 years agoFixed typo ‘defualt’ (#19955)
Joseph Musser [Fri, 14 Sep 2018 11:35:26 +0000 (07:35 -0400)]
Fixed typo ‘defualt’ (#19955)

5 years agoMerge pull request #19745 from CarolEidt/Fix19448
Carol Eidt [Fri, 14 Sep 2018 00:17:14 +0000 (17:17 -0700)]
Merge pull request #19745 from CarolEidt/Fix19448

Arm: Correctly handle multi-reg COPY

5 years agotemporarily disable some hw intrinsic tests
Fei Peng [Thu, 13 Sep 2018 23:53:15 +0000 (16:53 -0700)]
temporarily disable some hw intrinsic tests

5 years agoFix inconsistent Intel hardware intrinsic APIs
Fei Peng [Thu, 13 Sep 2018 23:52:42 +0000 (16:52 -0700)]
Fix inconsistent Intel hardware intrinsic APIs

5 years agoMerge pull request #19945 from echesakovMSFT/EnableCrossBitnessCrossGenTesting
Egor Chesakov [Thu, 13 Sep 2018 23:44:48 +0000 (16:44 -0700)]
Merge pull request #19945 from echesakovMSFT/EnableCrossBitnessCrossGenTesting

Run both Hostx86/arm and Hostx64/arm CrossGens in CI

5 years agoDev16 removed the static_cast<> in a std::basic_string constructor so need to explici...
Aaron Robinson [Thu, 13 Sep 2018 23:23:12 +0000 (16:23 -0700)]
Dev16 removed the static_cast<> in a std::basic_string constructor so need to explicit convert string to wstring to avoid warning. (#19947)

5 years agoReplace fgMarkAddressExposedLocals (#19621)
mikedn [Thu, 13 Sep 2018 23:00:10 +0000 (02:00 +0300)]
Replace fgMarkAddressExposedLocals (#19621)

* Add test for 16472

* Replace fgMarkAddressExposedLocals

* CR: Move fgAddFieldSeqForZeroOffset to improve diff

* CR: Improve comments and various other small issues

* CR: Delete gtCheckQuirkAddrExposedLclVar

* Revert "disable tests\src\JIT\Methodical\fp\exgen\10w5d_cs_do (#19465)"

This reverts commit b0686a29be2eff059f080a66b7aa4febe55a01bc.

5 years agoRun both Hostx86/arm32 and Hostx64/arm32 crossgens in crossgen_comparison scenario
Egor Chesakov [Thu, 13 Sep 2018 19:02:38 +0000 (12:02 -0700)]
Run both Hostx86/arm32 and Hostx64/arm32 crossgens in crossgen_comparison scenario

5 years agowhitespace fixes
Brian Sullivan [Thu, 13 Sep 2018 22:37:03 +0000 (15:37 -0700)]
whitespace fixes

5 years agoValue Number Enhancements:
Brian Sullivan [Wed, 5 Sep 2018 22:58:10 +0000 (15:58 -0700)]
Value Number Enhancements:

Revise the exeception gernerating value number functions:
VNF_OverflowEXc, VNF_CastOvf, VNF_ARithmeticExc, VNF_DivideByZeroExc and ConvertOverflowExc
added support methods for VNNormalValue
Extended GetVNGuncForOper to support overflow operations and additional unsigned operations:
And added value number functions for
- unsigned comparisons, unsigned add, sub and mul
- overflow add, sub, mul
New method: VMCheckAscending to validate that exception sets maintain the ascending ordfer property.
New method: VMExcSetIntersection and VMExcIsSubset
Changed the constant folding logic in VNForFunc to avoid folding when the operation will unconditionally throw when folded.
Explicitly specialize some EvalOp<> calls
Added several new method headers comments in ValueNum.cpp
Clear the unsigned flag when bashing nodes into GT_COMMA or GT_NOP nodes
Removed GT_NOP and GT_COMMA cases from GetVNFuncForOper
Added enum VNOperKind
Added support for the unsigned multiply VNFunc used on 32-bit target

5 years agoFix xplat debugging perf problem. (#19911)
Mike McLaughlin [Thu, 13 Sep 2018 22:05:37 +0000 (15:05 -0700)]
Fix xplat debugging perf problem. (#19911)

Issue #18705

Add threadId to DebuggerIPCEvent so we don't need to use the
slow DAC functions (because of extra memory reads) to get it.

Fixed CorDBIPC_BUFFER_SIZE on arm builds.

5 years agoMerge pull request #19933 from echesakovMSFT/PublishCrossBitnessCrossGenAsWell
Egor Chesakov [Thu, 13 Sep 2018 22:03:43 +0000 (15:03 -0700)]
Merge pull request #19933 from echesakovMSFT/PublishCrossBitnessCrossGenAsWell

Publish both Hostx86 and Hostx64 arm32 CrossGens on Linux

5 years agoUpdate ChineseLunisolarCalendar.cs (#19946)
elyoh [Thu, 13 Sep 2018 21:58:27 +0000 (22:58 +0100)]
Update ChineseLunisolarCalendar.cs (#19946)

Corrects an issue with the conversion table for Gregorian to Chinese lunisolar dates.
See: #19480.

Issue: data discrepancy in year 2057, 2089, and 2097.
Table entry for these years have incorrect days per month for some months.  See #19480 for full details.

Notes
The DaysPerMonth flag uses the binary literal for ease of readability.

5 years agoMove Assert class from Interop into the CoreCLRTestLibrary
vitek-karas [Thu, 13 Sep 2018 20:32:32 +0000 (13:32 -0700)]
Move Assert class from Interop into the CoreCLRTestLibrary

Moving the Assert class to the common library so that it can be used
by tests outside of the Interop tree.

5 years agoMerge pull request #19927 from adityamandaleeka/fix_arm64_emitIns
Aditya Mandaleeka [Thu, 13 Sep 2018 19:12:03 +0000 (12:12 -0700)]
Merge pull request #19927 from adityamandaleeka/fix_arm64_emitIns

Fix emitIns_S_S_R_R not to encode SP to ZR before an add may be emitted

5 years agoAdding the ARM floating point registers to the cordebug.idl file (#19934)
Andrew Au [Thu, 13 Sep 2018 15:19:58 +0000 (08:19 -0700)]
Adding the ARM floating point registers to the cordebug.idl file (#19934)

5 years agoPublish Hostx64/arm32 crossgen and libclrjit.so on Linux
Egor Chesakov [Thu, 13 Sep 2018 03:39:39 +0000 (20:39 -0700)]
Publish Hostx64/arm32 crossgen and libclrjit.so on Linux

5 years agoAddress msbuild issues with cross compiled tests in helix (#19901)
Aaron Robinson [Thu, 13 Sep 2018 02:34:46 +0000 (19:34 -0700)]
Address msbuild issues with cross compiled tests in helix (#19901)

* Address msbuild issues with cross compiled tests in helix

* Fix test warning about duplicate types

5 years agoFix emitIns_S_S_R_R not to encode SP to ZR before an add may be emitted.
Aditya Mandaleeka [Wed, 12 Sep 2018 22:20:09 +0000 (15:20 -0700)]
Fix emitIns_S_S_R_R not to encode SP to ZR before an add may be emitted.

5 years agoImplement Thread.GetApartmentState/TrySetApartmentState (#6323)
Jan Kotas [Wed, 12 Sep 2018 18:17:41 +0000 (11:17 -0700)]
Implement Thread.GetApartmentState/TrySetApartmentState (#6323)

Fixes #5776

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
5 years agoRevert changes that are causing buildbreaks of OOB packages
Jan Kotas [Wed, 12 Sep 2018 15:12:53 +0000 (08:12 -0700)]
Revert changes that are causing buildbreaks of OOB packages

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
5 years agoArm: Correctly handle multi-reg COPY
Carol Eidt [Wed, 29 Aug 2018 21:58:10 +0000 (14:58 -0700)]
Arm: Correctly handle multi-reg COPY

Fix #19448

5 years agoUpdate AsyncMethodBuilder.cs (#19909)
Nick Kotov [Wed, 12 Sep 2018 14:14:14 +0000 (17:14 +0300)]
Update AsyncMethodBuilder.cs (#19909)

Changed commentary for range of AsyncCache Tasks with Int32 type.

5 years agoFix GC for collectible classes (#19892)
Jan Vorlicek [Wed, 12 Sep 2018 11:32:31 +0000 (13:32 +0200)]
Fix GC for collectible classes (#19892)

There is a subtle bug in the GC that causes access violation when a
LoaderAllocator of a collectible class is pushed to the mark stack and
that class also has partial sub-objects. One example is an array of byte
arrays. In that case, the mark stack is supposed to have the reference
to the instance of the class stored right before the related partial
sub-objects references. But due to the bug, the slot where the instance
of the class was expected to be located was not set to anything.

5 years agoCallSites for MemoryExtensions.Contains (CoreCLR) (#19874)
Grant [Wed, 12 Sep 2018 10:19:37 +0000 (03:19 -0700)]
CallSites for MemoryExtensions.Contains (CoreCLR) (#19874)

* Update additional callsites for MemoryExtensions.Contains

* One more callsite

* More callsites

* CR fixes

5 years agoFix optimization of CAST(int)(LSH(long)<<CNS_INT 32+ with side effects). (#19899)
Sergey Andreenko [Wed, 12 Sep 2018 03:32:35 +0000 (20:32 -0700)]
Fix optimization of CAST(int)(LSH(long)<<CNS_INT 32+ with side effects). (#19899)

* add a repro test

* Fix