Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
remove exit(1) call from alloc_pages on heap expansion failure
Browse files Browse the repository at this point in the history
  • Loading branch information
misson20000 committed Mar 16, 2018
1 parent 93a77c8 commit 6bfbf47
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/alloc_pages.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ static void *ap_alloc_pages(size_t min, size_t max, size_t *actual) {
while(heap_size > original_heap_size &&
heap_size > 0x20000 &&
(r = svcSetHeapSize(&heap, heap_size)) != RESULT_OK) {
exit(1);
heap_size-= 0x20000;
AP_DEBUG(" - growing to 0x%lx (previously failed with 0x%x)\n", heap_size, r);
}
Expand Down

0 comments on commit 6bfbf47

Please sign in to comment.