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(container/gmap&gset): deadlock when removing values during iterating #3572

Merged
merged 4 commits into from
May 21, 2024

Conversation

LonelySally
Copy link
Member

glist与gtree的迭代器内有下标操作,如果去除锁在并发操作的情况下可能造成数组越界导致panic,因此不做变更,但需要在文档处标注说明.

@LonelySally LonelySally changed the title fix:迭代器内操作死锁 fix:迭代器迭代时在迭代器回调方法内操作数据导致死锁 May 10, 2024
@gqcn gqcn changed the title fix:迭代器迭代时在迭代器回调方法内操作数据导致死锁 container: fix deadlock when iterating values May 11, 2024
@gqcn gqcn changed the title container: fix deadlock when iterating values container: fix deadlock when removing values during iterating May 11, 2024
container/garray/garray_normal_any.go Outdated Show resolved Hide resolved
@gqcn gqcn changed the title container: fix deadlock when removing values during iterating container/gmap&gset: fix deadlock when removing values during iterating May 21, 2024
@gqcn gqcn merged commit 1b23bf4 into gogf:master May 21, 2024
23 checks passed
@gqcn gqcn changed the title container/gmap&gset: fix deadlock when removing values during iterating fix(container/gmap&gset): deadlock when removing values during iterating Jun 26, 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