Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
fixup! [Pal/Linux-SGX] DONTMERGE: Initial EDMM dynamic heap implement…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
vijaydhanraj committed Apr 1, 2021
1 parent f3d1cf0 commit 8ac1a78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Pal/src/host/Linux-SGX/enclave_pages.c
Expand Up @@ -428,9 +428,10 @@ int free_enclave_pages(void* addr, size_t size) {
if (g_pal_sec.edmm_enable_heap) {
/* if range is contiguous with previous entry, update addr, size accordinlgy*/
if (free_cnt > 0 &&
(free_heap_bottom + range) == heap_ranges_to_free[free_cnt-1].addr) {
free_heap_top == heap_ranges_to_free[free_cnt-1].addr) {
heap_ranges_to_free[free_cnt-1].addr = free_heap_bottom;
heap_ranges_to_free[free_cnt-1].size += range;
assert(0);
} else {
assert(free_cnt < EDMM_HEAP_RANGE_CNT);
/* found a new non-contiguous range */
Expand Down

0 comments on commit 8ac1a78

Please sign in to comment.