allowed vmprim.alloc_heap() to create a bigger heap than requested.

enhanced the standard implementation(std.c) to attempt HUGETLB if the requested heap size is over 1/2 of the huge page size
This commit is contained in:
2021-02-09 14:54:54 +00:00
parent aa8f8fac2d
commit 1d0c7a8bbc
10 changed files with 98 additions and 78 deletions

View File

@ -918,7 +918,7 @@ typedef enum hcl_log_mask_t hcl_log_mask_t;
typedef void* (*hcl_alloc_heap_t) (
hcl_t* hcl,
hcl_oow_t size
hcl_oow_t* size /* [IN] requested size, [OUT] allocated size */
);
typedef void (*hcl_free_heap_t) (
@ -1392,6 +1392,7 @@ struct hcl_t
} log;
/* ========================= */
hcl_oow_t _reqheapsz;
hcl_heap_t* heap;
/* ========================= */