From 6d0122b98e43907639fb4699a3727da2c6a5d662 Mon Sep 17 00:00:00 2001 From: Erik Corry Date: Wed, 23 Mar 2016 00:23:18 +0100 Subject: [heap] Add API used by Dartino to get arena list --- external/lib/heap/dlmalloc/dlmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'external') diff --git a/external/lib/heap/dlmalloc/dlmalloc.c b/external/lib/heap/dlmalloc/dlmalloc.c index f13d8b9d..7034ec37 100644 --- a/external/lib/heap/dlmalloc/dlmalloc.c +++ b/external/lib/heap/dlmalloc/dlmalloc.c @@ -1669,7 +1669,7 @@ unsigned char _BitScanReverse(unsigned long *index, unsigned long mask); static inline void *mmap(size_t len) { DEBUG_ASSERT(IS_PAGE_ALIGNED(len)); - void *ptr = page_alloc(len / PAGE_SIZE); + void *ptr = page_alloc(len / PAGE_SIZE, PAGE_ALLOC_ANY_ARENA); if (!ptr) return MFAIL; return ptr; -- cgit v1.2.3