Граф коммитов

7959 Коммитов

Автор SHA1 Сообщение Дата
Jan Kotas 0fddc62a91 Disable outdates StringBuilder test 2018-10-25 11:30:07 -07:00
Petr Onderka 14ca347537 Avoid comparing capacity in StringBuilder.Equals (dotnet/coreclr#20567)
* Avoid comparing capacity in StringBuilder.Equals

* Disabled corefx StringBuilder test

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-25 11:30:07 -07:00
Thomas Schreiner dbd34f343c Fix comment Style (dotnet/coreclr#20604)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-25 11:30:07 -07:00
Stephen Toub e4ec1e8394 Use IThreadPoolWorkItem in ConcurrentExclusiveSchedulerPair (#20513)
ConcurrentExclusiveSchedulerPair exposes two TaskSchedulers, one for concurrent processing and one for exclusive processing, such that any tasks scheduled are executed in a corresponding fashion.  CESP does that by itself scheduling workers to an underlying scheduler, and those workers in turn process the queued tasks.  Today this always queues those workers as Tasks, but if the underlying scheduler is TaskScheduler.Default (aka the thread pool), we can avoid per-worker allocations by using the new UnsafeQueueUserWorkItem overload that takes an IThreadPoolWorkItem, and just queueing the same worker object over and over and over.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-25 11:30:07 -07:00
Ben Adams 13210a58bc Avoid implicit long casts in uint compares (dotnet/coreclr#20511)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-25 09:18:27 -07:00
Tarek Mahmoud Sayed 8562ddc4de Avoid having DateTime.TryParse throwing (dotnet/coreclr#20587)
* Avoid having DateTime.TryParse throwing

There are some cases during the parsing which will require adding ticks to the DateTime object we are creating during the parsing.
DateTime.AddTicks can throw which will make DateTime.TryParse fail with throwing instead of just returning false.

The fix here is to avoid throwing in the first place and let DateTime.TryParse return false on such failures.

* Remove the invalid link

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-25 09:18:27 -07:00
Jan Kotas 6168a25a31 Implement RuntimeAssembly.IsCollectible 2018-10-25 06:45:38 -07:00
John Salem 61b558d957 Add IsCollectible property to Assembly and necessary backing functions (#20574)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-25 06:45:38 -07:00
Tarek Mahmoud Sayed 54e0573f14 Get the real update for Unicode 11 data (dotnet/coreclr#20589)
In the PR #20529 we have used the old existing data when we moved the file CharunicodeInfoData.cs to shared folder.
This change is to restore the actual updated file.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-24 21:46:01 -07:00
Tarek Mahmoud Sayed 5603ffb46c Fix using only the shared CharUnicodeInfoData.cs 2018-10-24 17:11:03 -07:00
Tarek Mahmoud Sayed c2f468598f Update Unicode data to version 11 (dotnet/coreclr#20529)
* Update Unicode data to version 11

* Move CharUnicodeInfoData.cs to the hsared folder

* Delete un-needed file

* Disable the failed test

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-24 17:11:03 -07:00
Michal Strehovský adefdef78d Improve generic virtual method resolution FailFast message 2018-10-24 05:31:06 -07:00
Michal Strehovský 79515828aa Fix reflection-rooting of generic virtual methods
Referencing a generic virtual method from RD.XML didn't result in it being tracked as a generic virtual method in the dependency system (in fact, Debug version of the compiler was hitting an assert because we tried to track it as a non-virtual method).
2018-10-24 05:31:06 -07:00
Jan Kotas 028325b8e2 Delete duplicate CoreFX tests (dotnet/coreclr#20532)
Contributes to https://github.com/dotnet/coreclr/issues/12782

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-24 05:29:26 -07:00
Ben Adams b894cd1979 Additionally Vectorize string.IndexOfAny for value lengths 2,3,4,5 (#19790)
* Vectorize string.IndexOfAny

* Vectorize string.IndexOfAny [4,5]

* Feedback

* Call order preference

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-23 13:25:56 -07:00
Maryam Ariyan d55dc96668 Refactor Debug, move ShowDialog and Write to DebugProvider
- this commit has the non-shared corert changes
2018-10-23 11:29:26 -07:00
Maryam Ariyan 155b6333c7 Adding DebugProvider to help override Write and ShowDialog behavior (#20419)
* Adding DebugProvider to help override Dialog Write and ShowDialog behavior.

- New SetProvider returns previous DebugProvider while exchanging to new one
- Will keep the s_WriteCore delegates for tests until the next PR to fix indentation is merged

Related to: dotnet/corefx#3708, dotnet/corefx#31003

* Move ShowDialog and Write logic from Debug to DebugProvider

* disabling DebugTests

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-23 11:29:26 -07:00
Koundinya Veluri af68631634 Add MethodImplAttributes.AggressiveOptimization (dotnet/coreclr#20274)
API review: https://github.com/dotnet/corefx/issues/32628

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-21 19:01:24 +02:00
Michal Strehovský 495dcf45ae
Limit exposure to delegate DynamicInvoke thunk (#6472)
The DynamicInvoke thunk is special because they're shared with reflection invoke. They're not instance methods on delegate like the rest of the invoke thunks.

I noticed we were accidentally reporting them from `GetAllMethods` on delegate types even though they're not instance methods. Moving the handling of these to `DelegateThunks` to prevent exposure from places that don't expect them and limit the special casing to a single file (DelegateThunks was already special casing them).
2018-10-19 14:17:01 +01:00
Michal Strehovský 0d70dcf13d Do not filter InternalCall and RuntimeImplemented methods (#6473)
This fixes a regression reported in Gitter. This code path has been wrong for a while, but it was masked behind some other code I deleted last week.

InternalCall and RuntimeImplemented methods are not very different from regular methods in CoreRT (we provide IL for some of them). Filtering them out here meant that we lost some generic tracking (shadow methods) for `Invoke` methods on delegates.
2018-10-18 20:57:17 -07:00
Konstantin Baladurin 33e81edea4 CppCodeGen: fix emitting code for object node (#6469)
This patch fixes problem with missing 1-byte data fields.
2018-10-18 20:56:00 -07:00
Stephen Toub 39d7c75e69 Port "Add public IThreadPoolWorkItem" from coreclr 2018-10-18 17:14:27 -04:00
Stephen Toub 5396e04da2 Add public IThreadPoolWorkItem (dotnet/coreclr#20387)
- Changes the internal IThreadPoolWorkItem to be public, removing the legacy ThreadAbortException from it (which was specific to Task, anyway).
- Removes the IThreadPoolWorkItem implementation from Task, so that devs can't write code like `ThreadPool.UnsafeQueueUserWorkItem(task);` or `((IThreadPoolWorkItem)task).Execute();`, both of which could end up doing a variety of bad things that could show up in a variety of ways, some discoverable, some less so.
- Adds an internal UnsafeQueueUserWorkItemInternal that takes object so that it can be passed either an IThreadPoolUserWorkItem or a Task,
- Changes the ThreadPool's queues to be in terms of object instead of IThreadPoolWorkItem
- Changes the dispatch loop to type check for IThreadPoolWorkItem or Task so that both remain supported.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-18 17:14:27 -04:00
Stephen Toub 7cbd980a41 Revert List.InsertRange changes from #8306 (dotnet/coreclr#20471)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-18 04:53:40 -07:00
Jeff Greene fe539cc857 Add null checking for callvirt (#6383)
* implemented null ref checks for callvirt
2018-10-17 19:41:25 -07:00
Konstantin Baladurin ccc738e86d ILImporter: fix import conv_i1 opcode (#6466) 2018-10-17 07:03:54 -07:00
Stephen Toub 6e9c33c283 Fix behavior of TextWriter.Write with null StringBuilder (#20451)
With other overloads (including Write(object)) if you passed null it just wouldn't write anything out, so we shouldn't throw for the StringBuilder overload either.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-16 20:40:56 -07:00
Jan Kotas 0444608c0b Optimize Span.GetPinnableReference (dotnet/coreclr#20428)
* Optimize Span.GetPinnableReference

* CR feedback

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-15 23:18:17 -07:00
Levi Broderick 825687186c Fix code comments in Utf16Utility (dotnet/coreclr#20425)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-15 20:02:16 -07:00
jbhensley a7508de324 Fix "Non-static method requires a target" caused by trying to access the HasValue property of a nullable type through reflection when the value is null. (#20350)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-15 20:02:16 -07:00
Egor Chesakov 5116b4d9e4 Implement LeadingSignCount and LeadingZeroCount ARM64 Base Intrinsics (#20306)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-15 20:02:16 -07:00
Levi Broderick 56e250b8a9 Improve performance of OrdinalIgnoreCase hash code calculation (#20309)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-15 20:02:16 -07:00
Jan Kotas 12706a1c8c Include CppCodeGen headers in the IL Compiler package (#6457)
Fixes #6456
2018-10-15 17:57:06 -07:00
Michal Strehovský dec3014a97
Merge pull request #6451 from dotnet/nmirror
Merge master to nmirror
2018-10-15 17:56:35 -07:00
Michal Strehovský 6da2e8043f
Merge pull request #6455 from dotnet/master
Merge master to nmirror
2018-10-15 09:36:30 -07:00
Michal Strehovský f41fd92102
Merge pull request #6450 from dotnet-bot/from-tfs
Merge changes from TFS
2018-10-14 15:56:45 -07:00
Michal Strehovsky 5f0e4de69b Delete unnecessary generic virtual method tracking
[tfs-changeset: 1717152]
2018-10-14 15:09:43 -07:00
Michal Strehovský 04a4583494 Update RyuJIT (#6448) 2018-10-13 00:02:08 -07:00
Jan Kotas 8db87a4648 Update buildtools 2018-10-11 22:23:51 -07:00
Tanner Gooding 0e939d540d Changing Number.BigInteger and Number.NumberBuffer to directly use fixed-sized buffers (#20371)
* Moving Number.BigInteger to directly use a `fixed-sized buffer`

* Moving Number.NumberBuffer to directly use a `fixed-sized buffer`

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-11 22:23:51 -07:00
Jan Kotas 8e872a843c
Merge pull request #6445 from dotnet/nmirror
Merge nmirror to master
2018-10-11 18:20:57 -07:00
Michal Strehovský dd0ac9e3a4
Merge pull request #6444 from dotnet-bot/from-tfs
Merge changes from TFS
2018-10-11 16:21:08 -07:00
Michal Strehovsky 0d29a39f24 Clean up `ShadowConcreteMethod` usage
* `ShadowConcreteMethod` should only depend on things a non-canonical method body would depend - kick out GVM tracking and dictionary rooting (we don't root owning EETypes either).
* Remove a couple unnecessary references to `ShadowConcreteMethod` and make places more explicit on what they actually depend on

[tfs-changeset: 1717010]
2018-10-11 15:53:56 -07:00
Michal Strehovský 74e5ed9e1d
Implement HandleRef marshalling (#6395)
Contributes to #2570.
2018-10-11 07:40:32 -07:00
Jan Kotas 6ca5e5769b Fix build break 2018-10-11 00:09:32 -07:00
Stephen Toub 181c31fd89 Add CancellationToken.UnsafeRegister (dotnet/coreclr#20342)
Expose an equivalent to Register that doesn't flow ExecutionContext and thus doesn't capture AsyncLocals.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-11 00:09:32 -07:00
Jan Kotas 494efac2fc Fix build breaks 2018-10-10 22:58:24 -07:00
Fei Peng a4b88fee1d Explode generic Intel hardware intrinsic on all the supported types
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-10-10 22:58:24 -07:00
Michal Strehovský 538031c0b9 Delete RuntimeImplementedCustomAttributeData class (#6441)
This is a middle man class that was supposed to make access to `AttributeType` more efficient for `CustomAttributeData` descendants deriving from it. After #6288 this should no longer be necessary.
2018-10-10 22:56:02 -07:00
Michal Strehovský d188cfe0e8
Merge pull request #6439 from dotnet/master
Merge master to nmirror
2018-10-10 10:05:55 -07:00