Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove DenseSet::IteratorBase::TraverseApply #4170

Merged
merged 1 commit into from
Nov 23, 2024
Merged

fix: remove DenseSet::IteratorBase::TraverseApply #4170

merged 1 commit into from
Nov 23, 2024

Conversation

kostasrim
Copy link
Contributor

reverts #4019 because:

  1. DefragStrMap2 calls ReallocIfNeeded() on each StringMap::iterator and the traversal also includes all of the elements of a all links. This TraverseApply just adds extra iterations, if the iterator passed is link.
  2. Suspect to cause the crash/regrssion in crash in dense set defragmentation #4167

I am still not sure if TraverseApply actually causes the crash described in (2)

@kostasrim kostasrim self-assigned this Nov 22, 2024
@kostasrim
Copy link
Contributor Author

@romange I can also disable the whole defrag logic for string map until we are sure what the root cause is. It's your call

@kostasrim kostasrim requested a review from romange November 22, 2024 19:21
@romange
Copy link
Collaborator

romange commented Nov 23, 2024

what version does this revert correspond to?

@kostasrim
Copy link
Contributor Author

what version does this revert correspond to?

The PR that introduced this change is part of 1.25. Therefore, by removing it we get the behavior of 1.24

@romange romange merged commit a012539 into main Nov 23, 2024
9 checks passed
@romange romange deleted the kpr3 branch November 23, 2024 16:21
romange pushed a commit that referenced this pull request Nov 24, 2024
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.

2 participants