Explorar o código

- missing handle unlock in starpu_memchunk_tidy()

Olivier Aumage %!s(int64=8) %!d(string=hai) anos
pai
achega
31ce7b0254
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/datawizard/memalloc.c

+ 3 - 0
src/datawizard/memalloc.c

@@ -1014,8 +1014,11 @@ void starpu_memchunk_tidy(unsigned node)
 			if (handle->current_mode == STARPU_W)
 			{
 				if (handle->write_invalidation_req)
+				{
 					/* Some request is invalidating it anyway */
+					_starpu_spin_unlock(&handle->header_lock);
 					continue;
+				}
 
 				unsigned n;
 				for (n = 0; n < STARPU_MAXNODES; n++)