Skip to content

Commit

Permalink
refillMetadataSpace => refillSlots
Browse files Browse the repository at this point in the history
  • Loading branch information
deadalnix committed Dec 11, 2023
1 parent e2fd8f6 commit b0118fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdlib/d/gc/base.d
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private:
Slot allocSlotImpl() {
assert(mutex.isHeld(), "Mutex not held!");

if (!refillMetadataSpace()) {
if (!refillSlots()) {
return Slot(null, 0);
}

Expand Down Expand Up @@ -174,7 +174,7 @@ private:
return block;
}

if (!refillMetadataSpace()) {
if (!refillSlots()) {
return null;
}

Expand Down Expand Up @@ -215,7 +215,7 @@ private:
return ret;
}

bool refillMetadataSpace() {
bool refillSlots() {
assert(mutex.isHeld(), "Mutex not held!");

if (availableMetadatSlots > 0) {
Expand Down

0 comments on commit b0118fe

Please sign in to comment.