Konstantin Baladurin [Tue, 12 Sep 2017 10:44:24 +0000 (13:44 +0300)]
[GDBJIT] Specify C# language in DWARF debug information (dotnet/coreclr#13720)
* [GDBJIT] Specify C# language in DWARF debug information
To correctly support C# language in lldb DWARF debug information
should contain correct information about language.
Now we use 0x9e57 constant for specify C# language.
* [GDBJIT] Introduce FEATURE_GDBJIT_LANGID_CS
If this feature is set gdbjit will use 0x9e57 as c# lang id,
otherwise it will use DW_LANG_C89.
Commit migrated from https://github.com/dotnet/coreclr/commit/
18ab3567e2ea6e2a385527bb247b0eec32a995cb
Stephen Toub [Tue, 12 Sep 2017 06:49:53 +0000 (23:49 -0700)]
Merge pull request dotnet/coreclr#13907 from stephentoub/valuetask_astask_caching
Use AsyncTaskCache in ValueTask.AsTask()
Commit migrated from https://github.com/dotnet/coreclr/commit/
9b0ba4188ac7161c4b04b30fed5eaa117d72eaed
dotnet bot [Tue, 12 Sep 2017 02:54:33 +0000 (19:54 -0700)]
Merge changes from TFS (dotnet/coreclr#13884)
Add new GetMethodNameFromMetadata interface member to ILGEN.
Also fix warning in the build.
[tfs-changeset: 1673078]
[Hand edited to fix break in SPMI]
Commit migrated from https://github.com/dotnet/coreclr/commit/
bfbf47d42c776ae9bd4c49343f05e3b126bcaf1f
Stephen Toub [Mon, 11 Sep 2017 21:40:57 +0000 (14:40 -0700)]
Use AsyncTaskCache in ValueTask.AsTask()
We can avoid task allocations for common values by using the same task cache that async methods do. This is important to avoid allocations in certain cases when switching from Task-returning to ValueTask-returning methods. If at some point we change Task.FromResult to use the same cache, this can be reverted.
Commit migrated from https://github.com/dotnet/coreclr/commit/
eb9bfb1607bcb7f681ca3eda670982b16fec96c7
William Godbe [Mon, 11 Sep 2017 18:49:57 +0000 (11:49 -0700)]
Merge pull request dotnet/coreclr#13875 from wtgodbe/RevertLabel
Revert PreReleaseLabel to preview1
Commit migrated from https://github.com/dotnet/coreclr/commit/
6f898ff7f9702fcad2ac42aa49e76b5e595220b1
Andy Ayers [Mon, 11 Sep 2017 18:12:45 +0000 (11:12 -0700)]
JIT: optimize Enum.HasFlag (dotnet/coreclr#13748)
Check for calls to `Enum.HasFlag` using the new named intrinsic support
introduced in dotnet/coreclr#13815. Implement a simple recognizer for these named
intrinsics (currently just recognizing `Enum.HasFlag`).
When the call is recognized, optimize if both operands are boxes with
compatible types and both boxes can be removed. The optimization changes the
call to a simple and/compare tree on the underlying enum values.
To accomplish this, generalize the behavior of `gtTryRemoveBoxUpstreamEffects`
to add a "trial removal" mode and to optionally suppress narrowing of the
copy source.
Invoke the optimization during importation (which will catch most cases) and
again during morph (to get the post-inline cases).
Added test cases. Suprisingly there were almost no uses of HasFlag in the
current CoreCLR test suite.
Closes dotnet/coreclr#5626.
Commit migrated from https://github.com/dotnet/coreclr/commit/
e764b4dd021a38ba4c55a806069c4856e56e3f45
Konstantin Baladurin [Mon, 11 Sep 2017 17:23:16 +0000 (20:23 +0300)]
[GDBJIT] Fix calculation of debuginfo's size. (dotnet/coreclr#13899)
Information about each type is dumped once but during debuginfo's
size calculation it was taken into account several time. Due to it
size of debuginfo section could be in several times bigger than
needed that in some cases leaded to OOM.
Commit migrated from https://github.com/dotnet/coreclr/commit/
354211fb52ae1503172ba0b1b44ff217ad712dbc
Eric Erhardt [Mon, 11 Sep 2017 16:30:56 +0000 (11:30 -0500)]
Merge pull request dotnet/coreclr#13876 from eerhardt/UpdateBuildTools
Update BuildTools automatically when new versions are available.
Commit migrated from https://github.com/dotnet/coreclr/commit/
dd5c5dcb3596e0abdecb4af6ede5e280d8c884ca
José Rivero [Mon, 11 Sep 2017 16:10:02 +0000 (09:10 -0700)]
Ubuntu runs are not archiving perf results because rsync does not create destination folder (dotnet/coreclr#13858)
Commit migrated from https://github.com/dotnet/coreclr/commit/
2afc8ce54a642ff5a4fe6b30c3061eabec5b2b85
Eric Erhardt [Mon, 11 Sep 2017 14:52:39 +0000 (09:52 -0500)]
Merge branch 'master' into UpdateBuildTools
Commit migrated from https://github.com/dotnet/coreclr/commit/
f585396333e054a945ce5b9d8b6e8d6c55f59c06
Alfred Myers [Mon, 11 Sep 2017 14:51:58 +0000 (11:51 -0300)]
fixed minor typo (dotnet/coreclr#13898)
Commit migrated from https://github.com/dotnet/coreclr/commit/
e40a41bb04ff20060d6b7e522c3d84dd05002fb8
Konstantin Baladurin [Mon, 11 Sep 2017 14:48:01 +0000 (17:48 +0300)]
Fix building of rootfs for Tizen armel (dotnet/coreclr#13854)
Now there isn't arm buildtarget in tizen-base repository.
Use standard one to fetch packages for rootfs.
Commit migrated from https://github.com/dotnet/coreclr/commit/
5358c179e08d22b54769d22a1e6f2c8accc07f2d
Kevin Gosse [Mon, 11 Sep 2017 14:14:11 +0000 (16:14 +0200)]
Make order of elements consistent (dotnet/coreclr#13892)
When the cache is only partially populated, MemberInfoCache.Insert will
insert the new members into the cache. But then, it will return the
original list. In subsequent calls, it will return the cached list.
However, the order of elements can be different, which can cause issues
with methods that rely on the order of elements returned by
Type.GetFields (for instance, Attribute.GetHashCode)
Commit migrated from https://github.com/dotnet/coreclr/commit/
c49bce445a6950bd05d7fd6752691da2aef2883b
Stephen Toub [Mon, 11 Sep 2017 14:09:31 +0000 (10:09 -0400)]
Merge pull request dotnet/coreclr#13894 from dotnet-maestro-bot/master-UpdateDependencies
Update PgoData to master-
20170911-0041 (master)
Commit migrated from https://github.com/dotnet/coreclr/commit/
bbfc670345689ca14cebc4436ca45717010e3546
Eric Erhardt [Mon, 11 Sep 2017 14:02:42 +0000 (09:02 -0500)]
Merge branch 'master' into UpdateBuildTools
Commit migrated from https://github.com/dotnet/coreclr/commit/
554b7a5861502ec02dadecab83e5c682cafefdd0
dotnet-maestro-bot [Mon, 11 Sep 2017 07:57:00 +0000 (00:57 -0700)]
Update PgoData to master-
20170911-0041
Commit migrated from https://github.com/dotnet/coreclr/commit/
73650ce7f0c7c94f089472a965224fa75bb0be80
Stephen Toub [Mon, 11 Sep 2017 06:55:58 +0000 (02:55 -0400)]
Merge pull request dotnet/coreclr#13893 from dotnet-maestro-bot/master-UpdateDependencies
Update CoreClr to preview2-25711-01 (master)
Commit migrated from https://github.com/dotnet/coreclr/commit/
6e131e5588c5031fcd91a6537b7812e3e294fd60
dotnet-maestro-bot [Mon, 11 Sep 2017 00:15:37 +0000 (17:15 -0700)]
Update CoreClr to preview2-25711-01
Commit migrated from https://github.com/dotnet/coreclr/commit/
98a1bf65bff1b3c41827e71c1b8ae33b960d7f98
Eric Erhardt [Sun, 10 Sep 2017 20:36:19 +0000 (15:36 -0500)]
Merge branch 'master' into UpdateBuildTools
Commit migrated from https://github.com/dotnet/coreclr/commit/
4fe63b0db6e9bb590bb5bb235a7be78c984b0ab7
Eric Erhardt [Sun, 10 Sep 2017 20:35:25 +0000 (15:35 -0500)]
Merge branch 'master' into UpdateBuildTools
Commit migrated from https://github.com/dotnet/coreclr/commit/
222228d4b2756f659661e7983b43630acece2d5d
Stephen Toub [Sun, 10 Sep 2017 13:20:14 +0000 (09:20 -0400)]
Merge pull request dotnet/coreclr#13847 from dotnet-maestro-bot/master-UpdateDependencies
Update CoreClr, PgoData to preview2-25709-04, master-
20170910-0049, respectively (master)
Commit migrated from https://github.com/dotnet/coreclr/commit/
888b7a94f7b684f988110b9f0b8f3f6ea49746e1
dotnet-maestro-bot [Sun, 10 Sep 2017 08:06:00 +0000 (01:06 -0700)]
Update CoreClr, PgoData to preview2-25709-04, master-
20170910-0049, respectively
Commit migrated from https://github.com/dotnet/coreclr/commit/
01390f44c43bd60ea7c669be5bd518a6c29f786c
Stephen Toub [Sun, 10 Sep 2017 03:25:18 +0000 (23:25 -0400)]
Merge pull request dotnet/coreclr#13849 from stephentoub/string_create
Add String.Create span-based method
Commit migrated from https://github.com/dotnet/coreclr/commit/
35a8c82f0ab9fe2e9ee8974ecca01e317b467800
Jan Kotas [Sun, 10 Sep 2017 01:48:20 +0000 (18:48 -0700)]
Merge pull request dotnet/coreclr#13888 from jkotas/corelib-mirror
Mirror changes from dotnet/corert
Commit migrated from https://github.com/dotnet/coreclr/commit/
4f6bc73e9a9e609715b17e173a1cf50cc3975890
Stephen Toub [Sat, 9 Sep 2017 23:44:19 +0000 (19:44 -0400)]
Merge pull request dotnet/coreclr#13886 from ahsonkhan/SpanReadOnlyStruct
Marking {ReadOnly}Span with IsReadOnly attribute
Commit migrated from https://github.com/dotnet/coreclr/commit/
3e32eb999e874969828cb241f72e3c0a0385e987
Jan Kotas [Sat, 9 Sep 2017 23:32:23 +0000 (16:32 -0700)]
Finish moving files to shared CoreLib partition
Commit migrated from https://github.com/dotnet/coreclr/commit/
d8b4a52cf98504bd9fc47d2ff1996a63015c83eb
Jan Kotas [Sat, 9 Sep 2017 22:51:05 +0000 (15:51 -0700)]
Move PInvoke interop related attributes to shared CoreLib partition
[tfs-changeset: 1673253]
Commit migrated from https://github.com/dotnet/coreclr/commit/
6211a9143b90edc1eadc71873555e7ab27fad18f
Jan Kotas [Sat, 9 Sep 2017 16:06:21 +0000 (09:06 -0700)]
Finish moving files to shared partition
Commit migrated from https://github.com/dotnet/coreclr/commit/
3580376aa1b6775bdb2f2eaab745dc50e14b089f
Jan Kotas [Sat, 9 Sep 2017 11:57:48 +0000 (04:57 -0700)]
Fix IntrinsicAttribute build break
Commit migrated from https://github.com/dotnet/coreclr/commit/
bd6f5574b05aa1c814c5dbada47a122685806dd3
Eric Erhardt [Sat, 9 Sep 2017 22:37:14 +0000 (17:37 -0500)]
Merge branch 'master' into UpdateBuildTools
Commit migrated from https://github.com/dotnet/coreclr/commit/
79ea1ea4e83accad0dbc0e0f244baf969bf04c92
Daniel Podder [Sat, 9 Sep 2017 19:33:18 +0000 (12:33 -0700)]
Enable auto-update for PGO data (dotnet/coreclr#13883)
Move PgoDataPackageVersion into dependencies.props, which enables auto-update functionality.
Also, update optdata version to
20170908-1805.
Commit migrated from https://github.com/dotnet/coreclr/commit/
d6900913634dc59099149fbe6106c6a304da63eb
Jan Kotas [Sat, 9 Sep 2017 07:28:46 +0000 (00:28 -0700)]
Cleanup Guid formatting (dotnet/coreclr#13885)
Commit migrated from https://github.com/dotnet/coreclr/commit/
00aab411f0c34d17b6545202a50b6c566ba5bc73
ahsonkhan [Sat, 9 Sep 2017 05:23:16 +0000 (22:23 -0700)]
Marking {ReadOnly}Span with IsReadOnly attribute.
Commit migrated from https://github.com/dotnet/coreclr/commit/
e720daaea3bf24109dbf469f4e1d9fc8bb78787b
Pat Gavlin [Sat, 9 Sep 2017 04:18:07 +0000 (21:18 -0700)]
Merge pull request dotnet/coreclr#13842 from dotnet-bot/from-tfs
Merge changes from TFS
Commit migrated from https://github.com/dotnet/coreclr/commit/
dfb0916bcec8e4b77539aade03f353b88b88761e
Pat Gavlin [Sat, 9 Sep 2017 04:14:13 +0000 (21:14 -0700)]
Merge pull request dotnet/coreclr#13110 from pgavlin/SPMIJitOptions
Add the capability to specify JIT options on the SPMI command line.
Commit migrated from https://github.com/dotnet/coreclr/commit/
2e2219d5dfe2986fec1c41c37a1047ac30562243
Stephanie Niu [Sat, 9 Sep 2017 02:58:35 +0000 (19:58 -0700)]
Guid span-based APIs (ctor, TryWriteBytes, TryFormat) (dotnet/coreclr#13323)
* standardized style changes
* 3 span-ified guid methods
throw null exception for readonlyspan ctor
full changes
* restructured trywritebytes
* changed writebytehelper from feedback
* changed casing of switch statement
* indentation
Commit migrated from https://github.com/dotnet/coreclr/commit/
959ccab91af7f475337777ce97fa5241de9042ff
Pat Gavlin [Sat, 9 Sep 2017 01:56:36 +0000 (18:56 -0700)]
Merge pull request dotnet/coreclr#13863 from pgavlin/DevDiv491211
Properly update GTF_{ASG,EXCEPT} in call morphing.
Commit migrated from https://github.com/dotnet/coreclr/commit/
605d1ec46af444510459eaf39bd2c10f36eba8ca
Steve MacLean [Sat, 9 Sep 2017 01:41:42 +0000 (21:41 -0400)]
[Arm64] Optimize System.Buffer:Memmove (dotnet/coreclr#13793)
* [Arm64] Optimize System.Buffer:Memmove
Enable HAS_BLOCKS
Disable code to fall back to native memmove until memmove
optimizations are merged to OS mainline
* Add links to issues
Commit migrated from https://github.com/dotnet/coreclr/commit/
8296625f3f312e5400f1c394ec742d91e9bc9ba5
Jan Kotas [Sat, 9 Sep 2017 01:16:01 +0000 (18:16 -0700)]
Move files to shared partition (dotnet/coreclr#13870)
Moved pseudo-custom attribute reflection helpers from attribute definitions to reflection to prepare attribute definitions to be moved to shared partition.
Commit migrated from https://github.com/dotnet/coreclr/commit/
2b532ae967e23ea478d9ffdd684f387c99602b3d
Koundinya Veluri [Sat, 9 Sep 2017 00:14:09 +0000 (17:14 -0700)]
Port some concurrent collection implementations with latest fixes from CoreFX into CoreCLR copies (dotnet/coreclr#12939)
Commit migrated from https://github.com/dotnet/coreclr/commit/
3fc4180f8e0bf71e09a54f0f95ec7ec6a4f492f2
Daniel Podder [Fri, 8 Sep 2017 23:55:04 +0000 (16:55 -0700)]
Add a <clear /> to packageSources in src/NuGet.Config (dotnet/coreclr#13874)
Fixes dotnet/coreclr#13873
Commit migrated from https://github.com/dotnet/coreclr/commit/
3505d67c279cdb1b8231b53350a340ad34151c78
Viktor Hofer [Fri, 8 Sep 2017 22:10:51 +0000 (00:10 +0200)]
Merge pull request dotnet/coreclr#13845 from ViktorHofer/DBNull-Serialization
Make DBNull serializable
Commit migrated from https://github.com/dotnet/coreclr/commit/
07aa22b73705115046abfa2d3a029184dd5e2fd7
Jan Kotas [Fri, 8 Sep 2017 04:33:15 +0000 (21:33 -0700)]
Non-shared changes
Commit migrated from https://github.com/dotnet/coreclr/commit/
f25c4efc8c3fabdf3ae5ff0c02fc66325765b332
Jan Kotas [Sun, 3 Sep 2017 16:57:12 +0000 (09:57 -0700)]
Delete redundant PInvokes
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/
a32c09888f81b919af48be41b79ae1e52f8d3d09
Jan Kotas [Sun, 3 Sep 2017 16:40:43 +0000 (09:40 -0700)]
Move HResults to shared partition
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/
747d7d2cf7e3510b26cdc7579e934d7b5bad50c0
Jan Kotas [Fri, 8 Sep 2017 22:04:56 +0000 (15:04 -0700)]
Fix CoreLib build warnings (dotnet/coreclr#13851)
Commit migrated from https://github.com/dotnet/coreclr/commit/
44a263dc29011e9c68632b6b693996ab439e3e92
Eric Erhardt [Fri, 8 Sep 2017 22:02:55 +0000 (17:02 -0500)]
Update CLI version to match other dotnet repos and unblock new BuildTools
Commit migrated from https://github.com/dotnet/coreclr/commit/
2dce413fd086e3136961d6b0819a21bd81973264
Eric Erhardt [Fri, 8 Sep 2017 21:21:15 +0000 (16:21 -0500)]
Update BuildTools automatically when new versions are available.
Commit migrated from https://github.com/dotnet/coreclr/commit/
10d69df2474b08ee3cdfef052c5fa4a729ad56f9
Koundinya Veluri [Fri, 8 Sep 2017 21:19:05 +0000 (14:19 -0700)]
Change lock used for initializing YieldProcessorNormalized from Crst to CrstStatic (dotnet/coreclr#13857)
Fixes https://github.com/dotnet/coreclr/issues/13779
Commit migrated from https://github.com/dotnet/coreclr/commit/
03260fda5966a8dda85dc116f9421ce1f0b436ef
wtgodbe [Fri, 8 Sep 2017 21:10:10 +0000 (14:10 -0700)]
Revert PreReleaseLabel to preview1
Commit migrated from https://github.com/dotnet/coreclr/commit/
9aed4d8c1d06125080a7ceca188af72333c16f40
Pat Gavlin [Fri, 8 Sep 2017 18:55:07 +0000 (11:55 -0700)]
Address PR feedback.
Commit migrated from https://github.com/dotnet/coreclr/commit/
989bd42215c4aba4c810006bd5e3c712c0cd9921
Matt Mitchell [Fri, 8 Sep 2017 17:26:37 +0000 (10:26 -0700)]
Only delete agent when not succesful (dotnet/coreclr#13865)
Spinup for this agent is unreliable (docker fails to start a lot). Only delete when the build fails.
Commit migrated from https://github.com/dotnet/coreclr/commit/
72201862c9b646ca651b686c5d7df9b71ca033e8
Pat Gavlin [Fri, 8 Sep 2017 17:19:18 +0000 (10:19 -0700)]
Properly update GTF_{ASG,EXCEPT} in call morphing.
The former is only necessary if it is set on any of the call's
arguments; the latter is necessary if the call may throw or if it is set
on any of the call's arguments.
Fixes DevDiv 491211.
Commit migrated from https://github.com/dotnet/coreclr/commit/
c49649ad05b6acf76112713a6b8aeaf5ef96464b
Viktor Hofer [Fri, 8 Sep 2017 16:35:23 +0000 (18:35 +0200)]
Adding serializable attribute to type
Commit migrated from https://github.com/dotnet/coreclr/commit/
d19b3accedd3f08d1322015e065528aefc138fe5
Viktor Hofer [Fri, 8 Sep 2017 14:56:25 +0000 (16:56 +0200)]
PR feedback
Commit migrated from https://github.com/dotnet/coreclr/commit/
b9a716a7cc4cedcc8e1f7c262b9a0594b9bad3cb
Stephen Toub [Fri, 8 Sep 2017 01:42:42 +0000 (21:42 -0400)]
Add String.Create span-based method
Commit migrated from https://github.com/dotnet/coreclr/commit/
02394ece0c070d61ccbc55b2104486d7b8f7600c
Dan Moseley [Sat, 2 Sep 2017 07:47:53 +0000 (00:47 -0700)]
Fix EventProvider to build on Linux
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/
121d9a31e924c321dfb75dd0ffe16f227cf5e290
Viktor Hofer [Thu, 7 Sep 2017 23:36:46 +0000 (01:36 +0200)]
Remove unused params
Commit migrated from https://github.com/dotnet/coreclr/commit/
423d10d5c56bd2e45050a478af2068a3fd70f4f2
Viktor Hofer [Thu, 7 Sep 2017 23:25:51 +0000 (01:25 +0200)]
Add exception handling for other input and add comments
Commit migrated from https://github.com/dotnet/coreclr/commit/
35f886799786dd7571747b15cd3e8c88b55cd9fd
Pat Gavlin [Sat, 29 Jul 2017 22:42:39 +0000 (15:42 -0700)]
Add the capability to specify JIT options on the SPMI command line.
This change adds two new flags, `-jitoption` and `-jit2option`, to the
SuperPMI command line. These flags are cumulative, and are used to
specify JIT config options (e.g. `COMPlus_JitDisasm`, albeit without the
`COMPlus_` prefix) to the base and diff JITs, respectively.
This change also removes Smarty-specific code and support for capturing
and replaying environment variables. The former is no longer terribly
useful and the latter has been obviated by the JIT host interface.
Commit migrated from https://github.com/dotnet/coreclr/commit/
a6f64213881c8ebbd3035c694d4c7193846e3893
Viktor Hofer [Thu, 7 Sep 2017 23:12:19 +0000 (01:12 +0200)]
Revert access modifier change and update its comment
Commit migrated from https://github.com/dotnet/coreclr/commit/
b142440f83ba0c11ea14cd266cfb657fbd119395
Pat Gavlin [Thu, 7 Sep 2017 23:04:55 +0000 (16:04 -0700)]
Merge pull request dotnet/coreclr#13838 from pgavlin/DevDiv489992
Copy `GTF_{ASG,EXCEPT}` flags in `gtCloneExpr`.
Commit migrated from https://github.com/dotnet/coreclr/commit/
5f8e80736169fe67bf3f2953a9cb1b645ba71a68
Viktor Hofer [Thu, 7 Sep 2017 23:04:15 +0000 (01:04 +0200)]
More comments and remove of corert special case
Commit migrated from https://github.com/dotnet/coreclr/commit/
29408dcf9c2b00c7e2a77fa9ab41a4fdf9f59b0b
Viktor Hofer [Thu, 7 Sep 2017 23:01:50 +0000 (01:01 +0200)]
PR feedback
Commit migrated from https://github.com/dotnet/coreclr/commit/
f2706ae32e1198e7c5f0cfecb4d83da38802bb16
David Mason [Thu, 7 Sep 2017 22:56:30 +0000 (15:56 -0700)]
Make dumpmd work with tiered jitting. Now displays previous code addresses (dotnet/coreclr#13805)
* Make dumpmd work with tiered jitting. Now displays previous code addresses
* add tier info and nativecodeversionnode ptr to dumpmd output
* fix warnings on non-rejit platforms
Commit migrated from https://github.com/dotnet/coreclr/commit/
4a7ee67a60fb2c40d755dfd4f7e2824954650193
Karthik Rajasekaran [Thu, 7 Sep 2017 22:39:06 +0000 (15:39 -0700)]
Retry linux arm legs on a new agent (dotnet/coreclr#13839)
Commit migrated from https://github.com/dotnet/coreclr/commit/
e390d7202605f3e5c9eb123f37c67ec5685c3fee
Viktor Hofer [Thu, 7 Sep 2017 21:57:22 +0000 (23:57 +0200)]
Make DBNull serializable
Commit migrated from https://github.com/dotnet/coreclr/commit/
db966f690d5a17e2fa812defce42d4caab4aeaa4
Jarret Shook [Thu, 7 Sep 2017 21:34:20 +0000 (14:34 -0700)]
Merge pull request dotnet/coreclr#12334 from sdmaclea/PR-Optimize-Jit-WriteBarriers
[Arm64] Optimize JIT_WriteBarriers
Commit migrated from https://github.com/dotnet/coreclr/commit/
957c61acbfebc665135797ed503940241adfdb6d
Andy Ayers [Thu, 7 Sep 2017 21:28:07 +0000 (14:28 -0700)]
New jit intrinsic support (dotnet/coreclr#13815)
Support for new-style intrinsics where corelib methods can have both IL
implementations and optional jit-supplied implementations.
Mark such methods with the [Intrinsic] attribute, then recognize the
intrinsic methods by name in the jit.
Jit currently has a placeholder for the Enum.HasFlag method.
Commit migrated from https://github.com/dotnet/coreclr/commit/
b7cce5a59f7c6bd5a33b88f2af252693bbbd7373
Andy Ayers [Thu, 7 Sep 2017 21:26:46 +0000 (14:26 -0700)]
Desktop changes corresponding to https://github.com/dotnet/coreclr/pull/13815
The new jit interface method is stubbed out in desktop, as we will not see any of these new style intriniscs there (at least for now).
[tfs-changeset: 1673063]
Commit migrated from https://github.com/dotnet/coreclr/commit/
613c7392410c9a8ecb76d822e0d133713d230609
Pat Gavlin [Thu, 7 Sep 2017 19:47:42 +0000 (12:47 -0700)]
Copy `GTF_{ASG,EXCEPT}` flags in `gtCloneExpr`.
These flags from the source were being unioned with those of the copy,
which was incorrect in cases where the copy's flags were overly
conservative. This change simply copies the values of these flags from
the source.
Fixes VSO 489992.
Commit migrated from https://github.com/dotnet/coreclr/commit/
63a45bca33ce5e507061c2f20c5a2f0e7e4fc4a6
Pat Gavlin [Thu, 7 Sep 2017 19:30:51 +0000 (12:30 -0700)]
Merge pull request dotnet/coreclr#13821 from pgavlin/DevDiv487701_487702
Fix VSO 487701 and 487702.
Commit migrated from https://github.com/dotnet/coreclr/commit/
f3dfbf546396db24f5fbc690213e89beaebd5f35
Brian Chavez [Thu, 7 Sep 2017 18:36:37 +0000 (11:36 -0700)]
Spelling and grammar corrections - A through L (dotnet/coreclr#13683)
Commit migrated from https://github.com/dotnet/coreclr/commit/
eb2e9f90ba3679fa8386c4130f81c8061e8d4ca4
Pat Gavlin [Thu, 7 Sep 2017 18:33:59 +0000 (11:33 -0700)]
Merge pull request dotnet/coreclr#13817 from pgavlin/DevDiv487703
Do not remove NOPs used by calls.
Commit migrated from https://github.com/dotnet/coreclr/commit/
0df2261b05bb693cc1c56fe956f51911c109999c
dotnet-maestro-bot [Thu, 7 Sep 2017 18:19:20 +0000 (11:19 -0700)]
Update CoreClr, CoreFx to preview2-25707-02, preview2-25707-02, respectively (dotnet/coreclr#13808)
Commit migrated from https://github.com/dotnet/coreclr/commit/
2fbf7f1e80a3dcb4ac5c2c0518158f38f483663c
sergey ignatov [Thu, 7 Sep 2017 18:14:29 +0000 (21:14 +0300)]
Fix for dotnet/coreclr#13830 issue (dotnet/coreclr#13831)
Commit migrated from https://github.com/dotnet/coreclr/commit/
11a10f8fc00f61f6c8fcaa8a13e0f4f271818178
Victor "Nate" Graf [Thu, 7 Sep 2017 15:55:21 +0000 (08:55 -0700)]
Fix incorrect treatment of pointer as fixed (dotnet/coreclr#13816)
Commit migrated from https://github.com/dotnet/coreclr/commit/
0644d5bd599b4562b1509429b8ae0ec62f4d7766
Jarret Shook [Thu, 7 Sep 2017 02:47:52 +0000 (19:47 -0700)]
Merge pull request dotnet/coreclr#13797 from jashook/arm64_green_ci
Disable tests based on 13796
Commit migrated from https://github.com/dotnet/coreclr/commit/
49676afffeefc6d033866699a65aa0aa14bf926f
Joseph Tremoulet [Thu, 7 Sep 2017 01:14:19 +0000 (21:14 -0400)]
Segregate merged returns by constant value (dotnet/coreclr#13792)
The JIT enforces a limit on the number of epilogs emitted in any given
method. Change the logic so that when this merging kicks in, returns of
constant values are given merged return blocks distinct from each other
and from the general return block, as long as we can do so without going
over the limit. This particularly helps avoid redundancy (while still
keeping method size down) in methods with a large number of constant
returns but only a few distinct constants, which is true of many
predicate methods with bool return type.
This is the compiler portion of dotnet/coreclr#13466 and dotnet/corefxdotnet/coreclr#23395.
Commit migrated from https://github.com/dotnet/coreclr/commit/
bb449c7489a7fb466dda7c7b6bce5122ded913ea
Sean Gillespie [Wed, 6 Sep 2017 23:12:25 +0000 (16:12 -0700)]
Vendor the volatile.h header into src/gc/env for the standalone GC build (dotnet/coreclr#13656)
* Vendor the volatile.h header into src/gc/env for the standalone GC build
* Repair the GC sample
* Remove some unneeded defines (fixes the sample build)
Commit migrated from https://github.com/dotnet/coreclr/commit/
9f38303221294f45740feefc1b6ddf72347ff882
Pat Gavlin [Wed, 6 Sep 2017 22:51:22 +0000 (15:51 -0700)]
Fix VSO 487701 and 487702.
Both of these issues stem from attempting to unassign a copied interval
from the copied-to register and then reassigning the interval to the
same. This corrupts some of the bookkeeping necessary to track whether
or not the interval in the register needs to be spilled, and the RA ends
up attempting to spill the interval being allocated even though it is
not assigned a register.
Commit migrated from https://github.com/dotnet/coreclr/commit/
a6a61438b3451151b79c6d0a1188218d4fe121bb
Pat Gavlin [Wed, 6 Sep 2017 22:49:27 +0000 (15:49 -0700)]
Add tests for VSO 487701 and 487702.
Commit migrated from https://github.com/dotnet/coreclr/commit/
b426e68b8f0a894216dc1e24526c4f11210c9249
Pat Gavlin [Wed, 6 Sep 2017 21:34:48 +0000 (14:34 -0700)]
Add a regression test.
Commit migrated from https://github.com/dotnet/coreclr/commit/
26648051369757beb170f4ce9a77a70b06b26a0f
Pat Gavlin [Wed, 6 Sep 2017 19:48:51 +0000 (12:48 -0700)]
Do not remove NOPs used by calls.
Instead of removing dead stores that are marked as late args, we replace
them with NOPs. This obviates the need to update the call's argument
table, but requires that the NOP itself not be DCE'd. This change marks
these NOPs with the `ORDER_SIDEEFF` flag s.t. DCE will not remove them.
Fixes VSO 487703.
Commit migrated from https://github.com/dotnet/coreclr/commit/
6be064c11e0714e92d821025f3b630161f740577
Sergey Andreenko [Wed, 6 Sep 2017 19:38:58 +0000 (12:38 -0700)]
Fix DevDiv_278523 test for r2r x86. (dotnet/coreclr#13709)
* separate sources into 2 files: for 32 and for 64.
Commit migrated from https://github.com/dotnet/coreclr/commit/
03ef5b4cf46ba6b276706bf65fd76caf636f72cb
danmosemsft [Sat, 2 Sep 2017 00:55:10 +0000 (17:55 -0700)]
Restore Array.Empty
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/
32ce0bc7012f7ebac0532aa66cfd89c6f60bb0ea
Jarret Shook [Wed, 6 Sep 2017 18:16:57 +0000 (11:16 -0700)]
Merge pull request dotnet/coreclr#13811 from jashook/fix_xarch_warning
Fix potentially uninitialized local variable 'regCount'
Commit migrated from https://github.com/dotnet/coreclr/commit/
6fce9f14142420d01a673072bf4a15ff125fa5dc
Sergey Andreenko [Wed, 6 Sep 2017 18:00:18 +0000 (11:00 -0700)]
Jit doesn't reload shift index if it was spilled to rcx. (dotnet/coreclr#13757)
Repro test. Fix and additional assert.
Commit migrated from https://github.com/dotnet/coreclr/commit/
27611bc9db08741afe0043f98ffa1bb440c0fd23
Pat Gavlin [Wed, 6 Sep 2017 17:28:50 +0000 (10:28 -0700)]
Merge pull request dotnet/coreclr#13659 from mikedn/cast-actual-type
Fix getCastDescription to use the actual source type
Commit migrated from https://github.com/dotnet/coreclr/commit/
eaf6269e4ee79d7ec51526564595a3f6404b7547
Michelle McDaniel [Wed, 6 Sep 2017 16:36:58 +0000 (09:36 -0700)]
Merge pull request dotnet/coreclr#13800 from adiaaida/addnopgoPerf
Add nopgo option for throughput runs
Commit migrated from https://github.com/dotnet/coreclr/commit/
7efd6e2217e309f5b26bea423390754a568ce971
jashook [Wed, 6 Sep 2017 16:26:22 +0000 (09:26 -0700)]
Fix potentially uninitialized local variable 'regCount'
Commit migrated from https://github.com/dotnet/coreclr/commit/
8fa850cd22d390f2f4b702a093ec46ebbc4c114b
Stephen Toub [Wed, 6 Sep 2017 15:48:01 +0000 (11:48 -0400)]
Add Memory-based Stream overloads to coreclr (dotnet/coreclr#13769)
Includes adding the virtuals to Stream and then overriding on the various streams implemented in coreclr.
Commit migrated from https://github.com/dotnet/coreclr/commit/
5fd50d8d7ab96dbb3868ab3e60d0e4fc10f44ca0
Adrian Godong [Wed, 6 Sep 2017 14:14:19 +0000 (07:14 -0700)]
Removed renamed method. (dotnet/coreclr#13803)
Commit migrated from https://github.com/dotnet/coreclr/commit/
b33f729d71f7a222c304f0fe817bb19032a34522
Austin Wise [Wed, 6 Sep 2017 12:19:48 +0000 (05:19 -0700)]
Support for not wrapping exceptions with TargetInvocationException. (dotnet/coreclr#13767)
* Support for not wrapping exceptions with TargetInvocationException.
For dotnet/corefxdotnet/coreclr#22866.
* Respond to PR feedback.
Mainly by making "WrapExceptions" consistently positive in FCalls.
* Remove BindingFlags.DoNotWrapExceptions tests in deference to CoreFX tests.
Commit migrated from https://github.com/dotnet/coreclr/commit/
1f9aeeb7a3685bc7fd1098fc50d91ac81bae4873
dotnet-maestro-bot [Wed, 6 Sep 2017 04:53:24 +0000 (21:53 -0700)]
Update CoreClr, CoreFx to preview2-25706-01, preview2-25706-01, respectively (dotnet/coreclr#13734)
Commit migrated from https://github.com/dotnet/coreclr/commit/
8c64be6cf63b278c918c2280a82ee773e1e15647
Michelle McDaniel [Tue, 5 Sep 2017 22:34:10 +0000 (15:34 -0700)]
Add nopgo option for throughput runs
Commit migrated from https://github.com/dotnet/coreclr/commit/
2e27217069d349775136e2f32591013447a7e1fb
sergey ignatov [Wed, 6 Sep 2017 01:37:55 +0000 (04:37 +0300)]
Fix for CoreRT issue https://github.com/dotnet/corert/issues/3672 (ar… (dotnet/coreclr#13777)
* Fix for CoreRT issue https://github.com/dotnet/corert/issues/3672 (armel tizen)
* Added assertion for accessType
Commit migrated from https://github.com/dotnet/coreclr/commit/
25b6eef888e07f7dd0b0fea873554e786a952bf7
sergey ignatov [Wed, 6 Sep 2017 01:06:50 +0000 (04:06 +0300)]
implementing profiler ELT callbacks for AMD64 Linux (dotnet/coreclr#12603)
* implement profiler ELT callbacks for AMD64 Linux
* Some formatting fixes
* Fixed profiler
* Added aligning frame option
* Added aligning stack for quad values stores
Commit migrated from https://github.com/dotnet/coreclr/commit/
7e52c5341ca170c84632e1ef32c685d280f9824b
José Rivero [Wed, 6 Sep 2017 00:38:54 +0000 (17:38 -0700)]
Moving the Windows Performance runs from Server 2012 to Server 2016. (dotnet/coreclr#13725)
Commit migrated from https://github.com/dotnet/coreclr/commit/
e59fab0c899343fc5d382583bd07f4595659ac54
Omair Majid [Tue, 5 Sep 2017 23:22:55 +0000 (19:22 -0400)]
Add support for building under glibc 2.26 (dotnet/coreclr#13785)
glibc 2.26 renames a number of identifiers so they are reserved under
POSIX. Specifically, `padding` becomes `__glibc_reserved1`. Add a
configure test for it and use the appropriate field name.
See https://sourceware.org/bugzilla/show_bug.cgi?id=21457 for more
information.
Resolves dotnet/coreclr#13009
Commit migrated from https://github.com/dotnet/coreclr/commit/
a8f83b615708c529b112898e7d2fbc3f618b26ee