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

@ -740,6 +740,12 @@ int hcl_ignite (hcl_t* hcl)
{
hcl_oow_t i;
if (!hcl->heap)
{
hcl->heap = hcl_makeheap(hcl, hcl->_reqheapsz);
if (HCL_UNLIKELY(!hcl->heap)) return -1;
}
if (!hcl->_nil)
{
hcl->_nil = hcl_makenil(hcl);