kettlette
Making a field eligible for GC
recently i've been working on a small game engine and i'm trying to call the GC to free my entities after i unload a world (i'm trying to trigger finalizers which will then make opengl resources eligible for disposal and then reclaimed through a seperate method)
i was expecting for when i set my field
_entities
to null
that it would become eligible for GC but the following code always shows the list is alive
how can i make _entities
eligible to be GCed? (it's a private variable which is not ever passed to outside of the class)6 replies