Full manual garbage collection #7957
Replies: 2 comments
-
I'd suggest opening this suggestion on the runtime repository since it doesn't affect the syntax of the language itself. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Not a language request. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be useful to have FULL manual garbage collection in .NET where the program determines when the Garbage Collector runs and to limit the collection time?
new property:
GC.Mode = GCCollectionMode.Manual or GCCollectionMode.Automatic // in addition to the methods that already exist
new method:
GC.Collect(int milliseconds) // only applicable if GC.Mode = Manual
This would allow time sensitive applications like games or video encoding / decoding engines to be written in a .NET language.
In addition the GC could also expose some memory pressure statistics to aid the program in determining when the garbage collection should be run.
Beta Was this translation helpful? Give feedback.
All reactions