Use std::malloc because Genode lacks std::aligned_alloc.

This commit is contained in:
Michael Müller
2022-07-06 18:08:09 +02:00
parent 25bd355d2f
commit b8efdaa79a

View File

@@ -33,7 +33,7 @@ public:
static void *allocate_cache_line_aligned(const std::size_t size)
{
/* TODO: Use component's heap, as std::aligned_alloc might not be thread-safe */
return std::aligned_alloc(64U, alignment_helper::next_multiple(size, 64UL));
return std::malloc(alignment_helper::next_multiple(size, 64UL));
}
/**