Commit 5b0c3677 authored by Philippe Gerum's avatar Philippe Gerum

copperplate/heapobj-pshared: fix memory limit

parent 14474634
......@@ -226,7 +226,7 @@ static int init_heap(struct shared_heap *heap, void *base,
extent->bitmap = __shoff(base, mem) + bmapoff;
extent->bitwords = bmapwords;
extent->membase = __shoff(base, mem) + metasz;
extent->memlim = extent->membase + size;
extent->memlim = __shoff(base, mem) + size;
init_extent(base, extent);
__list_append(base, &extent->link, &heap->extents);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment