public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-11] nvptx: remove erroneous stack deletion
@ 2021-05-13 16:19 Kwok Yeung
  0 siblings, 0 replies; only message in thread
From: Kwok Yeung @ 2021-05-13 16:19 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d71d7ccaa67fc0000ac5ff33ba48ddee9b48284b

commit d71d7ccaa67fc0000ac5ff33ba48ddee9b48284b
Author: Andrew Stubbs <ams@codesourcery.com>
Date:   Tue Feb 23 21:35:08 2021 +0000

    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.

Diff:
---
 libgomp/plugin/plugin-nvptx.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c
index 23573416a12..96f2c13a191 100644
--- a/libgomp/plugin/plugin-nvptx.c
+++ b/libgomp/plugin/plugin-nvptx.c
@@ -1412,8 +1412,6 @@ GOMP_OFFLOAD_alloc (int ord, size_t size)
   ptx_dev->free_blocks = NULL;
   pthread_mutex_unlock (&ptx_dev->free_blocks_lock);
 
-  nvptx_stacks_free (ptx_dev, false);
-
   while (blocks)
     {
       tmp = blocks->next;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-13 16:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 16:19 [gcc/devel/omp/gcc-11] nvptx: remove erroneous stack deletion Kwok Yeung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).