Explorar o código

Collapse test for a memchunk belonging to a handle

Samuel Thibault %!s(int64=4) %!d(string=hai) anos
pai
achega
66ccb2bef1
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/datawizard/memalloc.c

+ 1 - 2
src/datawizard/memalloc.c

@@ -490,10 +490,9 @@ static size_t do_free_mem_chunk(struct _starpu_mem_chunk *mc, unsigned node)
 	{
 		_starpu_spin_checklocked(&handle->header_lock);
 		mc->size = _starpu_data_get_alloc_size(handle);
-	}
 
-	if (mc->replicate)
 		mc->replicate->mc=NULL;
+	}
 
 	/* free the actual buffer */
 	size = free_memory_on_node(mc, node);