Explorar el Código

Make sure we don't flush a memory chunk which is the last copy of some data.

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

+ 1 - 0
src/datawizard/memalloc.c

@@ -185,6 +185,7 @@ static void transfer_subtree_to_node(starpu_data_handle_t handle, unsigned src_n
 					last = i;
 				}
 			}
+			STARPU_ASSERT(cnt > 0);
 
 			if (cnt == 1)
 				handle->per_node[last].state = STARPU_OWNER;