瀏覽代碼

Avoid reverting the ordering of cache items

Samuel Thibault 11 年之前
父節點
當前提交
0bb629fed8
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
 			}