소스 검색

Fix replicate reference counting

Samuel Thibault 13 년 전
부모
커밋
b9f24287b1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/datawizard/user_interactions.c

+ 2 - 0
src/datawizard/user_interactions.c

@@ -336,6 +336,8 @@ int _starpu_prefetch_data_on_node_with_mode(starpu_data_handle handle, unsigned
 		if (!async)
 		{
 			_starpu_spin_lock(&handle->header_lock);
+			replicate->refcnt--;
+			STARPU_ASSERT(replicate->refcnt >= 0);
 			_starpu_notify_data_dependencies(handle);
 			_starpu_spin_unlock(&handle->header_lock);
 		}