A nice property of thread-static fields is that once the managed thread goes away, they are no longer treated as GC roots.
线程静态字段具有一个很好的属性,即一旦托管线程消失,就不会再将它们视为gc根。
A nice property of thread-static fields is that once the managed thread goes away, they are no longer treated as GC roots.
线程静态字段具有一个很好的属性,即一旦托管线程消失,就不会再将它们视为gc根。
应用推荐