瀏覽代碼

[Pal/Linux-SGX] Fix comment on VMA list heap_vma

Previously, the comment incorrectly stated that the heap_vma list tracks
free regions. In fact, this list tracks used/reserved regions.
Thomas Knauth 4 年之前
父節點
當前提交
17091642c9
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Pal/src/host/Linux-SGX/enclave_pages.c

+ 1 - 2
Pal/src/host/Linux-SGX/enclave_pages.c

@@ -12,8 +12,7 @@ static unsigned long pgsz = PRESET_PAGESIZE;
 void * heap_base;
 static uint64_t heap_size;
 
-/* This list keeps heap_vma structures of free regions
- * organized in DESCENDING order.*/
+/* This list keeps heap_vma structures of used/reserved regions organized in DESCENDING order.*/
 DEFINE_LIST(heap_vma);
 struct heap_vma {
     LIST_TYPE(heap_vma) list;