Skip to content

Conversation

@adamsitnik
Copy link
Member

fixes #75792

@ghost
Copy link

ghost commented Sep 19, 2022

Tagging subscribers to this area: @dotnet/area-system-memory
See info in area-owners.md if you want to be subscribed.

Issue Details

fixes #75792

Author: adamsitnik
Assignees: -
Labels:

area-System.Memory

Milestone: -

@ghost ghost assigned adamsitnik Sep 19, 2022
do
{
equals = TNegator.NegateIfNeeded(Vector256.Equals(values, Vector256.LoadUnsafe(ref currentSearchSpace)));
equals = TNegator.NegateIfNeeded(Vector256.Equals(values, Vector256.LoadUnsafe(ref searchSpace, (nuint)offset)));
Copy link
Member

Choose a reason for hiding this comment

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

(nuint)offset will be a sign-extending move, so less ideal.
Either

Suggested change
equals = TNegator.NegateIfNeeded(Vector256.Equals(values, Vector256.LoadUnsafe(ref searchSpace, (nuint)offset)));
equals = TNegator.NegateIfNeeded(Vector256.Equals(values, Vector256.LoadUnsafe(ref searchSpace, (uint)offset)));

or declare as nint offset (then the cast is just a mov instead of movsxd).

@adamsitnik
Copy link
Member Author

Closing in favour of #75857 which is better

@adamsitnik adamsitnik closed this Sep 19, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GCStress crash stable repro

2 participants