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 dangling pointer to state buffer in state registry #190

Closed
wants to merge 3 commits into from

Conversation

silvansievers
Copy link

No description provided.

Copy link
Member

@FlorianPommerening FlorianPommerening left a comment

Choose a reason for hiding this comment

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

I'm fine with the pull request as is but would prefer some minor changes. Also, since this is such a central part of the code, I'd say it needs an experiment, maybe with blind search, to see if the performance is affected. Although, we don't have much choice since we have to fix the bug.

Independent of the issue, we could use this as a starting point to discuss the refactoring that was planned anyway, where we move successor generation out of the registry. Maybe a topic for a meeting?

src/search/state_registry.cc Outdated Show resolved Hide resolved
src/search/state_registry.cc Outdated Show resolved Hide resolved
src/search/state_registry.cc Outdated Show resolved Hide resolved
Copy link
Member

@FlorianPommerening FlorianPommerening left a comment

Choose a reason for hiding this comment

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

I'm still fine with merging, as long as the experiments do not show anything to worry about.

/*
TODO: ideally, we would not modify state_data_pool here and in
insert_id_or_pop_state, but only at one place, to avoid errors like
buffer becoming a dangling pointer.
Copy link
Member

Choose a reason for hiding this comment

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

I'd add a reference to the issue here.

@silvansievers silvansievers deleted the issue1115 branch January 8, 2024 14:02
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