]> git.ipfire.org Git - thirdparty/gcc.git/commit
nvptx: remove erroneous stack deletion
authorAndrew Stubbs <ams@codesourcery.com>
Tue, 23 Feb 2021 21:35:08 +0000 (21:35 +0000)
committerAndrew Stubbs <ams@codesourcery.com>
Tue, 2 Mar 2021 14:16:14 +0000 (14:16 +0000)
commit9319b68ccb43bdb371e78983b74c76dcb49a6e1f
treec9ffa92c046914171d1f37ffeff0010a271a0515
parent0271aca6402a77f62061880362a56cf57f3ea6b1
nvptx: remove erroneous stack deletion

The stacks are not supposed to be deleted every time memory is allocated, only
when there is insufficient memory.  The unconditional call here seems to be in
error, and is causing a costly reallocation of the stacks before every launch.

libgomp/

* plugin/plugin-nvptx.c (GOMP_OFFLOAD_alloc): Remove early call to
nvptx_stacks_free.
libgomp/plugin/plugin-nvptx.c