mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
fix polybench memory allocations
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user