Re:The original .NET garbage collector was written in Common...
by merb on Tuesday May 26, 2020 @06:19PM
(#23317114)
btw. you can't compare the two. dotnet works way closer to the metal than java does. that's due to better interop and also since span exists, which also has more/better control over unmanaged memory in a more accessible way.
also struct's exists which eliminates a lot of problems when memory constrained.
example most java date objects are classes and use way more memory than any available object/library in dotnet (which are using structs)
Edit: and by this I don't mean that one of us is wrong. I mean that it might depend more on the application and its memory allocation patterns than the runtime.