garbage-collection
Annotation or keyword to tell garbage collector of objects to remove first
There is an annotation or a开发者_如何学C keyword in Java that tells the garbage collector to remove some objects first when the memory is running out.[详细]
2023-04-07 07:35 分类:问答Is it bad practice to depend on the .NET automated garbage collector?
It\'s possible to create lots of memory-intensive objects and then abandon references to them. For example, I might want to download and operate on some data from a database, and I will do 100 separat[详细]
2023-04-06 16:04 分类:问答GarbageCollector nullifying member fields?
I am debugging some C# class (let\'s say, Foo) which has a Dispose-Finalize pattern implemented, i.e. its Finalizer is calling Dispose() in case if Dispose has not already been called.[详细]
2023-04-06 11:52 分类:问答FileChannel.write on Linux produces lots of garbage, but not on Mac
I am trying to limit the amount of garbage produced by my log library, so I coded a test to show me how much memory is FileChannel.write creating. The code below allocates ZERO memory on my Mac, but c[详细]
2023-04-06 11:01 分类:问答Creating strongreference from Weakreference
Following is a sample code of our application, where we are trying to keep a weak reference of a huge page model object, which takes a lot of memory.[详细]
2023-04-06 10:35 分类:问答Can someone make sense of the G1 garbage collector output?
I am running a Java program with the G1 garbage collector using the following options: -XX:-UseBiasedLocking[详细]
2023-04-05 20:28 分类:问答AS3: Too Large to Garbage Collect?
I\'m working on a flash game that has developed an obvious memory leak. I do what I\'m supposed to do with GC; remove all references to the object, nullify it, remove all listeners (or use weak listen[详细]
2023-04-05 20:24 分类:问答Lua weak references
I\'m working on a project in Lua where I will be creating tables and storing them in a master table, to be erased at a later time. I will pass around references to these tables to other sibling tables[详细]
2023-04-05 17:11 分类:问答File.ReadAllText leading to memory leak [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: TextBox.Text Leaking Memory in WPF Application[详细]
2023-04-05 16:04 分类:问答Avoiding multiple Garbage Collection execution
Read in some blog that GC in Android happens on main(UI) thread, this may create sluggishness in UI screen depending on the frequency of GC execution.[详细]
2023-04-05 12:25 分类:问答