소스 검색

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;
 			}