allow hitting exactly the memory limit
This commit is contained in:
parent
574653f3fb
commit
66f37aa299
@ -44,7 +44,7 @@ static NOINLINE void* BN(allocateMore)(i64 bucket, u8 type, i64 from, i64 to) {
|
|||||||
if (gc_maybeGC(false)) goto alloc_rec;
|
if (gc_maybeGC(false)) goto alloc_rec;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (mm_heapAlloc+sz >= mm_heapMax) {
|
if (mm_heapAlloc+sz > mm_heapMax) {
|
||||||
#if ALLOC_MODE==0 && ENABLE_GC
|
#if ALLOC_MODE==0 && ENABLE_GC
|
||||||
if (!BN(allocMore_rec)) {
|
if (!BN(allocMore_rec)) {
|
||||||
gc_forceGC(false);
|
gc_forceGC(false);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user