AMD GCN libgomp plugin queue-full condition locking fix
authorJulian Brown <julian@codesourcery.com>
Wed, 20 Nov 2019 17:56:30 +0000 (17:56 +0000)
committerJulian Brown <jules@gcc.gnu.org>
Wed, 20 Nov 2019 17:56:30 +0000 (17:56 +0000)
commitd88b27daa164c87af447cc2243bf18d9a3543ff3
tree233fabd58e81614607b30bf5495b268343080f72
parent8d2f4ddfd70f2ad9829cdc404e9c382f6fc9b072
AMD GCN libgomp plugin queue-full condition locking fix

libgomp/
* plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
aq->mutex here.
(queue_push_launch): Lock aq->mutex before calling
wait_for_queue_nonfull.
(queue_push_callback): Likewise.
(queue_push_asyncwait): Likewise.
(queue_push_placeholder): Likewise.

Reviewed-by: Andrew Stubbs <ams@codesourcery.com>
From-SVN: r278517
libgomp/ChangeLog
libgomp/plugin/plugin-gcn.c