Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 39c51a6

Browse files
committed
Rename: isStackGrowsDown -> isStackGrowingDown
1 parent e2d2c5f commit 39c51a6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/core/thread/osthread.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ package extern(D) void* getStackBottom() nothrow @nogc
14881488
pthread_getattr_np(pthread_self(), &attr);
14891489
pthread_attr_getstack(&attr, &addr, &size);
14901490
pthread_attr_destroy(&attr);
1491-
static if (isStackGrowsDown)
1491+
static if (isStackGrowingDown)
14921492
addr += size;
14931493
return addr;
14941494
}
@@ -1501,7 +1501,7 @@ package extern(D) void* getStackBottom() nothrow @nogc
15011501
pthread_attr_get_np(pthread_self(), &attr);
15021502
pthread_attr_getstack(&attr, &addr, &size);
15031503
pthread_attr_destroy(&attr);
1504-
static if (isStackGrowsDown)
1504+
static if (isStackGrowingDown)
15051505
addr += size;
15061506
return addr;
15071507
}

src/core/thread/threadbase.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,10 +1078,10 @@ private void scanAllTypeImpl(scope ScanAllThreadsTypeFn scan, void* curStackTop)
10781078

10791079
for (StackContext* c = ThreadBase.sm_cbeg; c; c = c.next)
10801080
{
1081-
static if (isStackGrowsDown)
1081+
static if (isStackGrowingDown)
10821082
{
10831083
// NOTE: We can't index past the bottom of the stack
1084-
// so don't do the "+1" if isStackGrowsDown.
1084+
// so don't do the "+1" if isStackGrowingDown.
10851085
if (c.tstack && c.tstack < c.bstack)
10861086
scan(ScanType.stack, c.tstack, c.bstack);
10871087
}

src/core/thread/types.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ version (GNU)
3737
import gcc.builtins;
3838

3939
version (GNU_StackGrowsDown)
40-
enum isStackGrowsDown = true;
40+
enum isStackGrowingDown = true;
4141
else
42-
enum isStackGrowsDown = false;
42+
enum isStackGrowingDown = false;
4343
}
4444
else
4545
{
4646
// this should be true for most architectures
47-
enum isStackGrowsDown = true;
47+
enum isStackGrowingDown = true;
4848
}
4949

5050
package

0 commit comments

Comments
 (0)