diff options
author | Erik Corry <erikcorry@google.com> | 2016-03-23 00:23:18 +0100 |
---|---|---|
committer | Erik Corry <erikcorry@google.com> | 2016-03-23 21:22:39 +0100 |
commit | 6d0122b98e43907639fb4699a3727da2c6a5d662 (patch) | |
tree | 84decc1e69429444a94f5eb78de9643685da2321 /external | |
parent | 68447dbeca3f614946ea6b19cefacb9481bc8195 (diff) | |
download | common-6d0122b98e43907639fb4699a3727da2c6a5d662.tar.gz |
[heap] Add API used by Dartino to get arena list
Diffstat (limited to 'external')
-rw-r--r-- | external/lib/heap/dlmalloc/dlmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |