fix GC_VISIT_V2 completely not respecting -M
This commit is contained in:
parent
1c1da8fdfe
commit
bcc19c11fd
@ -113,8 +113,7 @@ static bool isCmd(char* s, char** e, const char* cmd) {
|
|||||||
")clearImportCache",
|
")clearImportCache",
|
||||||
")kb",
|
")kb",
|
||||||
")theme dark", ")theme light", ")theme none",
|
")theme dark", ")theme light", ")theme none",
|
||||||
")exit",
|
")exit", ")off",
|
||||||
")off",
|
|
||||||
")vars",
|
")vars",
|
||||||
")gc", ")gc off", ")gc on",
|
")gc", ")gc off", ")gc on",
|
||||||
")internalPrint ",
|
")internalPrint ",
|
||||||
|
|||||||
@ -52,16 +52,15 @@ static NOINLINE void* BN(allocateMore)(i64 bucket, u8 type, i64 from, i64 to) {
|
|||||||
#if GC_VISIT_V2
|
#if GC_VISIT_V2
|
||||||
if (!BN(allocMore_rec)) {
|
if (!BN(allocMore_rec)) {
|
||||||
gc_forceGC();
|
gc_forceGC();
|
||||||
alloc_rec:;
|
|
||||||
BN(allocMore_rec) = true;
|
BN(allocMore_rec) = true;
|
||||||
|
alloc_rec:;
|
||||||
void* r = BN(allocL)(bucket, type);
|
void* r = BN(allocL)(bucket, type);
|
||||||
BN(allocMore_rec) = false;
|
BN(allocMore_rec) = false;
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
BN(allocMore_rec) = false;
|
BN(allocMore_rec) = false;
|
||||||
#else
|
|
||||||
thrOOM();
|
|
||||||
#endif
|
#endif
|
||||||
|
thrOOM();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if NO_MMAP
|
#if NO_MMAP
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user