Forráskód Böngészése

Collapse test for a memchunk belonging to a handle

Samuel Thibault 4 éve
szülő
commit
66ccb2bef1
1 módosított fájl, 1 hozzáadás és 2 törlés
  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);
 		_starpu_spin_checklocked(&handle->header_lock);
 		mc->size = _starpu_data_get_alloc_size(handle);
 		mc->size = _starpu_data_get_alloc_size(handle);
-	}
 
 
-	if (mc->replicate)
 		mc->replicate->mc=NULL;
 		mc->replicate->mc=NULL;
+	}
 
 
 	/* free the actual buffer */
 	/* free the actual buffer */
 	size = free_memory_on_node(mc, node);
 	size = free_memory_on_node(mc, node);