]> 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)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 21 Jun 2022 13:11:33 +0000 (14:11 +0100)
commit86a04ff9b51ccf512ccb7578497100888f5f9925
tree4dca3db50e1eb8c2f4eb1c60968aed2c4426406a
parent87af8c58d3141bc62180770060f98a2a3583bb48
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/ChangeLog.omp
libgomp/plugin/plugin-nvptx.c