Description

Reproduction Steps
No stable repro, but it happens from time to time in one of my applications.
Expected behavior
GC.GetTotalMemory should always return only non-negative values
Actual behavior
GC.GetTotalMemory occasionally returns negative values
Regression?
No response
Known Workarounds
No response
Configuration
Windows 11 x64, .NET SDK 8.0.204, net8.0
Other information
If anyone can advise on how to diagnose/debug this issue, I can collect additional information when it happens next time.
Description
Reproduction Steps
No stable repro, but it happens from time to time in one of my applications.
Expected behavior
GC.GetTotalMemoryshould always return only non-negative valuesActual behavior
GC.GetTotalMemoryoccasionally returns negative valuesRegression?
No response
Known Workarounds
No response
Configuration
Windows 11 x64, .NET SDK 8.0.204,
net8.0Other information
If anyone can advise on how to diagnose/debug this issue, I can collect additional information when it happens next time.