Skip to content

Mirror changes from mono/corefx,coreclr#17777

Merged
vargaz merged 5 commits intomono:masterfrom
filipnavara:pr-17775
Nov 12, 2019
Merged

Mirror changes from mono/corefx,coreclr#17777
vargaz merged 5 commits intomono:masterfrom
filipnavara:pr-17775

Conversation

@filipnavara
Copy link
Contributor

Fix up of #17775

jkotas and others added 5 commits November 11, 2019 18:20
* Rewrite the rest of the array non-generic fast paths in C#

* Add missing resource string

* Use CorElementType and handle native ints to match the unmanaged implementation

* Avoid try pattern for Sort and Reverse

* Match the native implementation more closely

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
* Rewrite Enum.CompareTo in C#

* Handle floating point too for match the existing native implementation

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
* Remove unused argument from GetRegionDisplayName

* Address race conditions in CultureData

While most of the race conditions in this file are benign, in these cases, a thread could end up returning an intermediate value due to multiple potential writes to the same field.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
…) (#27716)

Will enable the rule in corefx once these changes have propagated.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>

#ifdef ENABLE_NETCORE
gint32
ves_icall_System_Array_GetCorElementTypeOfElementType (MonoArrayHandle arr, MonoError *error)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally these should be intrinsics, or at least handle-less. I believe @EgorBo played with this one earlier.

@vargaz
Copy link
Contributor

vargaz commented Nov 12, 2019

@monojenkins build failed

@vargaz vargaz merged commit bd278dd into mono:master Nov 12, 2019
ManickaP pushed a commit to ManickaP/runtime that referenced this pull request Jan 20, 2020
* Rewrite the rest of the array non-generic fast paths in C# (mono/mono#27703)

* Rewrite the rest of the array non-generic fast paths in C#

* Add missing resource string

* Use CorElementType and handle native ints to match the unmanaged implementation

* Avoid try pattern for Sort and Reverse

* Match the native implementation more closely

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>

* Rewrite Enum.CompareTo in C# (dotnet/coreclrmono/mono#27792)

* Rewrite Enum.CompareTo in C#

* Handle floating point too for match the existing native implementation

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>

* Remove unused argument from GetRegionDisplayName (dotnet/coreclrmono/mono#27806)

* Remove unused argument from GetRegionDisplayName

* Address race conditions in CultureData

While most of the race conditions in this file are benign, in these cases, a thread could end up returning an intermediate value due to multiple potential writes to the same field.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>

* Fix StyleCop rule SA1129 ("Do not use default value type constructor") (mono/mono#27716)

Will enable the rule in corefx once these changes have propagated.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>

* Remove non-shared Enum.CompareTo/InternalCompareTo implementation, add new Array icalls used by shared code


Commit migrated from mono/mono@bd278dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants