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

@ -51,10 +51,8 @@ enum hcl_server_trait_t
{
#if defined(HCL_BUILD_DEBUG)
HCL_SERVER_TRAIT_DEBUG_GC = (1 << 0),
HCL_SERVER_TRAIT_DEBUG_BIGINT = (1 << 1),
HCL_SERVER_TRAIT_DEBUG_BIGINT = (1 << 1)
#endif
HCL_SERVER_TRAIT_USE_LARGE_PAGES = (1 << 2)
};
typedef enum hcl_server_trait_t hcl_server_trait_t;