make allocL after splitTo call skip empty bucket checking
This commit is contained in:
parent
7e4096e572
commit
4b272148f5
@ -56,6 +56,7 @@ static NOINLINE void* BN(allocateMore)(i64 bucket, u8 type, i64 from, i64 to) {
|
|||||||
c->next = 0;
|
c->next = 0;
|
||||||
vg_undef_p(c, sz);
|
vg_undef_p(c, sz);
|
||||||
BN(splitTo)(c, from, to, false);
|
BN(splitTo)(c, from, to, false);
|
||||||
|
assert(buckets[bucket]!=NULL);
|
||||||
return BN(allocL)(bucket, type);
|
return BN(allocL)(bucket, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,6 +75,7 @@ NOINLINE void* BN(allocS)(i64 bucket, u8 type) {
|
|||||||
if (from >= ALSZ) return BN(allocateMore)(bucket, type, from, to);
|
if (from >= ALSZ) return BN(allocateMore)(bucket, type, from, to);
|
||||||
}
|
}
|
||||||
BN(splitTo)(c, from, to, true);
|
BN(splitTo)(c, from, to, true);
|
||||||
|
assert(buckets[bucket]!=NULL);
|
||||||
return BN(allocL)(bucket, type);
|
return BN(allocL)(bucket, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user