platform/upstream/dotnet/runtime.git
8 years agoMerge pull request dotnet/coreclr#6152 from mikedn/x86-addsub-lo
Carol Eidt [Thu, 7 Jul 2016 15:55:28 +0000 (08:55 -0700)]
Merge pull request dotnet/coreclr#6152 from mikedn/x86-addsub-lo

[WIP] Introduce GT_ADD_LO and GT_SUB_LO

Commit migrated from https://github.com/dotnet/coreclr/commit/840a6ca79d4643cd0cfed9444e5658933d901618

8 years agoMerge pull request dotnet/coreclr#6161 from dotnet-bot/UpdateDependencies20160707062011
Gaurav Khanna [Thu, 7 Jul 2016 13:43:17 +0000 (06:43 -0700)]
Merge pull request dotnet/coreclr#6161 from dotnet-bot/UpdateDependencies20160707062011

Updating External dependencies to beta-24307-00

Commit migrated from https://github.com/dotnet/coreclr/commit/49f97a102c9859258832688e4cea1963aa56b011

8 years agoAvoid heap allocating in char.ConvertFromUtf32 (dotnet/coreclr#6141)
James Ko [Thu, 7 Jul 2016 10:41:09 +0000 (06:41 -0400)]
Avoid heap allocating in char.ConvertFromUtf32 (dotnet/coreclr#6141)

Commit migrated from https://github.com/dotnet/coreclr/commit/ebbff97a9712ae1e625a9a7c26586f8f21070b5c

8 years agoUpdating External dependencies to beta-24307-00
dotnet-bot [Thu, 7 Jul 2016 06:20:11 +0000 (06:20 +0000)]
Updating External dependencies to beta-24307-00

Commit migrated from https://github.com/dotnet/coreclr/commit/a2ef8a06d6566ae39f30bd45fe2df79a6fd8310b

8 years agoConvert SymbolType.m_format to be a string (dotnet/coreclr#6133)
James Ko [Thu, 7 Jul 2016 06:03:59 +0000 (02:03 -0400)]
Convert SymbolType.m_format to be a string (dotnet/coreclr#6133)

Commit migrated from https://github.com/dotnet/coreclr/commit/de7eaa720b309f3cea66e2e276392a60e363c2cc

8 years agoAvoid box allocation in DateTimeFormat.FormatCustomized (dotnet/coreclr#6147)
Justin Van Patten [Thu, 7 Jul 2016 05:39:34 +0000 (22:39 -0700)]
Avoid box allocation in DateTimeFormat.FormatCustomized (dotnet/coreclr#6147)

The current implementation calls `string.Concat(object, object)`, which
results in an `int` box allocation.

Avoid the box allocation by calling `int.ToString()`, allowing
`string.Concat(string, string)` to be used.

Commit migrated from https://github.com/dotnet/coreclr/commit/62482f58b025eebd05101e33f2d2253fee070ab5

8 years agoAvoid box allocation in TypeBuilder.DefineDataHelper (dotnet/coreclr#6148)
Justin Van Patten [Thu, 7 Jul 2016 05:37:53 +0000 (22:37 -0700)]
Avoid box allocation in TypeBuilder.DefineDataHelper (dotnet/coreclr#6148)

The current implementation calls `string.Concat(object, object)`, which
results in a box allocation.

Avoid the box allocation by calling `int.ToString()`, allowing
`string.Concat(string, string)` to be used.

Commit migrated from https://github.com/dotnet/coreclr/commit/953d38321f817dffe18261ce77d508947ed4b4fb

8 years agoAvoid box allocation in ActivityTracker (dotnet/coreclr#6149)
Justin Van Patten [Thu, 7 Jul 2016 05:37:02 +0000 (22:37 -0700)]
Avoid box allocation in ActivityTracker (dotnet/coreclr#6149)

The current implementation calls
`string.Concat(object, object, object)`, which results in a box
allocation.

Avoid the box allocation by calling `long.ToString()`, allowing
`string.Concat(string, string, string)` to be used.

Commit migrated from https://github.com/dotnet/coreclr/commit/e6ca607e9dfa0718270aec74b9c9ff6ae3296f3c

8 years agomake all public properties of DebuggableAttribute visible outside mscorlib (dotnet...
Adam Sitnik [Thu, 7 Jul 2016 05:35:34 +0000 (07:35 +0200)]
make all public properties of DebuggableAttribute visible outside mscorlib (dotnet/coreclr#6153)

Commit migrated from https://github.com/dotnet/coreclr/commit/245ea79a84481d3d2b66c860b3d74e3251586cfb

8 years agoMerge pull request dotnet/coreclr#6157 from rahku/crossgen
Rahul Kumar [Thu, 7 Jul 2016 01:39:02 +0000 (18:39 -0700)]
Merge pull request dotnet/coreclr#6157 from rahku/crossgen

Do not clean tests folder when skiptests option is used along with clean

Commit migrated from https://github.com/dotnet/coreclr/commit/103598b7a612f0225170fea7d6b4430c87b843e4

8 years agoMerge pull request dotnet/coreclr#6151 from mikedn/runbench-coreclr
Aditya Mandaleeka [Wed, 6 Jul 2016 21:41:57 +0000 (14:41 -0700)]
Merge pull request dotnet/coreclr#6151 from mikedn/runbench-coreclr

Fix incorrect RunBenchmarks help text

Commit migrated from https://github.com/dotnet/coreclr/commit/c29547fc1559c9d90735efab1253c8cbf259319b

8 years agoDo not clean tests folder when skiptests option is used along with clean
Rahul Kumar [Wed, 6 Jul 2016 21:39:21 +0000 (14:39 -0700)]
Do not clean tests folder when skiptests option is used along with clean

Commit migrated from https://github.com/dotnet/coreclr/commit/14ae2d54a4d37303d4a3a4d52c300596559ef41a

8 years agoMerge pull request dotnet/coreclr#6130 from rahku/crossgen
Rahul Kumar [Wed, 6 Jul 2016 21:00:04 +0000 (14:00 -0700)]
Merge pull request dotnet/coreclr#6130 from rahku/crossgen

ARM64: Fix incremental build problem for cross-components

Commit migrated from https://github.com/dotnet/coreclr/commit/5a95caf62c33b61e1c4deab47101d92a386bab2a

8 years agoFix incremental build problem for cross-components
Rahul Kumar [Tue, 5 Jul 2016 22:04:59 +0000 (15:04 -0700)]
Fix incremental build problem for cross-components

Commit migrated from https://github.com/dotnet/coreclr/commit/74870facf4fa0f70a0c2ba5ff7ec2bd349faeb32

8 years agoMerge pull request dotnet/coreclr#6139 from mkborg/fix_lldb_search_order
Aditya Mandaleeka [Wed, 6 Jul 2016 19:32:47 +0000 (12:32 -0700)]
Merge pull request dotnet/coreclr#6139 from mkborg/fix_lldb_search_order

Fix LLDB search order

Commit migrated from https://github.com/dotnet/coreclr/commit/85574fc06c334c1cdcaddfa2167988ccea818709

8 years agoMerge pull request dotnet/coreclr#6146 from ellismg/fix-sign-targets-syntax-error
Matt Ellis [Wed, 6 Jul 2016 18:38:36 +0000 (11:38 -0700)]
Merge pull request dotnet/coreclr#6146 from ellismg/fix-sign-targets-syntax-error

Fix syntax error in sign.builds

Commit migrated from https://github.com/dotnet/coreclr/commit/585f3e1672ebf8f5486b200ab998a3cc229df75c

8 years agoFix incorrect RunBenchmarks help text
Mike Danes [Wed, 6 Jul 2016 18:29:06 +0000 (21:29 +0300)]
Fix incorrect RunBenchmarks help text

RunBenchmark's help text claims that there's a -coreclr option when in fact the option is -runner.

Commit migrated from https://github.com/dotnet/coreclr/commit/17aebd846b202d4b19f1adfad79eefdaf57bd244

8 years agoIntroduce GT_ADD_LO and GT_SUB_LO
Mike Danes [Wed, 6 Jul 2016 17:23:42 +0000 (20:23 +0300)]
Introduce GT_ADD_LO and GT_SUB_LO

Commit migrated from https://github.com/dotnet/coreclr/commit/77f1603b268452bc49ccd69ae8930e5e5357ca39

8 years agoFix syntax error in sign.builds
Matt Ellis [Wed, 6 Jul 2016 16:55:23 +0000 (09:55 -0700)]
Fix syntax error in sign.builds

Commit migrated from https://github.com/dotnet/coreclr/commit/ce4950e101a96a7f39f14aaf49ef8f8d87c79b3b

8 years agoMerge pull request dotnet/coreclr#6015 from kouvel/NamedMutexMoreFlockCases
Koundinya Veluri [Wed, 6 Jul 2016 16:50:12 +0000 (09:50 -0700)]
Merge pull request dotnet/coreclr#6015 from kouvel/NamedMutexMoreFlockCases

Named mutex: Use flock instead of pthread process-shared mutex in som…

Commit migrated from https://github.com/dotnet/coreclr/commit/66b6219f6e1c0e0162d52e1c098554e73777a52d

8 years agoMerge pull request dotnet/coreclr#6135 from dotnet-bot/UpdateDependencies20160706051943
Gaurav Khanna [Wed, 6 Jul 2016 14:19:00 +0000 (07:19 -0700)]
Merge pull request dotnet/coreclr#6135 from dotnet-bot/UpdateDependencies20160706051943

Updating External dependencies to beta-24306-00

Commit migrated from https://github.com/dotnet/coreclr/commit/b799cf9626020a0b67676e34cc9e6aeac798a87e

8 years agoFix LLDB search order
Mikhail I. Krivtsov [Wed, 6 Jul 2016 11:37:39 +0000 (14:37 +0300)]
Fix LLDB search order

By default 'find_library' without 'NO_DEFAULT_PATH' keyword searches
first in default locations specified by '${CMAKE_SYSTEM_PREFIX_PATH}'
and only then in locations specified via 'PATHS' keyword
('${WITH_LLDB_LIBS}' in our case). As result it always picks-up default
LLDB ignoring the one explicitly specified via '${WITH_LLDB_LIBS}'.
This change modifies search order giving priority to '${WITH_LLDB_LIBS}'
and '${WITH_LLDB_INCLUDES}' over default locations.

Commit migrated from https://github.com/dotnet/coreclr/commit/c1b65bdc225386e4f2af4c49512fbb93579c0973

8 years agoUpdating External dependencies to beta-24306-00
dotnet-bot [Wed, 6 Jul 2016 05:19:43 +0000 (05:19 +0000)]
Updating External dependencies to beta-24306-00

Commit migrated from https://github.com/dotnet/coreclr/commit/fd3d4a336e51e75058239d35447d18d3591ac92c

8 years agoNamed mutex: Use flock instead of pthread process-shared mutex in some more cases
Koundinya Veluri [Mon, 27 Jun 2016 17:53:28 +0000 (10:53 -0700)]
Named mutex: Use flock instead of pthread process-shared mutex in some more cases

Workaround for dotnet/coreclr#5456:
- Sometimes, a timed wait operation is not getting released, causing a hang
- Due to the hang, it is not possible to detect this issue with code
- Temporarily disabled the use of pthread process-shared mutexes on ARM/ARM64. File locks will be used instead.

Workaround for dotnet/coreclr#5872:
- On Alpine Linux, a pthread process-shared robust mutex is detecting the case where a process abandons the mutex when it exits while holding the lock, but is putting the mutex into an unrecoverable state (ENOTRECOVERABLE) instead of assigning lock ownership to the next thread that is released from a wait for a lock and notifying of abandonment (EOWNERDEAD).
- Added a test case to detect this issue, to have it use file locks instead

Close dotnet/coreclr#5456

Commit migrated from https://github.com/dotnet/coreclr/commit/f63816767aee67509ac3c61e94ff95d371471493

8 years agoMerge pull request dotnet/coreclr#6098 from CarolEidt/BlkNodeRefactors
Carol Eidt [Tue, 5 Jul 2016 22:55:48 +0000 (15:55 -0700)]
Merge pull request dotnet/coreclr#6098 from CarolEidt/BlkNodeRefactors

More Blk Op Refactoring

Commit migrated from https://github.com/dotnet/coreclr/commit/9990ac928903d556c635a8d4162a4907c4e41eb1

8 years agoMerge pull request dotnet/coreclr#6102 from briansull/inliner-dump
Brian Sullivan [Tue, 5 Jul 2016 22:48:14 +0000 (15:48 -0700)]
Merge pull request dotnet/coreclr#6102 from briansull/inliner-dump

Improve the dump for inline return expressions

Commit migrated from https://github.com/dotnet/coreclr/commit/63d50adfee9fb3cf31ca09ac2c9c33e11ef4b076

8 years agoMerge pull request dotnet/coreclr#6101 from BruceForstall/RyuJITx86EH
Bruce Forstall [Tue, 5 Jul 2016 21:58:31 +0000 (14:58 -0700)]
Merge pull request dotnet/coreclr#6101 from BruceForstall/RyuJITx86EH

RyuJIT/x86: add support for EH

Commit migrated from https://github.com/dotnet/coreclr/commit/5e4d41cfb115f6c4b662a5df46eba759b56dae20

8 years agoMerge pull request dotnet/coreclr#6094 from mikedn/x86-uncontained-long
Sivarv [Tue, 5 Jul 2016 21:47:48 +0000 (14:47 -0700)]
Merge pull request dotnet/coreclr#6094 from mikedn/x86-uncontained-long

Allow uncontained GT_LONG nodes

Commit migrated from https://github.com/dotnet/coreclr/commit/ec8157edd52146b108b02d821d88d295048d5212

8 years agoMerge pull request dotnet/coreclr#6124 from dotnet-bot/from-tfs
Bruce Forstall [Tue, 5 Jul 2016 20:33:28 +0000 (13:33 -0700)]
Merge pull request dotnet/coreclr#6124 from dotnet-bot/from-tfs

Merge changes from TFS

Commit migrated from https://github.com/dotnet/coreclr/commit/e18245844cc8400400fc05c01ecf311cb9bdf019

8 years agoMerge pull request dotnet/coreclr#6100 from BruceForstall/BotrX86EHUpdate
Bruce Forstall [Tue, 5 Jul 2016 20:29:59 +0000 (13:29 -0700)]
Merge pull request dotnet/coreclr#6100 from BruceForstall/BotrX86EHUpdate

Add information on x86 EH to CLR ABI

Commit migrated from https://github.com/dotnet/coreclr/commit/b94ccd123439f86bf6a29b9f9c905b42ca737cb1

8 years agoMerge pull request dotnet/coreclr#6093 from rahku/arm64retbuf
Rahul Kumar [Tue, 5 Jul 2016 18:49:29 +0000 (11:49 -0700)]
Merge pull request dotnet/coreclr#6093 from rahku/arm64retbuf

Revert Pinvoke ILStub calli signature for desktop clr

Commit migrated from https://github.com/dotnet/coreclr/commit/7782e7db223d2a90792546d715f88648c600c5a3

8 years agoonly use config on coreclr
Maoni Stephens [Tue, 5 Jul 2016 18:47:29 +0000 (11:47 -0700)]
only use config on coreclr

[tfs-changeset: 1616092]

Commit migrated from https://github.com/dotnet/coreclr/commit/0881ab88c6b219aa2325543f3b180337cba3fd3c

8 years agoMerge pull request dotnet/coreclr#6106 from mikedn/modopt-feedback
Bruce Forstall [Tue, 5 Jul 2016 16:31:21 +0000 (09:31 -0700)]
Merge pull request dotnet/coreclr#6106 from mikedn/modopt-feedback

Address div/mod CR feedback

Commit migrated from https://github.com/dotnet/coreclr/commit/59c6500f2f10b6e3f55b43e549ddc0293d9ee4fc

8 years agoMore Blk Op Refactoring
Carol Eidt [Sat, 2 Jul 2016 00:03:52 +0000 (17:03 -0700)]
More Blk Op Refactoring

Code refactoring in preparation for 1st Class Structs:
Factor out the legacy code generation for CpObj.
Abstract some functionality to member methods.
Move some block-related method definitions.
Make fgOrderBlockOps legacy-only (it is unused in RyuJIT).
Factor out the code to create a block init value.
Add a new IsLocalExpr() method.
Change some variable names to distinguish between objects and their addresses.

Commit migrated from https://github.com/dotnet/coreclr/commit/12ea758226379d60a6b7fe3c36c1ae687c13012b

8 years agoMerge pull request dotnet/coreclr#6120 from dotnet-bot/UpdateDependencies20160705051942
Stephen Toub [Tue, 5 Jul 2016 11:59:03 +0000 (07:59 -0400)]
Merge pull request dotnet/coreclr#6120 from dotnet-bot/UpdateDependencies20160705051942

Updating External dependencies to beta-24305-00

Commit migrated from https://github.com/dotnet/coreclr/commit/5e0cb3af80d85290c5db416d8886c83d7b5d7621

8 years agoBetter performance for MulticastDelegate.Equals (dotnet/coreclr#6113)
James Ko [Tue, 5 Jul 2016 09:50:52 +0000 (05:50 -0400)]
Better performance for MulticastDelegate.Equals (dotnet/coreclr#6113)

Better performance for MulticastDelegate.Equals

Commit migrated from https://github.com/dotnet/coreclr/commit/a8cdb489463200598631c5acacc5aa521e10b139

8 years agoOne of the flags MAP_SHARED or MAP_PRIVATE has to be specified. MAP_PRIVATE seems...
Viacheslav Nikolaev [Tue, 5 Jul 2016 06:33:46 +0000 (09:33 +0300)]
One of the flags MAP_SHARED or MAP_PRIVATE has to be specified. MAP_PRIVATE seems to fit here. (dotnet/coreclr#6089)

Commit migrated from https://github.com/dotnet/coreclr/commit/ad40ed696dbc696733e09422d57622ed574ecec8

8 years agoUpdating External dependencies to beta-24305-00
dotnet-bot [Tue, 5 Jul 2016 05:19:42 +0000 (05:19 +0000)]
Updating External dependencies to beta-24305-00

Commit migrated from https://github.com/dotnet/coreclr/commit/0f68aa835593de8a788092b37d6a481d676f3934

8 years agoMerge pull request dotnet/coreclr#6109 from dotnet-bot/UpdateDependencies20160704051959
Stephen Toub [Mon, 4 Jul 2016 10:09:55 +0000 (06:09 -0400)]
Merge pull request dotnet/coreclr#6109 from dotnet-bot/UpdateDependencies20160704051959

Updating External dependencies to beta-24304-00

Commit migrated from https://github.com/dotnet/coreclr/commit/c92870088bbb38c843751bb571198430a0e555ec

8 years agoShort-circuit on the count, not the array length, in common Encoding methods (dotnet...
James Ko [Mon, 4 Jul 2016 05:39:12 +0000 (01:39 -0400)]
Short-circuit on the count, not the array length, in common Encoding methods (dotnet/coreclr#6108)

* Short-circuit using count instead of array.Length
* Use Array.Empty in default Reset implementation

Commit migrated from https://github.com/dotnet/coreclr/commit/a1e785dccf35af4305f2536b1e25cb719e8f1943

8 years agoUpdating External dependencies to beta-24304-00
dotnet-bot [Mon, 4 Jul 2016 05:19:58 +0000 (05:19 +0000)]
Updating External dependencies to beta-24304-00

Commit migrated from https://github.com/dotnet/coreclr/commit/5325bfbebc71341c6f96ab9bf6c5231b5d4d525b

8 years agoMerge pull request dotnet/coreclr#6104 from Maoni0/config
Maoni Stephens [Sun, 3 Jul 2016 20:06:03 +0000 (13:06 -0700)]
Merge pull request dotnet/coreclr#6104 from Maoni0/config

Added 2 configs for Server GC

Commit migrated from https://github.com/dotnet/coreclr/commit/c3e09ed993019ab3a1645cfd78f77112b442f4e8

8 years agoAddress div/mod CR feedback
Mike Danes [Sun, 3 Jul 2016 16:46:15 +0000 (19:46 +0300)]
Address div/mod CR feedback

Commit migrated from https://github.com/dotnet/coreclr/commit/56c425835dcb35bbdaf1f7639a6580ea4a8215e9

8 years agoAdded 2 configs for Server GC
Maoni0 [Sun, 3 Jul 2016 04:07:23 +0000 (21:07 -0700)]
Added 2 configs for Server GC

complus var GCNoAffinitize or project.json System.GC.NoAffinitize - specify 1/true to disable hard affinity of Server GC threads to CPUs
complus var GCHeapCount or project.json System.GC.HeapCount - specify the # of Server GC threads/heaps, must be smaller than the # of logical CPUs the process is allowed to run on, ie, if you don't specifically affinitize your process it means the # of total logical CPUs on the machine; otherwise this is the # of logical CPUs you affinitized your process to.

Commit migrated from https://github.com/dotnet/coreclr/commit/d088712003e8d483872754d6b3c72aa2d4443a93

8 years agoMerge pull request dotnet/coreclr#6099 from adityamandaleeka/remove_virtual_owned
Aditya Mandaleeka [Sun, 3 Jul 2016 01:11:31 +0000 (18:11 -0700)]
Merge pull request dotnet/coreclr#6099 from adityamandaleeka/remove_virtual_owned

Remove VIRTUALOwnedRegion

Commit migrated from https://github.com/dotnet/coreclr/commit/339d991562c404417bfbc741f7d02e107cadf23d

8 years agoMerge pull request dotnet/coreclr#6086 from dotnet-bot/UpdateDependencies20160701051708
Gaurav Khanna [Sat, 2 Jul 2016 16:12:54 +0000 (09:12 -0700)]
Merge pull request dotnet/coreclr#6086 from dotnet-bot/UpdateDependencies20160701051708

Updating External dependencies to beta-24301-00

Commit migrated from https://github.com/dotnet/coreclr/commit/efcd68cffbcb1e9f88105036a781b74b1e5d2237

8 years agoMerge pull request dotnet/coreclr#6092 from sivarv/lsrawork
Sivarv [Sat, 2 Jul 2016 13:06:44 +0000 (06:06 -0700)]
Merge pull request dotnet/coreclr#6092 from sivarv/lsrawork

Lower, LSRA and Codegen support for reg optional operands

Commit migrated from https://github.com/dotnet/coreclr/commit/e9f06e041b379f3919455ca005681a9fcac72ea6

8 years agoAllow uncontained GT_LONG nodes
Mike Danes [Fri, 1 Jul 2016 19:54:04 +0000 (22:54 +0300)]
Allow uncontained GT_LONG nodes

When the result of a TYP_LONG operation is not used the GT_LONG node inserted during decomposition remains in the tree and unlike other GT_LONG nodes is not contained and needs special handling.

This usually happens with arithmetic operations that require overflow checks,  the result of the operation may be ignored but the operation itself cannot be eliminated because it has a side-effect.

Commit migrated from https://github.com/dotnet/coreclr/commit/6f8f2154825b1cf17fbbba8ccb365069e2d7d15f

8 years agoImprove the dump for inline return expressions
Brian Sullivan [Sat, 2 Jul 2016 01:31:16 +0000 (18:31 -0700)]
Improve the dump for inline return expressions

Also don't do a deep copy of the inline return expression

Commit migrated from https://github.com/dotnet/coreclr/commit/29499d15bdf274d8a849c2dcdc7392ebe218d290

8 years agoAdd information on x86 EH to CLR ABI
Bruce Forstall [Sat, 2 Jul 2016 00:57:57 +0000 (17:57 -0700)]
Add information on x86 EH to CLR ABI

Commit migrated from https://github.com/dotnet/coreclr/commit/74db9d7c20e4927b2a129f762c3006de8e5bb49a

8 years agoRemove VIRTUALOwnedRegion.
Aditya Mandaleeka [Sat, 2 Jul 2016 00:09:47 +0000 (17:09 -0700)]
Remove VIRTUALOwnedRegion.

Commit migrated from https://github.com/dotnet/coreclr/commit/52d7750b124d5c2425a5e975a98ce8720dfcbd2c

8 years agoConsider spilled lcl var as contained memory operands for codegen purpose.
sivarv [Fri, 1 Jul 2016 18:41:02 +0000 (11:41 -0700)]
Consider spilled lcl var as contained memory operands for codegen purpose.

Commit migrated from https://github.com/dotnet/coreclr/commit/d92b629cdb742c42ef7b6a35f3ba55104539c9bd

8 years agoRyuJIT/x86: add support for EH
Bruce Forstall [Fri, 1 Jul 2016 23:55:01 +0000 (16:55 -0700)]
RyuJIT/x86: add support for EH

This change implements the necessary x86 support in RyuJIT for exception handling.
It removes the EH-related NYI. The number of NYI fallbacks in an x86 test run drops
by about 13000. There are 10 new asserts which are now suppressed: 6 appear to be
new and 4 are new instances of existing known asserts.

The various changes are:
1. Implement code generation for BBJ_CALLFINALLY/BBJ_ALWAYS blocks for invoking a finally.
This requires appropriately modifying the ShadowSP slot structure before the call.
2. Implement BBJ_EHFINALLYRET/BBJ_EHFILTERRET control transfer. The related GT_RETFILT
code was already implemented.
3. Implement GT_END_LFIN for handling return-from-finally cleanup, namely, clearing the
appropriate slot in the ShadowSP structure.

Commit migrated from https://github.com/dotnet/coreclr/commit/239856a9e4ea33d94e15a9822bbd070e425c3b85

8 years agoMerge pull request dotnet/coreclr#6096 from dotnet-bot/from-tfs
Bruce Forstall [Fri, 1 Jul 2016 23:47:51 +0000 (16:47 -0700)]
Merge pull request dotnet/coreclr#6096 from dotnet-bot/from-tfs

Merge changes from TFS

Commit migrated from https://github.com/dotnet/coreclr/commit/ce97aac437beb855a794155147d08ab94f60c1fe

8 years agoFixed build breaks related to perf counter code on desktop. perf counters are only...
Maoni Stephens [Fri, 1 Jul 2016 21:47:30 +0000 (14:47 -0700)]
Fixed build breaks related to perf counter code on desktop. perf counters are only enabled on desktop.

[tfs-changeset: 1615834]

Commit migrated from https://github.com/dotnet/coreclr/commit/30720bc0aa5aa242da615fdcd7f64ffff8581884

8 years agoRevert Pinvoke ILStub calli signature for desktop clr
Rahul Kumar [Fri, 1 Jul 2016 19:20:39 +0000 (12:20 -0700)]
Revert Pinvoke ILStub calli signature for desktop clr

Commit migrated from https://github.com/dotnet/coreclr/commit/e1946b9917fa85b362897b5a1b0eb7ae73abb317

8 years agoMerge pull request dotnet/coreclr#6083 from adityamandaleeka/upload_ci_dumps
Aditya Mandaleeka [Fri, 1 Jul 2016 20:11:10 +0000 (13:11 -0700)]
Merge pull request dotnet/coreclr#6083 from adityamandaleeka/upload_ci_dumps

Start using dumpling service to upload dumps from CI runs

Commit migrated from https://github.com/dotnet/coreclr/commit/2af325078b02d95b44ae08baa356e7cbd1cd4748

8 years agoMerge pull request dotnet/coreclr#6031 from mikedn/x86-float-unspill
Pat Gavlin [Fri, 1 Jul 2016 19:33:16 +0000 (12:33 -0700)]
Merge pull request dotnet/coreclr#6031 from mikedn/x86-float-unspill

Remove misplaced call to genUnspillRegIfNeeded

Commit migrated from https://github.com/dotnet/coreclr/commit/07fd84e41dfc465e6cd519bc29b05a792f3ba52f

8 years agoMerge pull request dotnet/coreclr#6084 from Maoni0/gc_etw
Maoni Stephens [Fri, 1 Jul 2016 17:49:06 +0000 (10:49 -0700)]
Merge pull request dotnet/coreclr#6084 from Maoni0/gc_etw

GC ETW fixes

Commit migrated from https://github.com/dotnet/coreclr/commit/fc8689e2486d09cd17f40538ac06ce5aafd2d87d

8 years agoMerge pull request dotnet/coreclr#6091 from wtgodbe/buildfix
William Godbe [Fri, 1 Jul 2016 17:22:44 +0000 (10:22 -0700)]
Merge pull request dotnet/coreclr#6091 from wtgodbe/buildfix

do all coreclr copying BEFORE building

Commit migrated from https://github.com/dotnet/coreclr/commit/01d4bb6e1898ffb4d52084fe2c81347cedac27a0

8 years agodo all coreclr copying BEFORE building
wtgodbe [Fri, 1 Jul 2016 17:15:06 +0000 (10:15 -0700)]
do all coreclr copying BEFORE building

Commit migrated from https://github.com/dotnet/coreclr/commit/a4a3df7e0d58dc93e44600a1d8d0cc11e0acdd2a

8 years agoFIX dotnet/coreclr#6074 : cannot find exception handler on arm (dotnet/coreclr#6088)
chunseoklee [Fri, 1 Jul 2016 08:41:20 +0000 (17:41 +0900)]
FIX dotnet/coreclr#6074 : cannot find exception handler on arm (dotnet/coreclr#6088)

Commit migrated from https://github.com/dotnet/coreclr/commit/597e160564c2d4ce26efff1450b0d96647071638

8 years agoUpdating External dependencies to beta-24301-00
dotnet-bot [Fri, 1 Jul 2016 05:17:08 +0000 (05:17 +0000)]
Updating External dependencies to beta-24301-00

Commit migrated from https://github.com/dotnet/coreclr/commit/c50f68765c32da24e74159c27cae88d3a44b2a8a

8 years agoMerge pull request dotnet/coreclr#6082 from kyulee1/gc3
Kyungwoo Lee [Fri, 1 Jul 2016 01:49:05 +0000 (18:49 -0700)]
Merge pull request dotnet/coreclr#6082 from kyulee1/gc3

ARM64: Enable GCStress0x3 Private Job

Commit migrated from https://github.com/dotnet/coreclr/commit/a9ab292d74caf5e0e412f4cd6e4e2127aa8eb6a6

8 years agoMerge pull request dotnet/coreclr#6078 from AndyAyersMS/ModelPolicyAvailability
Andy Ayers [Fri, 1 Jul 2016 00:47:24 +0000 (17:47 -0700)]
Merge pull request dotnet/coreclr#6078 from AndyAyersMS/ModelPolicyAvailability

Inliner: make ModelPolicy available in release builds

Commit migrated from https://github.com/dotnet/coreclr/commit/0dad06cfc57e53123a8e861f5949ceaf889fb78d

8 years agoGC ETW fixes. The code for getting data for ETW and perf counter was written by different
Maoni0 [Fri, 24 Jun 2016 22:45:51 +0000 (15:45 -0700)]
GC ETW fixes. The code for getting data for ETW and perf counter was written by different
folks and was very intertwined. For full CLR we always have both defined but for coreclr
perf counters are not enabled so some things for ETW were just 0. Need to make sure when one
is not defined the rest are still getting the data they need.

Commit migrated from https://github.com/dotnet/coreclr/commit/fa2ff58d3198122cbbc216e0fd664d9e09120669

8 years agoMerge pull request dotnet/coreclr#6077 from pgavlin/RemoveGtfDead
Pat Gavlin [Thu, 30 Jun 2016 23:36:19 +0000 (16:36 -0700)]
Merge pull request dotnet/coreclr#6077 from pgavlin/RemoveGtfDead

Remove GTF_DEAD.

Commit migrated from https://github.com/dotnet/coreclr/commit/8e8f0499f6245c5e3d678675e3b9ecd1fb6fbd58

8 years agoFix the hang in the debugger tests repo on OS X. (dotnet/coreclr#6079)
Mike McLaughlin [Thu, 30 Jun 2016 22:49:46 +0000 (15:49 -0700)]
Fix the hang in the debugger tests repo on OS X. (dotnet/coreclr#6079)

The transport pipe closes during shudown where blocked/deadlocked with the pending read on the transport thread.

Commit migrated from https://github.com/dotnet/coreclr/commit/7487889945fff12556f10c72ea9dc7732f7f0528

8 years agoUpload CI dumps to dumpling.
Aditya Mandaleeka [Thu, 30 Jun 2016 22:20:22 +0000 (15:20 -0700)]
Upload CI dumps to dumpling.

Commit migrated from https://github.com/dotnet/coreclr/commit/aeb0d3ba019f59bdc8a7f29aabd81b3ad1e7065c

8 years agoARM64: Enable GCStress0x3 Private Job
Kyungwoo Lee [Thu, 30 Jun 2016 22:00:07 +0000 (15:00 -0700)]
ARM64: Enable GCStress0x3 Private Job

Commit migrated from https://github.com/dotnet/coreclr/commit/1e142344d7b67c7cce3d1d1346223b630f84496f

8 years agoMerge pull request dotnet/coreclr#6080 from wtgodbe/artifacts
William Godbe [Thu, 30 Jun 2016 21:40:53 +0000 (14:40 -0700)]
Merge pull request dotnet/coreclr#6080 from wtgodbe/artifacts

Use HTML publisher for code coverage reports in CI

Commit migrated from https://github.com/dotnet/coreclr/commit/9ceb6b6c4f1fd9d76a3d986750049bbed5bd0af8

8 years agoUse HTML publisher for code coverage reports in CI
wtgodbe [Thu, 30 Jun 2016 21:32:44 +0000 (14:32 -0700)]
Use HTML publisher for code coverage reports in CI

Commit migrated from https://github.com/dotnet/coreclr/commit/b6199d247b619ebe62e733b62fb4cec998faee27

8 years agoInliner: make ModelPolicy available in release builds
Andy Ayers [Tue, 28 Jun 2016 22:07:01 +0000 (15:07 -0700)]
Inliner: make ModelPolicy available in release builds

Make the ModelPolicy available in release builds of the jit. Enable this
policy by setting:

   COMPLUS_JitInlinePolicyModel=1

This works for either jitting or prejitting.

Update the ModelPolicy so callee never inline decisions are always
propagated back to the runtime.

Commit migrated from https://github.com/dotnet/coreclr/commit/73ec3f5e0a240d3c9bd56f4159c94ca06d3c5392

8 years agoRemove GTF_DEAD.
Pat Gavlin [Thu, 30 Jun 2016 17:26:05 +0000 (10:26 -0700)]
Remove GTF_DEAD.

This flag was only used by CSE to mark dead trees s.t. these trees
were not considered during CSE replacement. The same information,
however, can be provided by the gtCSEnum field: a tree with this
field set to NO_CSE is treated identically to a tree marked with
GTF_DEAD. The GTF_DEAD flag is therefore redundant and can be
eliminated.

This is part of dotnet/coreclr#5999.

Commit migrated from https://github.com/dotnet/coreclr/commit/a26d86b7d1562982b70776cffaeea8a633709dd0

8 years agoRemove misplaced call to genUnspillRegIfNeeded
Mike Danes [Tue, 28 Jun 2016 18:28:51 +0000 (21:28 +0300)]
Remove misplaced call to genUnspillRegIfNeeded

Commit migrated from https://github.com/dotnet/coreclr/commit/a29cdf2ff411e2ab3e63592139f89d4b4dce0a37

8 years ago[SOS] [Linux] Initial support of reading source and line number by native offset...
Evgeny Pavlov [Thu, 30 Jun 2016 17:40:25 +0000 (21:40 +0400)]
[SOS] [Linux] Initial support of reading source and line number by native offset (dotnet/coreclr#6010)

* Initial support of reading source and line number by native offset
using portable PDB reader

Commit migrated from https://github.com/dotnet/coreclr/commit/60dcd3b757532863803c302c750de79c266d651d

8 years agoMerge pull request dotnet/coreclr#5958 from jashook/disable_timeouts_under_gcstress
Jarret Shook [Thu, 30 Jun 2016 15:41:41 +0000 (08:41 -0700)]
Merge pull request dotnet/coreclr#5958 from jashook/disable_timeouts_under_gcstress

Disable tests that timeout under gcstress

Commit migrated from https://github.com/dotnet/coreclr/commit/84aadf1d52f720379eb58bbbda061d0c704b2910

8 years agoFix undefined locals in desktop test builds. (dotnet/coreclr#6073)
Mike McLaughlin [Thu, 30 Jun 2016 05:06:06 +0000 (22:06 -0700)]
Fix undefined locals in desktop test builds. (dotnet/coreclr#6073)

When for desktop out of the ProjectK branch, the previous change left unassigned member variables.  Moved the pragma to include them.

Commit migrated from https://github.com/dotnet/coreclr/commit/24a53c5bd05c4ee9dd496af296b5a7aef18bce82

8 years agoMerge pull request dotnet/coreclr#6075 from kyulee1/settime
Kyungwoo Lee [Thu, 30 Jun 2016 03:20:53 +0000 (20:20 -0700)]
Merge pull request dotnet/coreclr#6075 from kyulee1/settime

ARM64: Set timeout per scenario

Commit migrated from https://github.com/dotnet/coreclr/commit/e2c429bf0ecfe71dd9c1e4b2639644b21d7fddda

8 years agoARM64: Set timeout per scenario
Kyungwoo Lee [Thu, 30 Jun 2016 01:26:41 +0000 (18:26 -0700)]
ARM64: Set timeout per scenario

Commit migrated from https://github.com/dotnet/coreclr/commit/b49523e6a92a68d1dbe616a17a667c8771a46001

8 years agoMerge pull request dotnet/coreclr#6072 from wtgodbe/archive2
William Godbe [Wed, 29 Jun 2016 21:44:42 +0000 (14:44 -0700)]
Merge pull request dotnet/coreclr#6072 from wtgodbe/archive2

Archive the right artifacts in coverage build

Commit migrated from https://github.com/dotnet/coreclr/commit/d07be565fce4461a2cca805f7e26e2284a9c274d

8 years agoArchive the right artifacts in coverage build
wtgodbe [Wed, 29 Jun 2016 21:36:01 +0000 (14:36 -0700)]
Archive the right artifacts in coverage build

Commit migrated from https://github.com/dotnet/coreclr/commit/0806922ac827ccb60c2c99627b7a51bbff0ba50d

8 years agoMerge pull request dotnet/coreclr#6044 from briansull/split-lvIsMultiRegArgOrRet
Brian Sullivan [Wed, 29 Jun 2016 20:46:55 +0000 (13:46 -0700)]
Merge pull request dotnet/coreclr#6044 from briansull/split-lvIsMultiRegArgOrRet

Split the lvIsMultiiRegArgOrRet into two bits

Commit migrated from https://github.com/dotnet/coreclr/commit/a9bb1eff52c7a1a7a1a9083ce7bac5bfbedb9191

8 years agoMerge pull request dotnet/coreclr#6041 from adityamandaleeka/fix_strip_logic
Aditya Mandaleeka [Wed, 29 Jun 2016 19:50:06 +0000 (12:50 -0700)]
Merge pull request dotnet/coreclr#6041 from adityamandaleeka/fix_strip_logic

Fix platform logic in symbol stripping code

Commit migrated from https://github.com/dotnet/coreclr/commit/2f9e1c1e7271cee1ce126473534dabd3520aa67f

8 years agoMerge pull request dotnet/coreclr#6070 from wtgodbe/sign
William Godbe [Wed, 29 Jun 2016 19:20:16 +0000 (12:20 -0700)]
Merge pull request dotnet/coreclr#6070 from wtgodbe/sign

Only sign non-arm64 binaries

Commit migrated from https://github.com/dotnet/coreclr/commit/7a2c097b4bc53a67dce34559100658fe5cf177d9

8 years agoMerge pull request dotnet/coreclr#6069 from dotnet-bot/from-tfs
Andy Ayers [Wed, 29 Jun 2016 19:12:07 +0000 (12:12 -0700)]
Merge pull request dotnet/coreclr#6069 from dotnet-bot/from-tfs

Merge changes from TFS

Commit migrated from https://github.com/dotnet/coreclr/commit/eb89f68a22c471fac194561dc285027f8aa970bb

8 years agoOnly sign non-arm64 binaries
wtgodbe [Wed, 29 Jun 2016 18:14:53 +0000 (11:14 -0700)]
Only sign non-arm64 binaries

Commit migrated from https://github.com/dotnet/coreclr/commit/fc8205c202b4309f4007bc53d0287095e7663f8f

8 years agoSplit the lvIsMultiRegArgOrRet into two bits
Brian Sullivan [Wed, 29 Jun 2016 00:32:33 +0000 (17:32 -0700)]
Split the lvIsMultiRegArgOrRet into two bits

Currently for all targets that have MultiReg return LclVars we require that they not be struct promoted.
But on ARM64 we do allow for MultiReg #argument LclVars to be struct promoted.
Thus we have to disentagle this value into two distinct bool values to implement MultiReg returns for Arm64.

Commit migrated from https://github.com/dotnet/coreclr/commit/1472efcd7d07a5238a8ed091a628df843d7ad437

8 years agoDisable tests that timeout under gcstress
jashoo [Wed, 29 Jun 2016 17:32:41 +0000 (10:32 -0700)]
Disable tests that timeout under gcstress

After increasing the timeout time for gcstress, these tests continue to fail
due to timeouts. To get the gcstress legs green and keep them within a manageable
amount of time they will be disabled.

Commit migrated from https://github.com/dotnet/coreclr/commit/b624185b05169aac2b6e60ab0e4b01e4e82e9d86

8 years agoHave the jit capture the SuperPMI method index for use in correlating outputs from...
Andy Ayers [Wed, 29 Jun 2016 17:22:43 +0000 (10:22 -0700)]
Have the jit capture the SuperPMI method index for use in correlating outputs from different runs.

Useful for matching SPMI outputs in cases where jit changes cause differential replay failures so lining up results side-by-side doesn't work.

If the jit is not hosted under SPMI, the index will report as zero.

[tfs-changeset: 1615278]

Commit migrated from https://github.com/dotnet/coreclr/commit/6410ab910e61cda29914a6a760c312b4434426a9

8 years agoFix building on desktop bug dotnet/coreclr#234633. (dotnet/coreclr#6045)
Mike McLaughlin [Wed, 29 Jun 2016 15:52:57 +0000 (08:52 -0700)]
Fix building on desktop bug dotnet/coreclr#234633. (dotnet/coreclr#6045)

ifdef the references to System.Diagnostic.StackFrame.

Commit migrated from https://github.com/dotnet/coreclr/commit/6c417022545b9f1e134100962909795a5958ca1f

8 years agoMerge pull request dotnet/coreclr#6054 from kyulee1/gcjob
Kyungwoo Lee [Wed, 29 Jun 2016 15:51:07 +0000 (08:51 -0700)]
Merge pull request dotnet/coreclr#6054 from kyulee1/gcjob

ARM64: Enable a gcstress private job

Commit migrated from https://github.com/dotnet/coreclr/commit/f339d85ac572b5e21dbb5e5118bea0820758c9ac

8 years agoMerge pull request dotnet/coreclr#6040 from rahku/arm64retbuf
Kyungwoo Lee [Wed, 29 Jun 2016 15:30:27 +0000 (08:30 -0700)]
Merge pull request dotnet/coreclr#6040 from rahku/arm64retbuf

ARM64: update tests.lst

Commit migrated from https://github.com/dotnet/coreclr/commit/ce479d6a4818e8a30114cd84a8e9e34fcd2b8720

8 years agoMerge pull request dotnet/coreclr#6000 from gkhanna79/Arm64Nuget
Gaurav Khanna [Wed, 29 Jun 2016 15:25:26 +0000 (08:25 -0700)]
Merge pull request dotnet/coreclr#6000 from gkhanna79/Arm64Nuget

Generate nuget packages for Arm64 build

Commit migrated from https://github.com/dotnet/coreclr/commit/d72f9368647e7ed64edd9ba5717284d2d0486830

8 years agoARM64: Enable a gcstress private job
Kyungwoo Lee [Wed, 29 Jun 2016 15:20:10 +0000 (08:20 -0700)]
ARM64: Enable a gcstress private job

Commit migrated from https://github.com/dotnet/coreclr/commit/07e9b4dd6330f90198a7fe8ed4f4293291ce9f89

8 years agoMerge pull request dotnet/coreclr#6049 from dotnet-bot/UpdateDependencies20160629051946
Gaurav Khanna [Wed, 29 Jun 2016 15:16:48 +0000 (08:16 -0700)]
Merge pull request dotnet/coreclr#6049 from dotnet-bot/UpdateDependencies20160629051946

Updating External dependencies to beta-24229-00

Commit migrated from https://github.com/dotnet/coreclr/commit/c29207935c690ef639fa00b51af3b2e43892a59f

8 years agoMerge pull request dotnet/coreclr#6053 from kyulee1/ilrtrel
Kyungwoo Lee [Wed, 29 Jun 2016 14:52:37 +0000 (07:52 -0700)]
Merge pull request dotnet/coreclr#6053 from kyulee1/ilrtrel

Relase build only for ilasm round trip tests in CI

Commit migrated from https://github.com/dotnet/coreclr/commit/5bbd586e9aadde24f019f9f5b9f6c929c54a3a61

8 years agoRelase build only for ilasm round trip tests in CI
Kyungwoo Lee [Wed, 29 Jun 2016 14:41:41 +0000 (07:41 -0700)]
Relase build only for ilasm round trip tests in CI

This eliminates spurious job display in Jenkins web which is unnecessary.

Commit migrated from https://github.com/dotnet/coreclr/commit/899e9ef43b625920dd224e02ad534ad5334d9fbd

8 years agoMerge pull request dotnet/coreclr#5950 from wateret/fix-5949
Kyungwoo Lee [Wed, 29 Jun 2016 13:43:15 +0000 (06:43 -0700)]
Merge pull request dotnet/coreclr#5950 from wateret/fix-5949

[ARM/Linux] Disable unittest `_il_reltypeEqualOp`

Commit migrated from https://github.com/dotnet/coreclr/commit/9516128e4151504009962750c300a9265fab378e

8 years agoRemove unittests that contain undefined behaviour
Hanjoung Lee [Wed, 29 Jun 2016 05:55:37 +0000 (14:55 +0900)]
Remove unittests that contain undefined behaviour

Following tests contain undefined behaviour.
(Casting double to an integer type for a value that cannot be represent as the integer type.)

- JIT.Methodical.casts.ilseq._il_reltypeEqualOp._il_reltypeEqualOp
- JIT.Regression.CLR-x86-JIT.V1-M10.b08107

Commit migrated from https://github.com/dotnet/coreclr/commit/13e41af728d14f517cf61cf0eb0ba981e3f823e3