You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is really puzzling in a way that it makes me doubt of myself.
While debugging from Visual Studio in DEBUG configuration, apps don't have the same memory behavior depending on whether PublishAot is set (which shouldn't even trigger outside dotnet publish, right?) and on whether the debugger is attached.
While debugging and PublishAot isn't set, memory will keep building up like if there were memory allocations going on.
While debugging and PublisAot is set, memory doesn't build up and remains stable if we don't allocate anything.
When the same exe is run without the debugger, memory is stable no matter what. This only happens when the debugger is attached andPublishAot isn't set.
Don't know if this has something to do with some runtime analyzers?
PublishAot is set (which shouldn't even trigger outside dotnet publish, right?)
PublishAot=true modifies some feature switches so the runtime behavior is different. The goal is that the runtime behavior should be the same in debug and release (so without AOT and with AOT). It's possible that one of these affects memory behavior, but I don't know if that's the case.
Description
Hello,
This is really puzzling in a way that it makes me doubt of myself.
While debugging from Visual Studio in DEBUG configuration, apps don't have the same memory behavior depending on whether
PublishAot
is set (which shouldn't even trigger outsidedotnet publish
, right?) and on whether the debugger is attached.While debugging and
PublishAot
isn't set, memory will keep building up like if there were memory allocations going on.While debugging and
PublisAot
is set, memory doesn't build up and remains stable if we don't allocate anything.When the same exe is run without the debugger, memory is stable no matter what. This only happens when the debugger is attached and
PublishAot
isn't set.Don't know if this has something to do with some runtime analyzers?
Happens in both VS 17.13.2 and 17.12.
VS components installed:
Reproduction Steps
Debug from Visual Studio the most simple app and add/remove
PublishAot
.Expected behavior
Memory behavior should stay the same?
Actual behavior
Memory behavior should stay the same?
Regression?
No response
Known Workarounds
No response
Configuration
Tested on .NET 9.0.103, 9.0.200, and 8.0.406.
Other information
No response
The text was updated successfully, but these errors were encountered: