fix polybench memory allocations

This commit is contained in:
Marcel Lütke Dreimann
2022-10-07 15:32:52 +02:00
parent d414436ef8
commit 2cdf032ffa

View File

@@ -399,5 +399,8 @@ void* polybench_alloc_data(unsigned long long int n, int elt_size)
val *= elt_size;
void* ret = xmalloc (val);
// unlike Linux, Genode does not ensure that allocated memory is zeroed
memset(ret, 0, val);
return ret;
}