Skip to content

Commit 7fc191e

Browse files
Document new threading settings
Added in dotnet/runtime#110455.
1 parent 76b8518 commit 7fc191e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/core/runtime-config/threading.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ This article details the settings you can use to configure threading in .NET.
3131
| **runtimeconfig.json** | N/A | N/A |
3232
| **Environment variable** | `COMPlus_Thread_AssignCpuGroups` or `DOTNET_Thread_AssignCpuGroups` | `0` - disabled<br/>`1` - enabled |
3333

34+
## Set the size of stack for VM-created threads
35+
36+
- The default size of stack is dictated by VM and OS policies.
37+
- This setting allows overriding the default.
38+
- The specified size should be between 64 kB and 2 GB and a multiple of the natural allocation granularity of the OS.
39+
40+
| | Setting name | Values | Version introduced |
41+
| - | - | - | - |
42+
| **runtimeconfig.json** | `System.Threading.DefaultStackSize` | A decimal integer that specifies the size of stack | .NET 10 |
43+
| **Environment variable** | `DOTNET_Thread_DefaultStackSize` | A hexadecimal integer that specifies the size of stack | .NET 10 |
44+
45+
3446
## Minimum threads
3547

3648
- Specifies the minimum number of threads for the worker thread pool.

0 commit comments

Comments
 (0)