cmd/compile: write barrier code is sometimes preemptible when compiled with -N [1.21 backport] #61958
Labels
CherryPickApproved
Used during the release process for point releases
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
release-blocker
Milestone
When compiled with
-N
(optimizations off), the empty block on the write-barrier-disabled branch is marked as preemptible when it shouldn't be.(PCDATA of -1 is preemptible, -2 is unpreemptible).
This could lead to very rare but nasty heap corruption when compiling with optimizations off (e.g. when running with Delve).
The text was updated successfully, but these errors were encountered: