Skip to content

Comments

Allow nibblemap deletes to be no-op#109976

Merged
max-charlamb merged 2 commits intodotnet:mainfrom
max-charlamb:fix-nibble-assert
Nov 20, 2024
Merged

Allow nibblemap deletes to be no-op#109976
max-charlamb merged 2 commits intodotnet:mainfrom
max-charlamb:fix-nibble-assert

Conversation

@max-charlamb
Copy link
Member

@max-charlamb max-charlamb commented Nov 19, 2024

Fixes #109970

#108939 changed nibblemap delete function to assert that the delete operation occurred on a valid nibble. Testing with the AltJit triggered the revert path (BackoutJitData) which attempts to delete the nibblemap entry which is never set.

In other paths the nibblemap entry has already been set, therefore I am modifying the assert to allow no-op deletes. This should be the same behavior as before #108939.

@ghost ghost added the area-VM-coreclr label Nov 19, 2024
@max-charlamb max-charlamb marked this pull request as ready for review November 19, 2024 19:44
@steveisok steveisok self-requested a review November 19, 2024 20:07
@max-charlamb max-charlamb merged commit 0b8addb into dotnet:main Nov 20, 2024
mikelle-rogers pushed a commit to mikelle-rogers/runtime that referenced this pull request Dec 10, 2024
* allow no-op deletes

* improve comment
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2024
@max-charlamb max-charlamb deleted the fix-nibble-assert branch June 10, 2025 16:37
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.

Hitting assert in NibbleMapDeleteUnlocked

3 participants