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

sync: document keys of sync.Map will never be deleted #41000

Closed
wants to merge 1 commit into from

Conversation

PureWhiteWu
Copy link
Contributor

Keys of sync.Map will never be deleted, this behaviour isn't the same as the native map.
We should document this clearly.

Fixes #40999 .

Keys of sync.Map will never be deleted, this behaviour isn't the same as the native map.
We should document this clearly.

Fixes golang#40999 .
@googlebot googlebot added the cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change. label Aug 24, 2020
@gopherbot
Copy link
Contributor

This PR (HEAD: 7b211bb) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/250157 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Dave Cheney:

Patch Set 1: Code-Review-1

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/250157.
After addressing review feedback, remember to publish your drafts!

@PureWhiteWu
Copy link
Contributor Author

closed as discussed.

@PureWhiteWu PureWhiteWu deleted the patch-1 branch August 24, 2020 15:20
@lilien1010
Copy link

I think it should not change the document, we shoud change the code ,it shoud be a BUG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sync: sync.Map keys will never be garbage collected
5 participants