Explorar el Código

Avoid reverting the ordering of cache items

Samuel Thibault hace 11 años
padre
commit
0bb629fed8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/datawizard/memalloc.c

+ 1 - 1
src/datawizard/memalloc.c

@@ -561,7 +561,7 @@ static size_t flush_memchunk_cache(unsigned node, size_t reclaim)
 		if (handle)
 			if (_starpu_spin_trylock(&handle->header_lock)) {
 				/* The handle is still busy, leave this chunk for later */
-				_starpu_mem_chunk_list_push_front(busy_memchunk_cache, mc);
+				_starpu_mem_chunk_list_push_back(busy_memchunk_cache, mc);
 				continue;
 			}