Skip to content

Commit

Permalink
Update docs/core/whats-new/dotnet-8.md
Browse files Browse the repository at this point in the history
Co-authored-by: Genevieve Warren <[email protected]>
  • Loading branch information
cshung and gewarren authored Oct 13, 2023
1 parent 5413eee commit f4a9af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/core/whats-new/dotnet-8.md
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ For more information, see the [Announcing .NET 8 RC 2 blog post](https://devblog
## Garbage collection

.NET 8 adds a capability to adjust the memory limit on the fly. This is useful in cloud-service scenarios, where demand comes and goes. To be cost-effective, services should scale up and down on resource consumption as the demand fluctuates. When a service detects a decrease in demand, it can scale down resource consumption by reducing its memory limit. Previously, this would fail because the garbage collector (GC) was unaware of the change and might allocate more memory than the new limit. With this change, you can call the `RefreshMemoryLimit` API to update the GC with the new memory limit.
.NET 8 adds a capability to adjust the memory limit on the fly. This is useful in cloud-service scenarios, where demand comes and goes. To be cost-effective, services should scale up and down on resource consumption as the demand fluctuates. When a service detects a decrease in demand, it can scale down resource consumption by reducing its memory limit. Previously, this would fail because the garbage collector (GC) was unaware of the change and might allocate more memory than the new limit. With this change, you can call the <xref:System.GC.RefreshMemoryLimit> API to update the GC with the new memory limit.

There are some limitations to be aware of:

Expand Down

0 comments on commit f4a9af9

Please sign in to comment.