Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-03-02Work around MCG bug around `ref char` marshalling (#5481)Michal Strehovský
The change in the P/invoke signature that came from CoreCLR triggers a bug in MCG on the TFS side.
2018-03-02Merge commit '3ce16d3805e1b040b5fa7bf08d943a1f4235683a' into nmirror-mergeMichal Strehovský
2018-03-02Move CoreRT specific String class bits to its own file (#5478)Marek Safar
2018-03-02CppCodeGen workaroundJan Kotas
2018-03-02Vectorize String.IndexOf(char) and String.LastIndexOf(char) (#16392)Eric Erhardt
* Vectorize String.IndexOf(char) using the same algorithm as SpanHelpers IndexOf(byte). * Respond to feedback. * Vectorize String.LastIndexOf Clean up IndexOf vectorization. Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-02Fix Adar month name in Hebrew calendar (dotnet/coreclr#16697)Tarek Mahmoud Sayed
The returned data from ICU has 6th month name as 'Adar I' and 7th month name as 'Adar' We need to adjust that in the list used with non-leap year to have 6th month as 'Adar' and 7th month as 'Adar II' note that when formatting non-leap year dates, 7th month shouldn't get used at all. Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-02Work around MCG bug around `ref char` marshalling (#5481)Michal Strehovský
The change in the P/invoke signature that came from CoreCLR triggers a bug in MCG on the TFS side.
2018-03-02Fix build breakJan Kotas
2018-03-021-base Dictionary buckets to reduce initalizationBen Adams
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-02Use EqualityComparer<TKey>.Default IntrinsicBen Adams
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-02Improve Dictionary TryInsert CQBen Adams
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-02Improve Dictionary FindEntry CQBen Adams
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-02Change several ValueTask properties to methods (dotnet/coreclr#16691)Stephen Toub
These do unsafe casts on an object, and we don't want a debugger's automatic evaluation accidentally invoking them. That means either making them methods or adding [DebuggerBrowsable(DebuggerBrowsableState.Never)], and the former seems cleaner. Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-02Move MemoryExtensions.TryGetString to MemoryMarshal and remove TryGetArray ↵Ahson Khan
(#16692) * Remove Span.NonGenerics and update leftover AsRoS -> AsSpan changes * Move MemoryExtensions.TryGetString to MemoryMarshal and remove TryGetArray * Move TryGetString to common MemoryMarshal.cs * Remove the `this` keyword, not an extension method Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-02Remove Span.NonGenerics and update leftover AsRoS -> AsSpan changes (#16689)Ahson Khan
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-02Adjust corert's System.Private.CoreLib for Stream.WriteAsync changeStephen Toub
2018-03-02Adjust System.Threading.Tasks.Extensions for IValueTaskSourceStephen Toub
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com> Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-02Improve MemoryMarshal.Cast (dotnet/coreclr#16659)mikedn
Avoid unnecessary checked and signed arithmetic. Handle special cases such as cast between same size types and from byte sized types, the JIT is unable to optimize these cases currently. Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-02Merge pull request dotnet/coreclr#16618 from stephentoub/valuetaskextensibilityStephen Toub
Implement ValueTask extensibility Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-02Remove span helpers, use mirrored PathInternal helper (#27585)Jeremy Kuhne
* Remove span helpers, use mirrored PathInternal helper Remove other unnecessary helpers (notably with Path.Join available) * Fix Unix Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com> Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-01Add back argument check for TypeForwardedFromAttribute (#16680)Jan Kotas
Fixes dotnet/corefx#27554 Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-01Fix GetPathRoot issues (dotnet/corefx#27572)Jeremy Kuhne
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com> Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-01Edits to fix conflicts in generated Vector.cs file (dotnet/coreclr#16666)Mandar Sahasrabuddhe
Fixed minor space changes and one syntax error that causes conflict between checked in Vector.cs file and the freshly auto-generated Vector.cs file. Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-01Fix ILVerification.Tests project (#5471)Julien Couvreur
* Use correct name to fetch embedded resource * Fix the test project * Use GetTypeInfo().Assembly
2018-03-01Use correct name to fetch embedded resource (#5464)Julien Couvreur
2018-03-01Merge pull request #4970 from luqunl/CA2111Luqun Lou
Add CA2111 SuppressMessage for these MSDN documented public Pointers
2018-03-01Add Path.Join() methods. (dotnet/coreclr#16561)Jeremy Kuhne
* Add Path.Join() methods. See #25536. * Address feedback and fix a couple issues now that I've got tests running correctly. * Update per final API approval * Fix Unix, remove redundant helper. * Merge and tweak join methods in GetFullPath(string, string) * Tweak again Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-03-01Tests For GetPathRoot and Enabling NormalizeDirectorySeparatorTests (#27494)Anirudh Agnihotry
Corrects its Implementation too Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com> Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-02-28Cache the results of CanCompareValueTypeBits (#5468)Michal Strehovský
This is a recursive algorithm and there's a pathological test in the CoreCLR test assets that has been timing out ever since the code was introduced. Made the cache a bit more general purpose, since I'm expecting this to be reused for more things later.
2018-02-28Add workaround for LNK4221 warning (#5463)Jan Kotas
2018-02-28Fix Project N build break (#5465)Michal Strehovský
2018-02-28Implement intrinsic call to RuntimeHelpers.InitializeArray for WASM (#5377)Blealtan
* Implement intrinsic call to InitializeArray. RuntimeHelpers.InitializeArray is implemented as a call to LLVM intrinsic llvm.memcpy.p0i8.p0i8.i32, which copies from generated global constant to provided target array. Currently the base size of the array object is hardcoded to 8, since no EEType is provided in the intrinsic call. Fix #5345. Add testing code for InitializeArray in HelloWasm. Roslyn generates RuntimeHelpers.InitializeArray for arrays of integral types with initializer of length greater or equal than 3. Here we use this feature to generate a call to RuntimeHelpers.InitializeArray for test. Catagorize array argument types in InitializeArray Differently handle vectors, multidimensional arrays and object typed arrays in InitializeArray intrinsic.
2018-02-28Bug in GetFullPath(basePath, Path) (dotnet/coreclr#16598)Anirudh Agnihotry
* GetFullPath and GetRootLength Corrected * Removed getpathroot * using span * "\\" changed to @"\" Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-02-28Event pipe guid in metadata (#16316), fixes #16105Adam Sitnik
* some refactor to remove dumplicated code in tests and make them fit 1 screen * write the failing test for no activity id * use 17, the "free slot" of TypeCode enum to represent Guid in event pipe metadata * remove the test which would not pass until new trace event is released and Event Pipe enabled for Windows * added comment to TypeCode about using the value 17 * post code review fixes (thanks @justinvp) * post code review fixes (thanks @brianrob) * refactor the rest of event pipe tests to use NetPerfFile helper Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-02-28Fix MCG ProjectN build break (#5459)Jan Kotas
2018-02-28Change new ThreadPool.QueueUserWorkItem method to be generic (#5449)Stephen Toub
2018-02-28Add missed changes to ThrowHelperahsonkhan
2018-02-28Port changes from non-shared corelib partition (throwhelper).ahsonkhan
2018-02-28Add MemoryExtensions to CoreLib along with necessary SpanHelpers (#16521)Ahson Khan
* Add MemoryExtensions to CoreLib along with necessary SpanHelpers * Make the newly added AsSpan/AsMemory into array extension methods. * Remove StringSpanHelpers.Trim * Leftover AsReadOnlySpan -> AsSpan for *Unix.cs files * Address PR feedback. * Remove duplicate methods in the Span class. * Temporarily disable AsBytes SpanBench test. * Add back AsBytes * Re-enable AsBytes SpanBench test Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-02-27Remove single-file specific MRT optimization for locating the Array classTomas Rylek
This change removes the "standalone exe mode" flag that MRT used for speeding up lookup of the Array class; the change is problematic in optional component context where MRT may end up registering several "single-file" modules. Thanks Tomas [tfs-changeset: 1689848]
2018-02-27Merge pull request #5453 from dotnet/nmirrorMichal Strehovský
Merge nmirror to master
2018-02-27Fix ProjectN build break (#5454)Michal Strehovský
2018-02-27Remove reflection in ValueType.Equals/GetHashCode (#5436)Michal Strehovský
The implementation relies on a new virtual method on `System.ValueType` that provides information about fields on a type. An override of this method is injected by the compiler when needed. This implementation is different from what Project N does (where we inject actual overrides of both methods). The CoreRT implementation is a bit more space-saving because there is only one method that does fewer things. This ends up being a 0.9% regression in size of a hello world app, but we do get some correctness with it and a potential to get the reflection stack completely out of the base hello world image (that one will be a huge win). We can get some of the regression back by: * Getting RyuJIT to generate more efficient code for the offset calculation (dotnet/coreclr#16527) * Making fewer things reflectable. We're currently generating the data for e.g. OSVERSIONINFO because it's used as a parameter in a method that is reflectable, and therefore the parameter gets boxed, and therefore it needs this data. It also drags in a fixed buffer internal type because it's a valuetype field on OSVERSIONINFO. This alone costs us 100+ bytes.
2018-02-27Avoid async method caching of a 0 decimal taskJan Kotas
Port CoreCLR #16588. This is under #if 0 in CoreRT right now, but it does not hurt to keep it in sync.
2018-02-27Fix ascii range check (dotnet/coreclr#16535)Ben Adams
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-02-26Move check for IsByRefLike to MakeArrayType (#5439)Michal Strehovský
Having a call to `IsByRefLike` in the type unifier meant that an app that uses a simple `typeof()` would require the full reflection stack to be present in the image (all of the custom attribute resolution, method resolution, etc.). This is a step towards having a more pay for play framework (a hello world EXE really should not have the full reflection stack compiled in it).
2018-02-26Typos (#5447)John Doe
* interruptbile -> interruptible * legnth -> length * neccessary -> necessary * neeed -> need * occurance -> occurrence * occuring -> occurring * otheriwse -> otherwise * Ouput -> Output * Ouput -> Output * peformed -> performed
2018-02-25Fixed NaN's GetHashCode and Equals invariant issue. (dotnet/coreclr#16551)Jan Kotas
Fix #6237 Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-02-25Fix path issues (dotnet/coreclr#16554)Jeremy Kuhne
Path tests weren't running so a few issues sneaked in. Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-02-25Return empty array if length is zero (dotnet/coreclr#16529)kasper3
* Return empty array if length is zero * Return true * Add support for portable system * Use portable span helper instead of Array.Empty * Move to end * Remove else * Return empty array if length is 0 in MemoryMarshal Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>