diff options
author | Nikhil Benesch <nikhil.benesch@gmail.com> | 2020-10-13 07:17:55 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-10-14 13:56:01 -0700 |
commit | ca56d576241c6783eb36eea526b42c4f3fbf697b (patch) | |
tree | 4c2d5a0f1dc34d4a445583b7ba349b51b2ee875e /gcc/go | |
parent | 61a43de58cb6de7212a622060500ad0a0fd94fae (diff) | |
download | gcc-ca56d576241c6783eb36eea526b42c4f3fbf697b.zip gcc-ca56d576241c6783eb36eea526b42c4f3fbf697b.tar.gz gcc-ca56d576241c6783eb36eea526b42c4f3fbf697b.tar.bz2 |
runtime: correct semaphore implementation on netbsd
NetBSD's semaphores use the underlying lighweight process mechanism
(LWP) on NetBSD, rather than pthreads. This means the m.prodcid needs
to be set to the LWP ID rather than the pthread ID in order for unpark
notifications to get sent to the right place.
Introduce a new getProcID() method that selects the correct ID for the
platform.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/261742
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 2c7a9bd..c37df37 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -6cb7b9e924d84125f21f4a2a96aa0d59466056fe +c5505c4e626fa4217911443b4db8b065855a0206 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. |