attempted to support large page in win32. WIP.

This commit is contained in:
hyunghwan.chung
2018-11-27 09:56:59 +00:00
parent 45633570cd
commit f17ec84b9c
3 changed files with 88 additions and 6 deletions

View File

@ -88,7 +88,9 @@ static void fill_bigint_tables (moo_t* moo)
static void* alloc_heap (moo_t* moo, moo_oow_t size)
{
return MOO_MMGR_ALLOC(moo->mmgr, size);
void* ptr = MOO_MMGR_ALLOC(moo->mmgr, size);
if (!ptr) moo_seterrnum (moo, MOO_ESYSMEM);
return ptr;
}
static void free_heap (moo_t* moo, void* ptr)