From b8efdaa79ae34bf0747c8512b50c39b2ee1f4d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Wed, 6 Jul 2022 18:08:09 +0200 Subject: [PATCH] Use std::malloc because Genode lacks std::aligned_alloc. --- src/mx/memory/global_heap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mx/memory/global_heap.h b/src/mx/memory/global_heap.h index 15e1da9..e2434a3 100644 --- a/src/mx/memory/global_heap.h +++ b/src/mx/memory/global_heap.h @@ -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)); } /**