There's a useful warning in the performance section on string interning on MSDN:
the memory allocated for interned String objects is not likely be released until the common language runtime (CLR) terminates.
But: when does the CLR terminate?
CLR manages the execution of programs written in different supported languages. CLR transforms source code into a form of bytecode known as Common Intermediate Language (CIL). At run time, CLR handles the execution of the CIL code.
The Common Language Runtime (CLR) is programming that manages the execution of programs written in any of several supported languages, allowing them to share common object-oriented classes written in any of the languages. It is a part of Microsoft's . NET Framework.
Common Language Runtime (CLR) manages the execution of . NET programs. The just-in-time compiler converts the compiled code into machine instructions. This is what the computer executes.
The simple answer is: the CLR terminates when the host (process) terminates.
Also, there is a default AppDomain (that is not accessible). This AppDomain would continue to exist even if your AppDomain is unloaded. This is what I think Tigran was referring to as System.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With