Skip to content

cmd/compile: race detector detects race with close(chan) and len(chan) [1.11 backport] #27778

Closed

Description

@randall77

Considering backporting the fix for #27070 to 1.11.

This was an issue introduced in 1.11. The race detector reported a race between close(chan) and len(chan), where previously (in 1.10) it didn't.

The spec is silent on this issue, so it's technically ok to report a race here, but consensus was that it was worth fixing. But is it worth backporting?
The fix is pretty simple. https://go-review.googlesource.com/c/go/+/135698

Activity

  1. added this to the Go1.11.1 milestone on Sep 20, 2018
  2. self-assigned this
    on Sep 20, 2018
  3. randall77 commented on Sep 25, 2018

    @randall77
    ContributorAuthor

    @andybons : What's the process for going from CherryPickCandidate to CherryPickApproved?

  4. added
    CherryPickApprovedUsed during the release process for point releases
    and removed
    CherryPickCandidateUsed during the release process for point releases
    on Sep 25, 2018
  5. andybons commented on Sep 25, 2018

    @andybons
    Member

    @randall77 someone on the OSP team reviews and marks whether it should be approved. Since @ianlancetaylor already said as much in #27070 (comment), approving...

  6. gopherbot commented on Sep 27, 2018

    @gopherbot
    Contributor

    Change https://golang.org/cl/138179 mentions this issue: [release-branch.go1.11] runtime: ignore races between close and len/cap

  7. added a commit that references this issue on Sep 27, 2018
    e535c71
  8. gopherbot commented on Sep 27, 2018

    @gopherbot
    Contributor

    Closed by merging e535c71 to release-branch.go1.11.

  9. added a commit that references this issue on Nov 30, 2018
    d16f833
  10. locked and limited conversation to collaborators on Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions